From af816657ea12177d8159feda5a250b00395f1b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A0n=20Todorovich?= Date: Thu, 29 Jun 2023 12:54:11 -0300 Subject: [PATCH] [FIX] flake8 errors ``` | lint: commands[0]> flake8 marabunta/ tests/ | tests/test_env_default.py:9:11: E275 missing whitespace after keyword | tests/test_env_default.py:15:11: E275 missing whitespace after keyword | tests/test_env_default.py:19:11: E275 missing whitespace after keyword | tests/test_env_default.py:23:11: E275 missing whitespace after keyword | tests/test_env_default.py:27:11: E275 missing whitespace after keyword | tests/test_env_default.py:31:11: E275 missing whitespace after keyword | tests/test_env_default.py:35:11: E275 missing whitespace after keyword | tests/test_env_default.py:39:11: E275 missing whitespace after keyword ``` --- tests/test_env_default.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/test_env_default.py b/tests/test_env_default.py index 98f7a2d..64622f9 100644 --- a/tests/test_env_default.py +++ b/tests/test_env_default.py @@ -6,34 +6,34 @@ def test_env_default_str(): os.environ['test_var'] = 'Foo' test = EnvDefault('test_var', option_strings='', dest='test_var') - assert(test.default == 'Foo') + assert test.default == 'Foo' def test_bool_env_default_str(): os.environ['test_var'] = 'True' test = BoolEnvDefault('test_var', option_strings='', dest='test_var') - assert(test.default) + assert test.default os.environ['test_var'] = 'true' test = BoolEnvDefault('test_var', option_strings='', dest='test_var') - assert(test.default) + assert test.default os.environ['test_var'] = '1' test = BoolEnvDefault('test_var', option_strings='', dest='test_var') - assert(test.default) + assert test.default os.environ['test_var'] = 'False' test = BoolEnvDefault('test_var', option_strings='', dest='test_var') - assert(not test.default) + assert not test.default os.environ['test_var'] = 'false' test = BoolEnvDefault('test_var', option_strings='', dest='test_var') - assert(not test.default) + assert not test.default os.environ['test_var'] = '3' test = BoolEnvDefault('test_var', option_strings='', dest='test_var') - assert(not test.default) + assert not test.default del os.environ['test_var'] test = BoolEnvDefault('test_var', option_strings='', dest='test_var') - assert(not test.default) + assert not test.default