Revision 74bbdd9a
Added by koszko over 1 year ago
test/haketilo_test/world_wide_library.py | ||
---|---|---|
127 | 127 |
sample_resource_templates.append({ |
128 | 128 |
'id_suffix': ''.join(letters), |
129 | 129 |
'files_count': deps[0], |
130 |
'dependencies': [{'identifier': f'resource_{l}'} for l in letters]
|
|
130 |
'dependencies': [{'identifier': f'resource-{l}'} for l in letters]
|
|
131 | 131 |
}) |
132 | 132 |
|
133 | 133 |
suffixes = [srt['id_suffix'] for srt in sample_resource_templates] |
134 | 134 |
sample_resource_templates.append({ |
135 | 135 |
'id_suffix': '-'.join(suffixes), |
136 | 136 |
'files_count': 2, |
137 |
'dependencies': [{'identifier': f'resource_{suf}'} for suf in suffixes]
|
|
137 |
'dependencies': [{'identifier': f'resource-{suf}'} for suf in suffixes]
|
|
138 | 138 |
}) |
139 | 139 |
|
140 | 140 |
for i in range(10): |
... | ... | |
150 | 150 |
|
151 | 151 |
for srt in sample_resource_templates: |
152 | 152 |
resource = make_sample_resource() |
153 |
resource['identifier'] = f'resource_{srt["id_suffix"]}'
|
|
153 |
resource['identifier'] = f'resource-{srt["id_suffix"]}'
|
|
154 | 154 |
resource['long_name'] = resource['identifier'].upper() |
155 | 155 |
resource['uuid'] = str(uuid4()) |
156 | 156 |
resource['dependencies'] = srt['dependencies'] |
... | ... | |
164 | 164 |
resource_versions[1][-1] += 1 |
165 | 165 |
|
166 | 166 |
mapping = make_sample_mapping() |
167 |
mapping['identifier'] = f'mapping_{srt["id_suffix"]}'
|
|
167 |
mapping['identifier'] = f'mapping-{srt["id_suffix"]}'
|
|
168 | 168 |
mapping['long_name'] = mapping['identifier'].upper() |
169 | 169 |
mapping['uuid'] = str(uuid4()) |
170 | 170 |
mapping['source_copyright'] = resource['source_copyright'] |
Also available in: Unified diff
validate repository responses against JSON schemas