mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-05 12:36:54 +00:00
Raise exception if append-config does not exist
This commit is contained in:
parent
ad1006e8cb
commit
314b9f5161
2 changed files with 9 additions and 1 deletions
|
|
@ -222,6 +222,11 @@ def test_load_config_missing_file_raises_exception(capsys):
|
|||
config.load_config("foo.cfg", [])
|
||||
|
||||
|
||||
def test_load_config_missing_append_config_raise_exception():
|
||||
with pytest.raises(exceptions.ExecutionError):
|
||||
config.load_config(None, ["dont_exist_config.cfg"], isolated=False)
|
||||
|
||||
|
||||
def test_invalid_ignore_codes_raise_error(tmpdir, opt_manager):
|
||||
tmpdir.join("setup.cfg").write("[flake8]\nignore = E203, //comment")
|
||||
with tmpdir.as_cwd():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue