File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ def __pytest_repeat_step_number(request):
4949 "Please consider raising an issue with your usage." )
5050
5151
52+ @pytest .hookimpl (trylast = True )
5253def pytest_generate_tests (metafunc ):
5354 count = metafunc .config .option .count
5455 if hasattr (metafunc .function , 'repeat' ):
Original file line number Diff line number Diff line change @@ -54,8 +54,16 @@ def test_parametrize(self, testdir):
5454 def test_repeat(x):
5555 pass
5656 """ )
57- result = testdir .runpytest ('--count' , '2' )
58- result .stdout .fnmatch_lines (['*6 passed*' ])
57+ result = testdir .runpytest ('-v' , '--count' , '2' )
58+ result .stdout .fnmatch_lines ([
59+ '*test_parametrize.py::test_repeat[[]a-1/2[]] PASSED*' ,
60+ '*test_parametrize.py::test_repeat[[]a-2/2[]] PASSED*' ,
61+ '*test_parametrize.py::test_repeat[[]b-1/2[]] PASSED*' ,
62+ '*test_parametrize.py::test_repeat[[]b-2/2[]] PASSED*' ,
63+ '*test_parametrize.py::test_repeat[[]c-1/2[]] PASSED*' ,
64+ '*test_parametrize.py::test_repeat[[]c-2/2[]] PASSED*' ,
65+ '*6 passed*' ,
66+ ])
5967 assert result .ret == 0
6068
6169 def test_parametrized_fixture (self , testdir ):
You can’t perform that action at this time.
0 commit comments