23 lines
510 B
Python
23 lines
510 B
Python
"""Shared pytest fixtures."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import pytest
|
|
|
|
from conduit_client import AsyncConduitClient, ConduitClient
|
|
|
|
|
|
@pytest.fixture
|
|
def api_key() -> str:
|
|
return "mega_sk_live_test_prefix_testsecret"
|
|
|
|
|
|
@pytest.fixture
|
|
def client(api_key: str) -> ConduitClient:
|
|
return ConduitClient(api_key, base_url="https://api.example.com")
|
|
|
|
|
|
@pytest.fixture
|
|
def async_client(api_key: str) -> AsyncConduitClient:
|
|
return AsyncConduitClient(api_key, base_url="https://api.example.com")
|