Skip to content

Commit

Permalink
Fix pytest invocation
Browse files Browse the repository at this point in the history
py.test moved to pytest.

Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
  • Loading branch information
sandrobonazzola committed Feb 8, 2023
1 parent dcda209 commit f5b4816
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -20,11 +20,11 @@ tmp:

# Run the test suite, optionally with coverage
test: tmp
DID_DIR=$(TMP) py.test tests
DID_DIR=$(TMP) pytest tests
smoke: tmp
DID_DIR=$(TMP) py.test tests/test_cli.py
DID_DIR=$(TMP) pytest tests/test_cli.py
coverage: tmp
DID_DIR=$(TMP) coverage run --source=did,bin -m py.test tests
DID_DIR=$(TMP) coverage run --source=did,bin -m pytest tests
coverage report
coverage annotate

Expand Down
2 changes: 1 addition & 1 deletion docs/contribute.rst
Expand Up @@ -151,7 +151,7 @@ Tests

To run tests using pytest::

coverage run --source=did -m py.test tests
coverage run --source=did -m pytest tests
coverage report

Install pytest and coverage using yum::
Expand Down

0 comments on commit f5b4816

Please sign in to comment.