diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-02-09 17:09:13 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-02-09 18:00:16 +0100 |
commit | 1c65dd5ca24052ccf9a92939eecd0966c9635c50 (patch) | |
tree | 7575157ccd729b4ad79f6c04501023ccb0532a63 /test/unit/test_item_list.py | |
parent | 830d22d8931a4e5f0606d401f24d7cd937f8697e (diff) | |
download | browser-extension-1c65dd5ca24052ccf9a92939eecd0966c9635c50.tar.gz browser-extension-1c65dd5ca24052ccf9a92939eecd0966c9635c50.zip |
adapt to changes in file path format
From now on we assume Hydrilla serves file contents at 'file/sha256/<hash>' instead of 'file/sha256-<hash>'.
With this commit we also stop using the "hash_key" property internally.
Diffstat (limited to 'test/unit/test_item_list.py')
-rw-r--r-- | test/unit/test_item_list.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/unit/test_item_list.py b/test/unit/test_item_list.py index 0702129..46691c3 100644 --- a/test/unit/test_item_list.py +++ b/test/unit/test_item_list.py @@ -106,7 +106,9 @@ def test_item_list_ordering(driver, execute_in_page, item_type): sample_data = { 'resources': {}, 'mappings': {}, - 'files': sample_files_by_hash + 'file': { + 'sha256': sample_files_by_sha256 + } } indexes_added = set() @@ -189,7 +191,9 @@ def test_item_list_displaying(driver, execute_in_page, item_type): sample_data = { 'resources': {}, 'mappings': {}, - 'files': sample_files_by_hash + 'file': { + 'sha256': sample_files_by_sha256 + } } sample_data[item_type + 's'] = sample_data_dict(items) |