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
Branch
master
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 4721
Build 6290: tox-on-jenkinsJenkins
Build 6289: arc lint + arc unit

Event Timeline

vlorentz added a subscriber: vlorentz.
vlorentz added inline comments.
swh/objstorage/tests/objstorage_testing.py
157
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

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.