diff --git a/.vscode/settings.json b/.vscode/settings.json index 6725c98..ac6d774 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,6 +6,7 @@ "appauthor", "appendonly", "appname", + "asctime", "asgiref", "autouse", "Behaviour", @@ -24,6 +25,7 @@ "Hellsén", "isort", "Joakim", + "levelname", "logdir", "Lovinator", "lvthalo", @@ -52,6 +54,7 @@ "stylesheet", "tabindex", "templatetags", + "testpaths", "timebaseddrop", "timesince", "timeuntil", diff --git a/pyproject.toml b/pyproject.toml index 7e10f49..083d727 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -103,6 +103,10 @@ log_cli_level = "INFO" log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)" log_cli_date_format = "%Y-%m-%d %H:%M:%S" +# Only check /tests/ directory for tests. +# This will speed up the test run significantly. (5.16s -> 0.25s) +testpaths = ["tests"] + [tool.mypy] plugins = ["mypy_django_plugin.main"] diff --git a/core/tests/__init__.py b/tests/__init__.py similarity index 100% rename from core/tests/__init__.py rename to tests/__init__.py diff --git a/core/tests/conftest.py b/tests/conftest.py similarity index 100% rename from core/tests/conftest.py rename to tests/conftest.py diff --git a/core/tests/response.json b/tests/response.json similarity index 100% rename from core/tests/response.json rename to tests/response.json diff --git a/core/tests/view_test.py b/tests/view_test.py similarity index 100% rename from core/tests/view_test.py rename to tests/view_test.py