summaryrefslogtreecommitdiff
path: root/test/world_wide_library.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/world_wide_library.py')
-rw-r--r--test/world_wide_library.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/world_wide_library.py b/test/world_wide_library.py
index 56af35f..1e802ab 100644
--- a/test/world_wide_library.py
+++ b/test/world_wide_library.py
@@ -150,8 +150,6 @@ sample_queries = {}
for srt in sample_resource_templates:
resource = make_sample_resource()
- resource['api_schema_version'] = [1]
- resource['api_schema_revision'] = 1
resource['identifier'] = f'resource_{srt["id_suffix"]}'
resource['long_name'] = resource['identifier'].upper()
resource['uuid'] = str(uuid4())
@@ -166,8 +164,6 @@ for srt in sample_resource_templates:
resource_versions[1][-1] += 1
mapping = make_sample_mapping()
- mapping['api_schema_version'] = [1]
- mapping['api_schema_revision'] = 1
mapping['identifier'] = f'mapping_{srt["id_suffix"]}'
mapping['long_name'] = mapping['identifier'].upper()
mapping['uuid'] = str(uuid4())
@@ -208,9 +204,12 @@ for srt in sample_resource_templates:
def serve_query(command, get_params, post_params):
response = {
- 'api_schema_version': [1],
- 'api_schema_revision': 1,
- 'mappings': sample_queries[get_params['url'][0]]
+ '$schema': 'https://hydrilla.koszko.org/schemas/api_query_result-1.schema.json',
+ 'generated_by': {
+ 'name': 'human',
+ 'version': 'sapiens-0.8.15'
+ },
+ 'mappings': sample_queries[get_params['url'][0]]
}
return (200, {}, json.dumps(response))