Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Enable full toml configuration and pyproject.toml #534

Merged
merged 17 commits into from
May 9, 2021
Merged
Prev Previous commit
Next Next commit
add file extension in test_config_path
RuRo committed May 9, 2021
commit 06c13b4947bc4df32399c7c9e1ae7776963f7503
8 changes: 6 additions & 2 deletions src/tests/test_integration.py
Original file line number Diff line number Diff line change
@@ -402,16 +402,20 @@ def foo():
pass
"""))

# either my_config.ini or my_config.toml
config_ext = env.config_name.split('.')[-1]
config_name = 'my_config.' + config_ext

env.write_config(ignore='D100')
env.write_config(name='my_config', ignore='D103')
env.write_config(name=config_name, ignore='D103')

out, err, code = env.invoke()
assert code == 1
assert 'D100' not in out
assert 'D103' in out

out, err, code = env.invoke('--config={} -d'
.format(env.get_path('my_config')))
.format(env.get_path(config_name)))
assert code == 1, out + err
assert 'D100' in out
assert 'D103' not in out