Revision 1c65dd5c
Added by koszko over 1 year ago
test/unit/test_indexeddb_files_server.py | ||
---|---|---|
35 | 35 |
|
36 | 36 |
sample_files = dict(sample_files_list) |
37 | 37 |
|
38 |
sample_files, sample_files_by_hash = make_sample_files(sample_files)
|
|
38 |
sample_files, sample_files_by_sha256 = make_sample_files(sample_files)
|
|
39 | 39 |
|
40 | 40 |
def make_sample_resource_with_deps(n): |
41 | 41 |
resource = make_sample_resource(with_files=False) |
... | ... | |
53 | 53 |
sample_data = { |
54 | 54 |
'resources': sample_data_dict(resources), |
55 | 55 |
'mapping': {}, |
56 |
'files': sample_files_by_hash |
|
56 |
'file': { |
|
57 |
'sha256': sample_files_by_sha256 |
|
58 |
} |
|
57 | 59 |
} |
58 | 60 |
|
59 | 61 |
def prepare_test_page(initial_indexeddb_data, execute_in_page): |
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.