Revision 74bbdd9a
Added by koszko over 1 year ago
test/haketilo_test/unit/test_repo_query.py | ||
---|---|---|
99 | 99 |
|
100 | 100 |
assert len(mapping_entries) == 3 |
101 | 101 |
|
102 |
expected_names = ['MAPPING_ABCD', 'MAPPING_ABCD-DEFG-GHIJ', 'MAPPING_A']
|
|
102 |
expected_names = ['MAPPING-ABCD', 'MAPPING-ABCD-DEFG-GHIJ', 'MAPPING-A']
|
|
103 | 103 |
|
104 | 104 |
for name, entry in zip(expected_names, mapping_entries): |
105 | 105 |
assert entry['mapping_name'].text == name |
... | ... | |
217 | 217 |
const response = { |
218 | 218 |
ok: true, |
219 | 219 |
status: 200, |
220 |
json: {$schema: "https://hydrilla.koszko.org/schemas/api_query_result-3.2.1.schema.json"}
|
|
220 |
json: {$schema: "https://hydrilla.koszko.org/schemas/api_query_result-255.2.1.schema.json"}
|
|
221 | 221 |
}; |
222 | 222 |
browser.tabs.sendMessage = () => Promise.resolve(response); |
223 | 223 |
''') |
Also available in: Unified diff
validate repository responses against JSON schemas