From 1c65dd5ca24052ccf9a92939eecd0966c9635c50 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Wed, 9 Feb 2022 17:09:13 +0100 Subject: 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. --- test/world_wide_library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/world_wide_library.py') diff --git a/test/world_wide_library.py b/test/world_wide_library.py index b3febd7..04f5e8b 100644 --- a/test/world_wide_library.py +++ b/test/world_wide_library.py @@ -114,7 +114,7 @@ sample_contents = [f'Mi povas manĝi vitron, ĝi ne damaĝas min {i}' for i in range(9)] sample_hashes = [sha256(c.encode()).digest().hex() for c in sample_contents] -file_url = lambda hashed: f'https://hydril.la/file/sha256-{hashed}' +file_url = lambda hashed: f'https://hydril.la/file/sha256/{hashed}' sample_files_catalog = dict([(file_url(h), make_handler(c)) for h, c in zip(sample_hashes, sample_contents)]) -- cgit v1.2.3