-
- Downloads
tests: Migrate away from unittest to full pytest
Remove the use of unittest.TestCase class. Replace use of unittest assertions by pytest ones. Use pytest autouse fixtures instead of setup/teardown methods. Use tmpdir fixture to manage temporary directories.
Showing
- swh/objstorage/tests/objstorage_testing.py 49 additions, 55 deletionsswh/objstorage/tests/objstorage_testing.py
- swh/objstorage/tests/test_objstorage_api.py 8 additions, 13 deletionsswh/objstorage/tests/test_objstorage_api.py
- swh/objstorage/tests/test_objstorage_azure.py 71 additions, 88 deletionsswh/objstorage/tests/test_objstorage_azure.py
- swh/objstorage/tests/test_objstorage_cloud.py 38 additions, 45 deletionsswh/objstorage/tests/test_objstorage_cloud.py
- swh/objstorage/tests/test_objstorage_in_memory.py 5 additions, 5 deletionsswh/objstorage/tests/test_objstorage_in_memory.py
- swh/objstorage/tests/test_objstorage_instantiation.py 9 additions, 28 deletionsswh/objstorage/tests/test_objstorage_instantiation.py
- swh/objstorage/tests/test_objstorage_multiplexer.py 13 additions, 19 deletionsswh/objstorage/tests/test_objstorage_multiplexer.py
- swh/objstorage/tests/test_objstorage_pathslicing.py 39 additions, 49 deletionsswh/objstorage/tests/test_objstorage_pathslicing.py
- swh/objstorage/tests/test_objstorage_seaweedfs.py 12 additions, 11 deletionsswh/objstorage/tests/test_objstorage_seaweedfs.py
- swh/objstorage/tests/test_readonly_filter.py 20 additions, 26 deletionsswh/objstorage/tests/test_readonly_filter.py
Loading
Please register or sign in to comment