changed additional candidates to lists to become more mutable

This commit is contained in:
Christian Zandee 2021-11-29 11:54:08 +01:00
parent 54d81ee27d
commit 69497e3b73
3 changed files with 8 additions and 8 deletions

View file

@ -10,8 +10,8 @@ from flake8 import utils
from flake8.main import cli
from flake8.options import config
config.ADDITIONAL_LOCATIONS = ()
config.ADDITIONAL_CANDIDATES = ()
config.ADDITIONAL_LOCATIONS = []
config.ADDITIONAL_CANDIDATES = []
def test_diff_option(tmpdir, capsys):

View file

@ -8,8 +8,8 @@ from flake8.options.manager import OptionManager
def test_config_not_found_returns_none(tmp_path):
config.ADDITIONAL_LOCATIONS = ()
config.ADDITIONAL_CANDIDATES = ()
config.ADDITIONAL_LOCATIONS = []
config.ADDITIONAL_CANDIDATES = []
assert config._find_config_file(str(tmp_path)) is None