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 2653be3 commit ca93f67Copy full SHA for ca93f67
tests/panels/test_sql.py
@@ -63,14 +63,14 @@ def test_recording_chunked_cursor(self):
63
# ensure query was logged
64
self.assertEqual(len(self.panel._queries), 1)
65
66
- @patch('debug_toolbar.panels.sql.tracking.state', wraps=sql_tracking.state)
+ @patch("debug_toolbar.panels.sql.tracking.state", wraps=sql_tracking.state)
67
def test_cursor_wrapper_singleton(self, mock_state):
68
list(User.objects.all())
69
70
# ensure that cursor wrapping is applied only once
71
self.assertEqual(mock_state.Wrapper.call_count, 1)
72
73
74
def test_chunked_cursor_wrapper_singleton(self, mock_state):
75
list(User.objects.all().iterator())
76
0 commit comments