"""conftest for ows-transcoding integration tests.""" from os import getenv import pytest from tests.testutils.api_client.api_client import APIClient from tests.testutils.api_client.assets_api_client import AssetsAPIClient @pytest.fixture def api_client() -> APIClient: """Initialize and return transcoding APIClient.""" return APIClient(getenv("BASE_URL", "https://localhost")) @pytest.fixture def assets_api_client() -> AssetsAPIClient: """Initialize and return AssetsAPIClient.""" return AssetsAPIClient(getenv("BASE_ASSETS_URL", "https://localhost")) @pytest.fixture def headers() -> dict[str, str]: """Headers for API calls.""" return { "Orchard-User-Id": "alw:16888", "Grass-Account-Type": "vendor", "Grass-Account-Id": "7123", "Content-Type": "application/json", } @pytest.fixture def wav_file() -> dict[str, str | int]: """Return wav file path and expected duration.""" return {"file_path": "tests/wav_file.wav", "duration": 2963} @pytest.fixture def audio_asset_type() -> str: """Return audio asset type.""" return "audio"