Skip to content

Commit

Permalink
Merge pull request #74 from Crown-Commercial-Service/run-pytest-via-p…
Browse files Browse the repository at this point in the history
…ython-interproter

Run `pytest` with `python -m` to execute the tests against the local copy of the project directly
  • Loading branch information
tim-s-ccs authored Dec 13, 2024
2 parents d5d8e37 + 2fae425 commit 91f0929
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.3.1] - 2024-12-13

### Fixed

- Run `pytest` with `python -m` to execute the tests against the local copy of the project directly

## [1.3.0] - 2024-12-13

### Added
Expand Down
2 changes: 1 addition & 1 deletion dmdevtools/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.3.0"
__version__ = "1.3.1"
2 changes: 1 addition & 1 deletion dmdevtools/invoke_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def test_mypy(c):
@task(virtualenv, requirements_dev, aliases=["test-unit"])
def test_python(c, pytest_args=""):
"""Run python unit tests"""
c.run(f"pytest {pytest_args}")
c.run(f"python -m pytest {pytest_args}")


@task(frontend_build)
Expand Down

0 comments on commit 91f0929

Please sign in to comment.