Skip to content
Snippets Groups Projects

pytest: Fix tests execution in development virtual environment

Since migration to PEP 517, executing make test or pytest in the root directory of the objstorage package triggers the following error:

ImportError: cannot import name 'add_filters' from 'swh.objstorage.multiplexer.filter'

Explicitly setting the testpaths option in pytest.ini and TEST_DIRS variable in Makefile.local to swh/objstorage/tests fix the issue.

See https://jenkins.softwareheritage.org/job/DENV/job/run-all-tests/1492/artifact/swh-objstorage.log

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading