File size: 464 Bytes
d8ad0fd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import pytest
from tests.e2e.idempotency_redis.infrastructure import IdempotencyRedisServerlessStack
@pytest.fixture(autouse=True, scope="package")
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()
|