Page MenuHomeSoftware Heritage

tests: refactorings
ClosedPublic

Authored by douardda on Mar 19 2019, 12:13 PM.

Details

Summary
  • skip deletion related tests for the remote api
  • small refactorings
  • improve a bit the test_get_stream test

Diff Detail

Repository
rDOBJS Object storage
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vlorentz added a subscriber: vlorentz.
vlorentz added inline comments.
swh/objstorage/tests/objstorage_testing.py
157 ↗(On Diff #4005)
swh/objstorage/tests/test_objstorage_api.py
45–49
This revision is now accepted and ready to land.Mar 19 2019, 12:18 PM
douardda added inline comments.
swh/objstorage/tests/objstorage_testing.py
157 ↗(On Diff #4005)

if I have a bit more courage, it would be a simple assert statement (ie. convert the whole test to pytest...) so

swh/objstorage/tests/test_objstorage_api.py
45–49

and you are right to do so

use pytest.mark.skip as suggested by vlorentz

This revision was automatically updated to reflect the committed changes.