Revision 8477d0cf
Added by koszko over 1 year ago
test/haketilo_test/world_wide_library.py | ||
---|---|---|
195 | 195 |
(resource, resource_versions, sample_resources_catalog), |
196 | 196 |
(mapping, mapping_versions, sample_mappings_catalog) |
197 | 197 |
]: |
198 |
fmt = f'https://hydril.la/{item["type"]}/{item["identifier"]}%s.json'
|
|
198 |
fmt = f'https://hydril.la/{item["type"]}/{item["identifier"]}%s' |
|
199 | 199 |
# Make 2 versions of each item so that we can test updates. |
200 | 200 |
for ver in versions: |
201 | 201 |
item['version'] = ver |
202 |
for fmt_arg in ('', '/' + item_version_string(item)): |
|
202 |
for fmt_arg in ('.json', '/' + item_version_string(item)):
|
|
203 | 203 |
catalog[fmt % fmt_arg] = make_handler(json.dumps(item)) |
204 | 204 |
|
205 | 205 |
def serve_query(command, get_params, post_params): |
Also available in: Unified diff
fix URL construction when downloading definitions from Hydrilla