Initial commit: add Gitea PyPI publish workflow
This commit is contained in:
22
tests/conftest.py
Normal file
22
tests/conftest.py
Normal file
@@ -0,0 +1,22 @@
|
||||
"""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")
|
||||
Reference in New Issue
Block a user