summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-01-10 09:50:32 -0600
committerIan Cordasco <graffatcolmingov@gmail.com>2016-01-10 09:50:32 -0600
commitde96b24bad8a1b099749a8b8473de9e885b4718e (patch)
tree8ea4509d3b98e09d01e3c1bc9b70d6e62ec4b393 /tests
parent9231aae1d6ecfca856e97fa4279cf06e83f42e57 (diff)
downloadflake8-de96b24bad8a1b099749a8b8473de9e885b4718e.tar.gz
Add parameter for missing extra config file
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_config_file_finder.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/test_config_file_finder.py b/tests/unit/test_config_file_finder.py
index 35fa4a6..948e741 100644
--- a/tests/unit/test_config_file_finder.py
+++ b/tests/unit/test_config_file_finder.py
@@ -93,6 +93,13 @@ def test_generate_possible_local_config_files(args, expected):
[os.path.abspath('setup.cfg'),
os.path.abspath('tox.ini'),
os.path.abspath(CLI_SPECIFIED_FILEPATH)]),
+ # Common prefix of "flake8/" with missing extra config files specified
+ (['flake8/'],
+ [CLI_SPECIFIED_FILEPATH,
+ 'tests/fixtures/config_files/missing.ini'],
+ [os.path.abspath('setup.cfg'),
+ os.path.abspath('tox.ini'),
+ os.path.abspath(CLI_SPECIFIED_FILEPATH)]),
])
def test_local_config_files(args, extra_config_files, expected):
"""Verify discovery of local config files."""