test_ok2/testing/example_scripts/issue88_initial_file_multin.../conftest.py

15 lines
266 B
Python

import pytest
class MyFile(pytest.File):
def collect(self):
return [MyItem.from_parent(name="hello", parent=self)]
def pytest_collect_file(path, parent):
return MyFile.from_parent(fspath=path, parent=parent)
class MyItem(pytest.Item):
pass