@@ -63,8 +63,8 @@ def test_urls(self):
63
63
)
64
64
65
65
66
+ @override_settings (DEBUG = True )
66
67
class HistoryViewsTestCase (IntegrationTestCase ):
67
- @override_settings (DEBUG = True )
68
68
def test_history_panel_integration_content (self ):
69
69
"""Verify the history panel's content renders properly.."""
70
70
self .assertEqual (len (DebugToolbar ._store ), 0 )
@@ -78,7 +78,6 @@ def test_history_panel_integration_content(self):
78
78
content = toolbar .get_panel_by_id ("HistoryPanel" ).content
79
79
self .assertIn ("bar" , content )
80
80
81
- @override_settings (DEBUG = True )
82
81
def test_history_sidebar_invalid (self ):
83
82
response = self .client .get (reverse ("djdt:history_sidebar" ))
84
83
self .assertEqual (response .status_code , 400 )
@@ -90,7 +89,6 @@ def test_history_sidebar_invalid(self):
90
89
response = self .client .get (reverse ("djdt:history_sidebar" ), data = data )
91
90
self .assertEqual (response .status_code , 400 )
92
91
93
- @override_settings (DEBUG = True )
94
92
@patch ("debug_toolbar.panels.history.views.DebugToolbar.fetch" )
95
93
def test_history_sidebar_hash (self , fetch ):
96
94
"""Validate the hashing mechanism."""
@@ -103,7 +101,6 @@ def test_history_sidebar_hash(self, fetch):
103
101
self .assertEqual (response .status_code , 200 )
104
102
self .assertEqual (response .json (), {})
105
103
106
- @override_settings (DEBUG = True )
107
104
def test_history_sidebar (self ):
108
105
"""Validate the history sidebar view."""
109
106
self .client .get ("/json_view/" )
@@ -132,7 +129,6 @@ def test_history_sidebar(self):
132
129
},
133
130
)
134
131
135
- @override_settings (DEBUG = True )
136
132
def test_history_refresh_invalid (self ):
137
133
response = self .client .get (reverse ("djdt:history_refresh" ))
138
134
self .assertEqual (response .status_code , 400 )
@@ -144,7 +140,6 @@ def test_history_refresh_invalid(self):
144
140
response = self .client .get (reverse ("djdt:history_refresh" ), data = data )
145
141
self .assertEqual (response .status_code , 400 )
146
142
147
- @override_settings (DEBUG = True )
148
143
def test_history_refresh (self ):
149
144
"""Verify refresh history response has request variables."""
150
145
data = {"foo" : "bar" }
0 commit comments