Skip to content

Commit b3f7963

Browse files
authored
.
1 parent 41c86d4 commit b3f7963

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_initialization.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def test_ds():
6363
assert result.ret == 0
6464

6565

66-
def test_django_setup_dependency_load(pytester: pytest.Pytester, monkeypatch: pytest.MonkeyPatch) -> None:
66+
def test_django_setup_dependency_load(pytester: pytest.Pytester, django_pytester: DjangoPytester, monkeypatch: pytest.MonkeyPatch) -> None:
6767
monkeypatch.setenv("DJANGO_SETTINGS_MODULE", "tpkg.settings_dev")
68-
pkg = pytester.mkpydir("tpkg")
68+
pkg = pytester.joinpath("tpkg")
6969
pkg.joinpath("settings_dev.py").write_text(
7070
dedent(
7171
"""
@@ -88,5 +88,5 @@ def test_ds(settings):
8888
"""
8989
)
9090
)
91-
result = pytester.runpytest_subprocess("-s", "-ds", "tpkg.settings_test")
91+
result = django_pytester.runpytest_subprocess("-s", "-ds", "tpkg.settings_test")
9292
assert result.ret == 0

0 commit comments

Comments
 (0)