We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94cccb9 commit ef75a04Copy full SHA for ef75a04
pytest_django/fixtures.py
@@ -99,7 +99,7 @@ def teardown_database():
99
verbosity=pytest.config.option.verbose,
100
)
101
102
- if not django_db_keepdb:
+ if not request.config.getvalue('reuse_db'):
103
request.addfinalizer(teardown_database)
104
105
tests/test_db_setup.py
@@ -75,6 +75,7 @@ def test_db_can_be_accessed():
75
])
76
77
# Make sure the database has been re-created and the mark is gone
78
+ assert db_exists()
79
assert not mark_exists()
80
81
0 commit comments