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 264502c commit c805fcdCopy full SHA for c805fcd
pytest_django/live_server_helper.py
@@ -25,7 +25,8 @@ class CustomLiveServerTestCase(LiveServerTestCase):
25
self._dj_testcase.setUpClass()
26
27
def stop(self):
28
- self._dj_testcase._live_server_modified_settings.enable()
+ if not hasattr(self._dj_testcase._live_server_modified_settings, "wrapped"):
29
+ self._dj_testcase._live_server_modified_settings.enable()
30
self._dj_testcase.tearDownClass()
31
32
@property
0 commit comments