(*args: str)
| 964 | monkeypatch.chdir(pytester.path / "suite") |
| 965 | |
| 966 | def get_collected_names(*args: str) -> list[str]: |
| 967 | _, rec = pytester.inline_genitems(*args) |
| 968 | calls = rec.getcalls("pytest_collection_finish") |
| 969 | assert len(calls) == 1 |
| 970 | return [x.name for x in calls[0].session.items] |
| 971 | |
| 972 | # sanity check: collect both tests in normal runs |
| 973 | assert get_collected_names() == ["test_aaa", "test_ddd"] |
nothing calls this directly
no test coverage detected