diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..b80d4e1 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,8 @@ +coverage: + status: + project: + default: + threshold: 1% + patch: + default: + threshold: 0% diff --git a/pyproject.toml b/pyproject.toml index a1a2cbd..028cfb8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -137,9 +137,10 @@ indent-style = "space" python_files = ["test_*.py", "*_test.py"] python_classes = ["Test*"] python_functions = ["test_*"] -testpaths = ["tests", "src"] +testpaths = ["src"] +pythonpath = ["src"] addopts = "-v --tb=short" -DJANGO_SETTINGS_MODULE = "feedback.settings.test" +DJANGO_SETTINGS_MODULE = "tests.settings" # Coverage configuration # https://coverage.readthedocs.io/en/latest/config.html diff --git a/src/tests/__init__.py b/src/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/feedback/settings/test.py b/src/tests/settings.py similarity index 64% rename from src/feedback/settings/test.py rename to src/tests/settings.py index 64f977b..61ec2bd 100644 --- a/src/feedback/settings/test.py +++ b/src/tests/settings.py @@ -1,9 +1,8 @@ """ -Common Test settings for eox_hooks project. -For more information on this file, see -https://docs.djangoproject.com/en/2.22/topics/settings/ -For the full list of settings and their values, see -https://docs.djangoproject.com/en/2.22/ref/settings/ +Shared Django test settings for the xblocks-extra repository. + +All XBlocks in this repo share these settings during test runs. +Add any new XBlock app to INSTALLED_APPS below when migrating it in. """ from workbench.settings import * # pylint: disable=wildcard-import # noqa: F403, I001