File tree Expand file tree Collapse file tree 3 files changed +240
-222
lines changed Expand file tree Collapse file tree 3 files changed +240
-222
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ dependencies = [
3939]
4040optional-dependencies.tests = [
4141 " coverage" ,
42+ " pytest" ,
43+ " pytest-django" ,
4244]
4345urls.Homepage = " https://github.com/matthiask/django-content-editor/"
4446
@@ -83,12 +85,12 @@ lint.extend-select = [
8385 " PGH" ,
8486 # flake8-pie
8587 " PIE" ,
88+ " PLC" ,
8689 # pylint
87- " PL" ,
90+ " PLE" ,
91+ " PLW" ,
8892 # unused noqa
8993 " RUF100" ,
90- # flake8-simplify
91- " SIM" ,
9294 # pyupgrade
9395 " UP" ,
9496 " W" ,
@@ -110,3 +112,8 @@ lint.per-file-ignores."*/migrat*/*" = [
110112lint.isort.combine-as-imports = true
111113lint.isort.lines-after-imports = 2
112114lint.mccabe.max-complexity = 15
115+
116+ [tool .pytest .ini_options ]
117+ DJANGO_SETTINGS_MODULE = " testapp.settings"
118+ python_files = [ " tests.py" , " test_*.py" ]
119+ addopts = " --reuse-db"
You can’t perform that action at this time.
0 commit comments