Project

General

Profile

« Previous | Next » 

Revision 92fc67cf

Added by koszko over 1 year ago

change store names and data keys to singular

View differences:

test/unit/test_indexeddb_files_server.py
51 51
resources = [make_sample_resource_with_deps(n) for n in range(count)]
52 52

  
53 53
sample_data = {
54
    'resources': sample_data_dict(resources),
54
    'resource': sample_data_dict(resources),
55 55
    'mapping': {},
56 56
    'file': {
57 57
        'sha256': sample_files_by_sha256
......
91 91
    function_returned_value = execute_in_page(
92 92
        '''
93 93
        returnval(registered_listener(["???"], {},
94
                  () => location.reload()));
94
                                      () => location.reload()));
95 95
        ''')
96 96
    assert function_returned_value == None
97 97

  
......
138 138
    sample_data_copy = copy.deepcopy(sample_data)
139 139

  
140 140
    if error == 'missing':
141
        del sample_data_copy['resources']['res-3']
141
        del sample_data_copy['resource']['res-3']
142 142
    elif error == 'circular':
143
        res3_defs = sample_data_copy['resources']['res-3'].values()
143
        res3_defs = sample_data_copy['resource']['res-3'].values()
144 144
        next(iter(res3_defs))['dependencies'].append({'identifier': 'res-8'})
145 145

  
146 146
    prepare_test_page(sample_data_copy, execute_in_page)

Also available in: Unified diff