summaryrefslogtreecommitdiff
path: root/test/haketilo_test/world_wide_library.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/haketilo_test/world_wide_library.py')
-rw-r--r--test/haketilo_test/world_wide_library.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/haketilo_test/world_wide_library.py b/test/haketilo_test/world_wide_library.py
index 1eb826e..a932821 100644
--- a/test/haketilo_test/world_wide_library.py
+++ b/test/haketilo_test/world_wide_library.py
@@ -195,11 +195,11 @@ for srt in sample_resource_templates:
(resource, resource_versions, sample_resources_catalog),
(mapping, mapping_versions, sample_mappings_catalog)
]:
- fmt = f'https://hydril.la/{item["type"]}/{item["identifier"]}%s.json'
+ fmt = f'https://hydril.la/{item["type"]}/{item["identifier"]}%s'
# Make 2 versions of each item so that we can test updates.
for ver in versions:
item['version'] = ver
- for fmt_arg in ('', '/' + item_version_string(item)):
+ for fmt_arg in ('.json', '/' + item_version_string(item)):
catalog[fmt % fmt_arg] = make_handler(json.dumps(item))
def serve_query(command, get_params, post_params):