vendredi 3 juin 2016

py.test passing results of one test to another

Currently I have test looking like this:

@pytest.mark.parametrize("param", [1,2,3])
def test_two_services(param):
    id = check_service_one(param)
    check_service_two(id)

Is there any way to split this test in two, where a second test depends on a first?

Aucun commentaire:

Enregistrer un commentaire