Speed up tests

This commit is contained in:
2024-12-12 17:37:00 +01:00
parent cfe6e27a7a
commit 276a9b734a
6 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,7 @@
"appauthor", "appauthor",
"appendonly", "appendonly",
"appname", "appname",
"asctime",
"asgiref", "asgiref",
"autouse", "autouse",
"Behaviour", "Behaviour",
@ -24,6 +25,7 @@
"Hellsén", "Hellsén",
"isort", "isort",
"Joakim", "Joakim",
"levelname",
"logdir", "logdir",
"Lovinator", "Lovinator",
"lvthalo", "lvthalo",
@ -52,6 +54,7 @@
"stylesheet", "stylesheet",
"tabindex", "tabindex",
"templatetags", "templatetags",
"testpaths",
"timebaseddrop", "timebaseddrop",
"timesince", "timesince",
"timeuntil", "timeuntil",

View File

@ -103,6 +103,10 @@ log_cli_level = "INFO"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)" log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%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] [tool.mypy]
plugins = ["mypy_django_plugin.main"] plugins = ["mypy_django_plugin.main"]