mirror of
https://github.com/hanzoai/sdk.git
synced 2026-11-02 10:34:12 +00:00
- 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
23 lines
568 B
Python
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 |