Call objstorage.content_get() with a HashDict instead of single hash
Hash dicts are now prefered by swh-objstorage, in order to support individual hash collisions. This commit includes some minor fixture refactoring, to allow tests to mock methods of the backend class even in proxy tests.
Showing
- swh/storage/cassandra/storage.py 2 additions, 2 deletionsswh/storage/cassandra/storage.py
- swh/storage/in_memory.py 1 addition, 1 deletionswh/storage/in_memory.py
- swh/storage/interface.py 3 additions, 3 deletionsswh/storage/interface.py
- swh/storage/objstorage.py 26 additions, 6 deletionsswh/storage/objstorage.py
- swh/storage/postgresql/storage.py 3 additions, 3 deletionsswh/storage/postgresql/storage.py
- swh/storage/pytest_plugin.py 12 additions, 1 deletionswh/storage/pytest_plugin.py
- swh/storage/tests/storage_tests.py 52 additions, 0 deletionsswh/storage/tests/storage_tests.py
- swh/storage/tests/test_api_client.py 5 additions, 0 deletionsswh/storage/tests/test_api_client.py
- swh/storage/tests/test_tenacious.py 4 additions, 8 deletionsswh/storage/tests/test_tenacious.py
Loading
Please register or sign in to comment