-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconftest.py
More file actions
31 lines (22 loc) · 769 Bytes
/
conftest.py
File metadata and controls
31 lines (22 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""Pytest configuration and fixtures."""
from __future__ import annotations
import pytest
from astroapi import AstrologyClient
from astroapi.types import AstrologyClientConfig
@pytest.fixture
def mock_api_key() -> str:
"""Mock API key for testing."""
return "test_api_key_12345"
@pytest.fixture
def client_config(mock_api_key: str) -> AstrologyClientConfig:
"""Create client configuration for testing."""
return AstrologyClientConfig(
api_key=mock_api_key,
base_url="https://api.astrology-api.io",
timeout=5.0,
debug=False,
)
@pytest.fixture
def client(client_config: AstrologyClientConfig) -> AstrologyClient:
"""Create AstrologyClient instance for testing."""
return AstrologyClient(client_config)