From 2b275b7df033c323cec93c34a8089a4820fce768 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Thu, 16 Aug 2018 19:14:20 +0200 Subject: [PATCH] Start counting test numbers at 1 and use _test_n That allows for nicer select syntax like ```` pytest test/functional/test_toolbox_pytest.py -k '(random_lines1 or Cut1) and _test_1' ``` --- test/functional/test_toolbox_pytest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/test_toolbox_pytest.py b/test/functional/test_toolbox_pytest.py index 78df499b487..c3e32a2294b 100644 --- a/test/functional/test_toolbox_pytest.py +++ b/test/functional/test_toolbox_pytest.py @@ -46,7 +46,7 @@ def cases(): test_class.runTest = lambda : None test_instance = test_class() for index in range(test_instance.test_count): - yield (test_name[len(TEST_PREFIX):] + "|%d" % index, test_instance, index) + yield (test_name[len(TEST_PREFIX):] + "_test_%d" % (index + 1), test_instance, index) def idfn(val):