Skip to content

Commit 3a21b39

Browse files
author
Jorrit
authored
Fix test with STRICT_JSON setting
Test is not overriding the intended setting, should be nested inside settings.REST_FRAMEWORK
1 parent be5a9f7 commit 3a21b39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def test_loads(self):
189189
json.loads("NaN")
190190

191191

192-
@override_settings(STRICT_JSON=False)
192+
@override_settings(REST_FRAMEWORK={'STRICT_JSON': False})
193193
class NonStrictJsonFloatTests(JsonFloatTests):
194194
"""
195195
'STRICT_JSON = False' should not somehow affect internal json behavior

0 commit comments

Comments
 (0)