Skip to content

Commit 3125a13

Browse files
committed
Convert the test suite to pytest
1 parent c4edad8 commit 3125a13

File tree

3 files changed

+311
-270
lines changed

3 files changed

+311
-270
lines changed

pyproject.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ lint.extend-select = [
8383
"PGH",
8484
# flake8-pie
8585
"PIE",
86+
"PLC",
8687
# pylint
87-
"PL",
88+
"PLE",
89+
"PLW",
8890
# unused noqa
8991
"RUF100",
90-
# flake8-simplify
91-
"SIM",
9292
# pyupgrade
9393
"UP",
9494
"W",
@@ -110,3 +110,8 @@ lint.per-file-ignores."*/migrat*/*" = [
110110
lint.isort.combine-as-imports = true
111111
lint.isort.lines-after-imports = 2
112112
lint.mccabe.max-complexity = 15
113+
114+
[tool.pytest.ini_options]
115+
DJANGO_SETTINGS_MODULE = "testapp.settings"
116+
python_files = [ "tests.py", "test_*.py" ]
117+
addopts = "--reuse-db"

0 commit comments

Comments
 (0)