[pytest] asyncio_mode = auto # Fund im ersten echten CI-Lauf: der globale engine in conftest.py wird einmal beim Import # erzeugt, asyncpg-Verbindungen sind an die Event-Loop gebunden, in der sie entstanden sind. # Ohne session-weiten Loop-Scope erzeugt pytest-asyncio pro Test eine neue Loop -> # "RuntimeError: Task ... got Future ... attached to a different loop". asyncio_default_fixture_loop_scope = session asyncio_default_test_loop_scope = session addopts = --cov=app --cov-report=term-missing --cov-fail-under=50 testpaths = tests