summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-02-14 11:11:50 +0100
committerWojtek Kosior <koszko@koszko.org>2022-02-14 11:11:50 +0100
commitf5fd82f430d765f3ed76104133ebee5d8375dc03 (patch)
treecd0934df9efcbb5bfd8b76ea7cf23bad8bde31c9 /src/test
parenta1704a27055df09c41700f60d5293ec68c0c1d4c (diff)
downloadhaketilo-hydrilla-f5fd82f430d765f3ed76104133ebee5d8375dc03.tar.gz
haketilo-hydrilla-f5fd82f430d765f3ed76104133ebee5d8375dc03.zip
specify full schema URL in instances
Diffstat (limited to 'src/test')
m---------src/test/source-package-example0
-rw-r--r--src/test/test_server.py4
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/source-package-example b/src/test/source-package-example
-Subproject 26c4622417cb786825b1b18083adfe5ce44b275
+Subproject 48606f288c89aaadb28a021ab71945e1e87fd14
diff --git a/src/test/test_server.py b/src/test/test_server.py
index f7dc06e..bbea257 100644
--- a/src/test/test_server.py
+++ b/src/test/test_server.py
@@ -147,7 +147,7 @@ def test_empty_query(client: FlaskClient) -> None:
response_object = json.loads(response.data.decode())
assert response_object == {
- 'api_schema_version': [1],
+ '$schema': 'https://hydrilla.koszko.org/schemas/api_query_result-1.schema.json',
'mappings': [],
'generated_by': expected_generated_by
}
@@ -166,7 +166,7 @@ def test_query(client: FlaskClient) -> None:
response_object = json.loads(response.data.decode())
assert response_object == {
- 'api_schema_version': [1],
+ '$schema': 'https://hydrilla.koszko.org/schemas/api_query_result-1.schema.json',
'mappings': [{
'identifier': 'helloapple',
'long_name': 'Hello Apple',