feat: add versioned all-available source export catalog
This commit is contained in:
@@ -202,9 +202,15 @@ def test_testing_amendments_download_and_options_contract(contract):
|
||||
assert set(download["requestBody"]["content"]) == {
|
||||
"application/x-www-form-urlencoded"
|
||||
}
|
||||
assert set(download["responses"]["200"]["content"]) == {"application/zip"}
|
||||
assert set(download["responses"]["200"]["content"]) == {
|
||||
"application/zip",
|
||||
"application/json",
|
||||
"text/csv",
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
}
|
||||
invalid = download["responses"]["400"]["content"]["application/json"]["schema"]
|
||||
schema = contract["components"]["schemas"][invalid["$ref"].rsplit("/", 1)[1]]
|
||||
legacy = invalid["oneOf"][0]
|
||||
schema = contract["components"]["schemas"][legacy["$ref"].rsplit("/", 1)[1]]
|
||||
assert schema["properties"]["code"]["enum"] == ["invalid_ticket"]
|
||||
options = contract["paths"]["/api/v2/organization-source-records/filter-options/"][
|
||||
"get"
|
||||
|
||||
Reference in New Issue
Block a user