FEA-Bench / testbed /aws-powertools__powertools-lambda-python /tests /e2e /idempotency_redis /conftest.py
| import pytest | |
| from tests.e2e.idempotency_redis.infrastructure import IdempotencyRedisServerlessStack | |
| def infrastructure(): | |
| """Setup and teardown logic for E2E test infrastructure | |
| Yields | |
| ------ | |
| Dict[str, str] | |
| CloudFormation Outputs from deployed infrastructure | |
| """ | |
| stack = IdempotencyRedisServerlessStack() | |
| try: | |
| yield stack.deploy() | |
| finally: | |
| stack.delete() | |