Skip to content

Commit

Permalink
put pytest params into pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Dec 16, 2024
1 parent 434171b commit dddb853
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
16 changes: 16 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,19 @@ 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"
FAIL_INVALID_TEMPLATE_VARS = true
python_files = ["tests*.py", "test_*.py"]
filterwarnings = [
"error",
"ignore:.*Use timezone-aware objects to represent datetimes in UTC.*:DeprecationWarning:(botocore|django_datadog_logger)",
]
addopts = [
"--reuse-db",
"--strict-markers",
]
markers = [
"no_django_db: mark tests that should not be marked with django_db."
]
9 changes: 0 additions & 9 deletions pytest.ini

This file was deleted.

0 comments on commit dddb853

Please sign in to comment.