mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 13:06:53 +00:00
fixed tests for additional default config
This commit is contained in:
parent
f18685891e
commit
7218f9cc78
2 changed files with 6 additions and 0 deletions
|
|
@ -9,6 +9,10 @@ import pytest
|
|||
from flake8 import utils
|
||||
from flake8.main import cli
|
||||
|
||||
from flake8.options import config
|
||||
config.ADDITIONAL_LOCATIONS = ()
|
||||
config.ADDITIONAL_CANDIDATES = ()
|
||||
|
||||
|
||||
def test_diff_option(tmpdir, capsys):
|
||||
"""Ensure that `flake8 --diff` works."""
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ from flake8.options.manager import OptionManager
|
|||
|
||||
|
||||
def test_config_not_found_returns_none(tmp_path):
|
||||
config.ADDITIONAL_LOCATIONS = ()
|
||||
config.ADDITIONAL_CANDIDATES = ()
|
||||
assert config._find_config_file(str(tmp_path)) is None
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue