MCPcopy Create free account
hub / github.com/pytest-dev/pytest / checked_order

Function checked_order

testing/example_scripts/issue_519.py:17–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16@pytest.fixture(scope="session")
17def checked_order():
18 order: List[Tuple[str, str, str]] = []
19
20 yield order
21 pprint.pprint(order)
22 assert order == [
23 ("issue_519.py", "fix1", "arg1v1"),
24 ("test_one[arg1v1-arg2v1]", "fix2", "arg2v1"),
25 ("test_two[arg1v1-arg2v1]", "fix2", "arg2v1"),
26 ("test_one[arg1v1-arg2v2]", "fix2", "arg2v2"),
27 ("test_two[arg1v1-arg2v2]", "fix2", "arg2v2"),
28 ("issue_519.py", "fix1", "arg1v2"),
29 ("test_one[arg1v2-arg2v1]", "fix2", "arg2v1"),
30 ("test_two[arg1v2-arg2v1]", "fix2", "arg2v1"),
31 ("test_one[arg1v2-arg2v2]", "fix2", "arg2v2"),
32 ("test_two[arg1v2-arg2v2]", "fix2", "arg2v2"),
33 ]
34
35
36@pytest.fixture(scope="module")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected