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 ingestion_id() -> str: return str(uuid.uuid4()) @pytest.fixture def product_info() -> ProductInfo: return ProductInfo(**event_data["product_info"]) @pytest.fixture def missing_assets_validation_result() -> dict[str, Any]: return { "validation": { "isValid": False, "errors": [ { "code": "ARTWORK", "reason": "Artwork has not been uploaded successfully.", } ], }, "tracks": [ { "tuid": "47575051", "isrc": "AUCJ12400999", "validation": { "isValid": False, "errors": [ { "code": "MISSING_AUDIO_FILE", "reason": "Field `audio_file` is required", } ], }, } ], } @pytest.fixture def execution_arn() -> str: return ( "arn:aws:states:us-east-1:123456789012:execution:my-state-machine:my-execution" )