from collections.abc import AsyncIterator import pytest from audience_common.enums import Environment from audience_common.owsclient import AsyncOwsClient @pytest.fixture async def ows_client() -> AsyncIterator[AsyncOwsClient]: client = AsyncOwsClient(environment=Environment.TEST, service_name="campaigns") yield client await client.close()