import uuid from typing import Any import pytest from common.schemas.ingestion import ProductInfo from common.test_data.event import event_data @pytest.fixture def correlation_id() -> str: return str(uuid.uuid4()) @pytest.fixture def upc() -> str: return str(event_data["product_info"]["product"]["upc"]) @pytest.fixture def product_id() -> int: return int(event_data["product_info"]["product"]["product_id"] or 123) @pytest.fixture def tracks() -> list[dict[str, Any]]: return event_data["product_info"]["tracks"] or [] @pytest.fixture def product_info() -> ProductInfo: return ProductInfo(**event_data["product_info"]) @pytest.fixture def execution_arn() -> str: return ( "arn:aws:states:us-east-1:123456789012:execution:my-state-machine:my-execution" ) @pytest.fixture def identity_id() -> str: return str(uuid.uuid4())