(*args)
| 901 | ) |
| 902 | |
| 903 | def get_collected_names(*args): |
| 904 | _, rec = pytester.inline_genitems(*args) |
| 905 | calls = rec.getcalls("pytest_collection_finish") |
| 906 | assert len(calls) == 1 |
| 907 | return [x.name for x in calls[0].session.items] |
| 908 | |
| 909 | # sanity check: collect both tests in normal runs |
| 910 | assert get_collected_names() == ["test_aaa", "test_ddd"] |
nothing calls this directly
no test coverage detected