Skip to content

Ordering a function that has to be executed twice #80

@gbedad

Description

@gbedad

Hi everyone,

I am doing e2e tests with playwright pytest and I need to run some tests in sequence and the problem is that one of them should be executed twice. For example I have those 3 functions:
def test_one():
pass

def test_two():
pass

def test_three():
pass

I need to have this sequence : test_one, test_two, test_three, test_two.

It is clear to me how to use order or before/after, but how can I run this function test_two before test_three and then after test_three.

Thanks for the support.

Gerald

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions