From f8e53d217ec5bfe8eb95d395a7bbffa23dc95a4c Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sun, 20 Oct 2019 21:20:20 +0200 Subject: [PATCH] set the settings environment and export coverage to html --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3c0f202..8c0bc4d 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,8 @@ run: venv test: venv/development ( \ source venv/bin/activate; \ - pytest --nomigrations --cov=. --cov-report=term sensors/; \ + export DJANGO_SETTINGS_MODULE=sensors.settings.development; \ + pytest --nomigrations --cov=. --cov-report=html sensors/; \ ) venv/development: