Skip to content

Commit

Permalink
[FIX] flake8 errors
Browse files Browse the repository at this point in the history
```
| 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
```
  • Loading branch information
ivantodorovich committed Sep 11, 2023
1 parent c72b623 commit ddbb297
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/test_env_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ddbb297

Please sign in to comment.