26 @pytest.hookimpl(tryfirst=True)
27 def pytest_collection_modifyitems(self, session, config, items):
32 paths.add(pathlib.Path(item.module.__file__).parent)
33 for marker
in item.own_markers:
34 if marker.name ==
'servicetest':
40 tests_root = min(paths, key=
lambda p: len(p.parts))
42 module = ServiceRunnerModule.from_parent(
43 parent=session, path=pathlib.Path(tests_root).resolve(),
45 function = pytest.Function.from_parent(
47 name=test_service_default.__name__,
48 callobj=test_service_default,
51 items.append(function)
54@pytest.mark.servicetest