mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
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:
parent
be5a9f78f3
commit
3a21b390ff
|
@ -189,7 +189,7 @@ class JsonFloatTests(TestCase):
|
||||||
json.loads("NaN")
|
json.loads("NaN")
|
||||||
|
|
||||||
|
|
||||||
@override_settings(STRICT_JSON=False)
|
@override_settings(REST_FRAMEWORK={'STRICT_JSON': False})
|
||||||
class NonStrictJsonFloatTests(JsonFloatTests):
|
class NonStrictJsonFloatTests(JsonFloatTests):
|
||||||
"""
|
"""
|
||||||
'STRICT_JSON = False' should not somehow affect internal json behavior
|
'STRICT_JSON = False' should not somehow affect internal json behavior
|
||||||
|
|
Loading…
Reference in New Issue
Block a user