Create and teardown a test context shared across all tests in this module.
(request)
| 21 | |
| 22 | @pytest_asyncio.fixture(scope="module", loop_scope="module") |
| 23 | async def ctx(request): |
| 24 | """Create and teardown a test context shared across all tests in this module.""" |
| 25 | context = E2ETestContext() |
| 26 | await context.setup() |
| 27 | yield context |
| 28 | any_failed = request.session.stash.get("any_test_failed", False) |
| 29 | skip_writing_cache = any_failed or bool(os.environ.get("GITHUB_ACTIONS")) |
| 30 | await context.teardown(test_failed=skip_writing_cache) |
| 31 | |
| 32 | |
| 33 | @pytest_asyncio.fixture(autouse=True, loop_scope="module") |
nothing calls this directly
no test coverage detected