diff options
Diffstat (limited to 'src/test/test_server.py')
-rw-r--r-- | src/test/test_server.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/test_server.py b/src/test/test_server.py index 4a6ade3..3107cfb 100644 --- a/src/test/test_server.py +++ b/src/test/test_server.py @@ -167,7 +167,7 @@ def test_get_newest(setup: Setup, item_type: str) -> None: assert ('uuid' in definition) == (setup is not uuidless_setup) - hydrilla_util.validator_for(f'api_{item_type}_description-1.schema.json')\ + hydrilla_util.validator_for(f'api_{item_type}_description-1.0.1.schema.json')\ .validate(definition) @pytest.mark.parametrize('item_type', ['resource', 'mapping']) @@ -210,12 +210,12 @@ def test_empty_query() -> None: response_object = json.loads(response.data.decode()) assert response_object == { - '$schema': 'https://hydrilla.koszko.org/schemas/api_query_result-1.schema.json', + '$schema': 'https://hydrilla.koszko.org/schemas/api_query_result-1.0.1.schema.json', 'mappings': [], 'generated_by': expected_generated_by } - hydrilla_util.validator_for('api_query_result-1.schema.json')\ + hydrilla_util.validator_for('api_query_result-1.0.1.schema.json')\ .validate(response_object) def test_query() -> None: @@ -229,7 +229,7 @@ def test_query() -> None: response_object = json.loads(response.data.decode()) assert response_object == { - '$schema': 'https://hydrilla.koszko.org/schemas/api_query_result-1.schema.json', + '$schema': 'https://hydrilla.koszko.org/schemas/api_query_result-1.0.1.schema.json', 'mappings': [{ 'identifier': 'helloapple', 'long_name': 'Hello Apple', @@ -238,7 +238,7 @@ def test_query() -> None: 'generated_by': expected_generated_by } - hydrilla_util.validator_for('api_query_result-1.schema.json')\ + hydrilla_util.validator_for('api_query_result-1.0.1.schema.json')\ .validate(response_object) def test_source() -> None: @@ -256,7 +256,7 @@ def test_source() -> None: response = def_get(f'/source/hello.zip') assert sha256(response.data).digest().hex() == zipfile_hash - hydrilla_util.validator_for('api_source_description-1.schema.json')\ + hydrilla_util.validator_for('api_source_description-1.0.1.schema.json')\ .validate(description) def test_missing_source() -> None: |