Skip to content

Commit

Permalink
fix: set default config file for Pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
magajh committed Oct 13, 2024
1 parent 5dc9897 commit 19ae235
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ quality: clean ## check coding style with pycodestyle and pylint

test-python: clean ## Run test suite.
$(TOX) pip install -r requirements/test.txt --exists-action w
$(TOX) coverage run --source="." -m pytest ./eox_tenant --ds=eox_tenant.settings.test --ignore-glob='**/integration/*'
$(TOX) coverage run --source="." -m pytest ./eox_tenant --ignore-glob='**/integration/*'
$(TOX) coverage report -m --fail-under=71

run-tests: test-python quality
4 changes: 3 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ tag = False

[bumpversion:file:eox_tenant/__init__.py]

[tool:pytest]
DJANGO_SETTINGS_MODULE = eox_tenant.settings.test

[coverage:run]
data_file = .coverage
omit =
venv/*
eox_tenant/edxapp_wrapper/backends/*

[pycodestyle]
count = False
Expand Down

0 comments on commit 19ae235

Please sign in to comment.