Revision 1c65dd5c
Added by koszko over 1 year ago
test/world_wide_library.py | ||
---|---|---|
114 | 114 |
for i in range(9)] |
115 | 115 |
sample_hashes = [sha256(c.encode()).digest().hex() for c in sample_contents] |
116 | 116 |
|
117 |
file_url = lambda hashed: f'https://hydril.la/file/sha256-{hashed}'
|
|
117 |
file_url = lambda hashed: f'https://hydril.la/file/sha256/{hashed}'
|
|
118 | 118 |
|
119 | 119 |
sample_files_catalog = dict([(file_url(h), make_handler(c)) |
120 | 120 |
for h, c in zip(sample_hashes, sample_contents)]) |
Also available in: Unified diff
adapt to changes in file path format
From now on we assume Hydrilla serves file contents at 'file/sha256/' instead of 'file/sha256-'.
With this commit we also stop using the "hash_key" property internally.