summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2019-03-08 23:21:40 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2019-03-09 22:08:14 -0800
commit3396ee7bb21df77ed1d5d1cbf1bff693fcc95c31 (patch)
treeaef8b1be2401e3a7c3058266959b81bbede7db0c
parentf31d890af0cf2c7adfe8df0b183d26d484a79e2e (diff)
downloadisort-3396ee7bb21df77ed1d5d1cbf1bff693fcc95c31.tar.gz
Add addition test to ensure */directory/*.py glob pattern works as expected
-rw-r--r--test_isort.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test_isort.py b/test_isort.py
index d65d4b9f..b6f07e62 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -2785,7 +2785,8 @@ def test_safety_excludes(tmpdir, enabled):
assert file_names == {'verysafe.py'}
-@pytest.mark.parametrize('skip_glob_assert', (([], 0, {os.sep.join(('code', 'file.py'))}), (['**/*.py'], 1, {})))
+@pytest.mark.parametrize('skip_glob_assert', (([], 0, {os.sep.join(('code', 'file.py'))}), (['**/*.py'], 1, {}),
+ (['*/code/*.py'], 1, {})))
def test_skip_glob(tmpdir, skip_glob_assert):
skip_glob, skipped_count, file_names = skip_glob_assert
base_dir = tmpdir.mkdir('build')