activate the virtualenv before running the test

This commit is contained in:
Andreas Zweili 2019-10-14 21:00:53 +01:00
parent 01f02ca4d3
commit b1a0b05b5f
1 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,10 @@ run: venv
python3 sensors
test: venv/development
pytest --nomigrations --cov=. --cov-report=term sensors/
( \
source venv/bin/activate; \
pytest --nomigrations --cov=. --cov-report=term sensors/; \
)
venv/development:
test -d venv || python3 -m venv venv