File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
- from django .utils .encoding import force_str
1
+ from django .utils .encoding import DjangoUnicodeDecodeError , force_str
2
2
from django .utils .translation import gettext_lazy as _
3
3
from django .views .debug import get_default_exception_reporter_filter
4
- from django .utils .encoding import DjangoUnicodeDecodeError
5
4
6
5
from debug_toolbar .panels import Panel
7
6
@@ -25,12 +24,11 @@ def title(self):
25
24
)
26
25
27
26
def generate_stats (self , request , response ):
28
-
29
27
def catch_force_errors (force_function , value ):
30
28
try :
31
29
return force_function (value )
32
30
except DjangoUnicodeDecodeError :
33
- return ' Debug toolbar was unable to parse value'
31
+ return " Debug toolbar was unable to parse value"
34
32
35
33
self .record_stats (
36
34
{
Original file line number Diff line number Diff line change 3
3
from ..base import IntegrationTestCase
4
4
5
5
6
- @override_settings (DEBUG = True , RANDOM_SETTING = bytes .fromhex ("a3f2b8c14e972d5a8fb3c7291a64e0859c472bf63d18a0945e73b2c84f917ae2" ))
6
+ @override_settings (
7
+ DEBUG = True ,
8
+ RANDOM_SETTING = bytes .fromhex (
9
+ "a3f2b8c14e972d5a8fb3c7291a64e0859c472bf63d18a0945e73b2c84f917ae2"
10
+ ),
11
+ )
7
12
class SettingsIntegrationTestCase (IntegrationTestCase ):
8
13
def test_panel_title (self ):
9
14
response = self .client .get ("/regular/basic/" )
You can’t perform that action at this time.
0 commit comments