I have a pytest code similar to below... if i run it with --count 3 it will run the test_first 3 times then test_second 3 times.
What if i would like it to run test_first, test_second and repeat that flow?
Thanks.:)
@pytest.mark.usefixtures('setup')
class TestSomething:
def run_setup(self):
pass
def test_first(self):
print('test 1')
name = 'name'
assert name.isalpha()
def test_second(self):
print('test 2')
name = '12345'
assert name.isalpha()