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-08 23:21:40 -0800
commita0d843144e8debee48c10bc094473389cc9b6994 (patch)
treef85d9509f383b861882527676a2a8c314cc129a4
parent8b734147b289dfd1a281f3426a035760f6ab1f52 (diff)
downloadisort-a0d843144e8debee48c10bc094473389cc9b6994.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 998f32c5..58d27d17 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -2782,7 +2782,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')