Skip to content

Commit 7212265

Browse files
committed
updates
1 parent d0320d9 commit 7212265

File tree

4 files changed

+120
-9
lines changed

4 files changed

+120
-9
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ fullclean:
2626
$(MAKE) clean
2727

2828
lint:
29-
@flake8 src/
30-
@isort -c src/
29+
pre-commit run --all-files
30+
3131

3232
release:
3333
tox

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ docs = [
7474
"mkdocstrings-python>=1.16.1",
7575
]
7676

77+
dj = [
78+
"django",
79+
]
80+
7781
type-check = [
7882
"mypy<1.15",
7983
]

tests/conftest.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ def setup(settings):
2626

2727

2828
@pytest.fixture(scope="function")
29-
def app(request):
30-
wtm = django_webtest.WebTestMixin()
31-
wtm.csrf_checks = False
32-
wtm._patch_settings()
33-
request.addfinalizer(wtm._unpatch_settings)
34-
return django_webtest.DjangoTestApp()
29+
def app(django_app_factory):
30+
return django_app_factory(csrf_checks=False)
31+
# wtm = django_webtest.WebTestMixin()
32+
# wtm.csrf_checks = False
33+
# wtm._patch_settings()
34+
# request.addfinalizer(wtm._unpatch_settings)
35+
# return django_webtest.DjangoTestApp()
3536

3637

3738
@pytest.fixture

uv.lock

Lines changed: 107 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)