Files
sdk/tests/py/test_client.py
zeekay 1a19f15912 feat: Unified multi-language Hanzo SDK
- Consolidated Python, JavaScript, Rust, and Go SDKs
- Standard directory structure (src/py, src/js, src/rs, src/go)
- Real implementations from existing SDKs (not stubs)
- Comprehensive test framework with CI/CD matrix
- Dual distribution support (pip and npm)
- Language parity for all core commands
- Smart routing based on language strengths
2025-09-15 12:44:41 -05:00

23 lines
568 B
Python

"""Tests for Python client."""
import pytest
from hanzo.client import HanzoClient
def test_client_creation():
"""Test client can be created."""
client = HanzoClient()
assert client is not None
assert client.base_url == "https://api.hanzo.ai"
def test_client_with_api_key():
"""Test client with API key."""
client = HanzoClient(api_key="test-key")
assert client.api_key == "test-key"
def test_client_context_manager():
"""Test client works as context manager."""
with HanzoClient() as client:
assert client is not None