From a04191fafaaba47b7b68e145d1386ff82353c0f4 Mon Sep 17 00:00:00 2001 From: vincent porte Date: Thu, 19 Dec 2024 16:02:50 +0100 Subject: [PATCH] merge pytest.ini into pyproject.toml --- pyproject.toml | 8 ++++++++ pytest.ini | 9 --------- 2 files changed, 8 insertions(+), 9 deletions(-) delete mode 100644 pytest.ini diff --git a/pyproject.toml b/pyproject.toml index 6b5039ea..5f3a156e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,3 +87,11 @@ ignore="T002,T003,T027,H006,H023,D018" max_attribute_length=200 format_css = true format_js = false + +[tool.pytest.ini_options] +DJANGO_SETTINGS_MODULE = "config.settings.test" +python_files = ["tests*.py", "test_*.py"] +addopts = "--reuse-db --strict-markers" + +[tool.pytest.ini_options.markers] +no_django_db = "mark tests that should not be marked with django_db." diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 343b41ac..00000000 --- a/pytest.ini +++ /dev/null @@ -1,9 +0,0 @@ -[pytest] -DJANGO_SETTINGS_MODULE = config.settings.test -python_files = tests*.py test_*.py -addopts = - --reuse-db - --strict-markers -markers = - no_django_db: mark tests that should not be marked with django_db. -