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/unit/test_indexeddb_files_server.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/unit/test_indexeddb_files_server.py') diff --git a/test/unit/test_indexeddb_files_server.py b/test/unit/test_indexeddb_files_server.py index ab69d9d..390bbe7 100644 --- a/test/unit/test_indexeddb_files_server.py +++ b/test/unit/test_indexeddb_files_server.py @@ -35,7 +35,7 @@ sample_files_list = [(f'file_{n}_{i}', f'contents {n} {i}') sample_files = dict(sample_files_list) -sample_files, sample_files_by_hash = make_sample_files(sample_files) +sample_files, sample_files_by_sha256 = make_sample_files(sample_files) def make_sample_resource_with_deps(n): resource = make_sample_resource(with_files=False) @@ -53,7 +53,9 @@ resources = [make_sample_resource_with_deps(n) for n in range(count)] sample_data = { 'resources': sample_data_dict(resources), 'mapping': {}, - 'files': sample_files_by_hash + 'file': { + 'sha256': sample_files_by_sha256 + } } def prepare_test_page(initial_indexeddb_data, execute_in_page): -- cgit v1.2.3