summaryrefslogtreecommitdiff
path: root/tests/test_self.py
diff options
context:
space:
mode:
authorAlexey Pelykh <alexey.pelykh@gmail.com>2023-03-01 19:23:13 +0000
committerGitHub <noreply@github.com>2023-03-01 20:23:13 +0100
commit9fe47a96615ba765dd160c8d63d1c2b973b943f0 (patch)
tree6653e9b733d1a3a4ecd3eee5db1937162b08a1f4 /tests/test_self.py
parentcbdf7af3e80824912f4dbad7f09f1f22940d464b (diff)
downloadpylint-git-9fe47a96615ba765dd160c8d63d1c2b973b943f0.tar.gz
Support globbing pattern for input specification (#8312)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'tests/test_self.py')
-rw-r--r--tests/test_self.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_self.py b/tests/test_self.py
index 07c2a2f0b..e40dd7a4d 100644
--- a/tests/test_self.py
+++ b/tests/test_self.py
@@ -1158,6 +1158,13 @@ a.py:1:4: E0001: Parsing failed: 'invalid syntax (<unknown>, line 1)' (syntax-er
code=0,
)
+ def test_recursive_globbing(self) -> None:
+ """Tests if running linter over directory using --recursive=y and globbing"""
+ self._runtest(
+ [join(HERE, "regrtest_data", "d?rectory", "subd*"), "--recursive=y"],
+ code=0,
+ )
+
@pytest.mark.parametrize("ignore_value", ["ignored_subdirectory", "failing.py"])
def test_ignore_recursive(self, ignore_value: str) -> None:
"""Tests recursive run of linter ignoring directory using --ignore parameter.