comparison to None|True|False should be 'if cond is None:'

This commit is contained in:
mouadhkaabachi
2017-10-12 17:46:28 +02:00
parent 21a38686f6
commit fe4964b9c7
3 changed files with 9 additions and 9 deletions

View File

@ -42,9 +42,9 @@ def test_setting():
def test_default_settings():
settings.clear_all()
assert settings.DEBUG.get() == False
assert settings.PROFILE.get() == False
assert settings.QUIET.get() == False
assert settings.DEBUG.get() is False
assert settings.PROFILE.get() is False
assert settings.QUIET.get() is False
assert settings.LOGGING_LEVEL.get() == logging._checkLevel('INFO')
with patch.dict(environ, {'DEBUG': 't'}):