Fix test with STRICT_JSON setting

Test is not overriding the intended setting, should be nested inside settings.REST_FRAMEWORK
This commit is contained in:
Jorrit 2019-05-08 16:48:45 +02:00 committed by GitHub
parent be5a9f78f3
commit 3a21b390ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,7 +189,7 @@ class JsonFloatTests(TestCase):
json.loads("NaN")
@override_settings(STRICT_JSON=False)
@override_settings(REST_FRAMEWORK={'STRICT_JSON': False})
class NonStrictJsonFloatTests(JsonFloatTests):
"""
'STRICT_JSON = False' should not somehow affect internal json behavior