summaryrefslogtreecommitdiff
path: root/pylint/test/test_functional.py
diff options
context:
space:
mode:
authorƁukasz Rogalski <rogalski.91@gmail.com>2016-12-29 16:28:43 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2016-12-29 17:28:43 +0200
commitda30aaabb455f1a08fa36bd5d039a7db304338aa (patch)
tree707480b3e1d20d8f318863e36c6322b5942799e1 /pylint/test/test_functional.py
parentfa85784379edd5f23ac4a040078a7379d36a7a9e (diff)
downloadpylint-git-da30aaabb455f1a08fa36bd5d039a7db304338aa.tar.gz
test_functional: assign user-friendly names to parametrised tests (#1248)
Diffstat (limited to 'pylint/test/test_functional.py')
-rw-r--r--pylint/test/test_functional.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/pylint/test/test_functional.py b/pylint/test/test_functional.py
index 8b7817a94..116220420 100644
--- a/pylint/test/test_functional.py
+++ b/pylint/test/test_functional.py
@@ -360,15 +360,11 @@ def get_tests():
return suite
-# @pytest.fixture
-# def wrap_stdout(request, capsys):
-# if request.getfixturevalue('test_file').base == 'sys_stream_regression_1004':
-# with capsys.disabled():
-# yield
+TESTS = get_tests()
+TESTS_NAMES = [t.base for t in TESTS]
-@pytest.mark.parametrize("test_file", get_tests())
-# @pytest.mark.usefixtures('wrap_stdout')
+@pytest.mark.parametrize("test_file", TESTS, ids=TESTS_NAMES)
def test_functional(test_file):
LintTest = LintModuleOutputUpdate(test_file) if UPDATE else LintModuleTest(test_file)
LintTest.setUp()