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'
```
This commit is contained in:
mvdbeek
2018-08-16 19:14:33 +02:00
parent 9e07d9cc06
commit 2b275b7df0
+1 -1
View File
@@ -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):