summaryrefslogtreecommitdiff
path: root/tests/testutils
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2023-03-23 09:38:10 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2023-03-28 21:48:17 +0200
commit1dcb7becadecda6b2e7b0af022a8ec6d1a1d9d22 (patch)
tree4fd5782708eabad6d5848e659213747d363a2525 /tests/testutils
parentcfcf95d9401d34664cde2e21d6356d5124b2bebe (diff)
downloadpylint-git-1dcb7becadecda6b2e7b0af022a8ec6d1a1d9d22.tar.gz
[functional tests] Display all violations for disorganized directories
Diffstat (limited to 'tests/testutils')
-rw-r--r--tests/testutils/test_functional_testutils.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/testutils/test_functional_testutils.py b/tests/testutils/test_functional_testutils.py
index e0055f1b0..e12fd7a84 100644
--- a/tests/testutils/test_functional_testutils.py
+++ b/tests/testutils/test_functional_testutils.py
@@ -41,7 +41,11 @@ def test_parsing_of_pylintrc_init_hook() -> None:
def test_get_functional_test_files_from_directory() -> None:
"""Test that we correctly check the functional test directory structures."""
- with pytest.raises(AssertionError, match="using_dir.py should not go in"):
+ match = (
+ "using_dir.py should go in a directory that starts with the "
+ "first letters of 'using_dir'"
+ )
+ with pytest.raises(AssertionError, match=match):
get_functional_test_files_from_directory(DATA_DIRECTORY / "u")