tests: Add a pytest plugin introducing the swh_objstorage fixture
Add a pytest plugin enabling to create a new object storage instance for tests using the swh_objstorage fixture. The type of object storage to create is determined by the configuration returned by the swh_objstorage_config fixture. Use these new fixtures to simplify a bit some tests implementation. Related to swh-scrubber#4694.
Showing
- swh/objstorage/pytest_plugin.py 29 additions, 0 deletionsswh/objstorage/pytest_plugin.py
- swh/objstorage/tests/conftest.py 2 additions, 0 deletionsswh/objstorage/tests/conftest.py
- swh/objstorage/tests/objstorage_testing.py 4 additions, 0 deletionsswh/objstorage/tests/objstorage_testing.py
- swh/objstorage/tests/test_objstorage_azure.py 18 additions, 18 deletionsswh/objstorage/tests/test_objstorage_azure.py
- swh/objstorage/tests/test_objstorage_cloud.py 7 additions, 9 deletionsswh/objstorage/tests/test_objstorage_cloud.py
- swh/objstorage/tests/test_objstorage_in_memory.py 3 additions, 5 deletionsswh/objstorage/tests/test_objstorage_in_memory.py
- swh/objstorage/tests/test_objstorage_multiplexer.py 36 additions, 32 deletionsswh/objstorage/tests/test_objstorage_multiplexer.py
- swh/objstorage/tests/test_objstorage_pathslicing.py 7 additions, 9 deletionsswh/objstorage/tests/test_objstorage_pathslicing.py
- swh/objstorage/tests/test_objstorage_seaweedfs.py 10 additions, 12 deletionsswh/objstorage/tests/test_objstorage_seaweedfs.py
Loading
Please register or sign in to comment