INNER CODE UNIT · Python
pytest_collect_file
hynek/svcs · conftest.py:37
pytest_collect_file = (markdown_examples + rest_examples).pytest()
collect_ignore = []
try:
import sphinx # noqa: F401
except ImportError:
collect_ignore.extend(["docs"])
for name in ["fastapi", "flask", "aiohttp", "starlette"]:
try:
importlib.import_module(name)
except ImportError: # noqa: PERF203
collect_ignore.extend([f"tests/integrations/test_{name}.py"])
@pytest.fixture(name="svc")
def _svc():
return Service()