mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
- Remove all unconditional pytest.skip() calls - Fix file content tests to handle both strict/non-strict modes - Fix missing device_capabilities module in hanzo-network - Fix HanzoNetProvider imports and exports - Fix local_llm.py import errors - Create test helper classes for pagination tests - Fix FastMCP paginator test constructor args - Configure all API keys from ~/.zsh/after.zsh - All tests now pass or skip conditionally based on actual requirements
26 lines
505 B
Python
26 lines
505 B
Python
"""Basic test for asyncio support."""
|
|
|
|
import asyncio
|
|
|
|
import pytest
|
|
|
|
|
|
def test_sync():
|
|
"""Simple synchronous test to verify basic testing works."""
|
|
assert 1 + 1 == 2
|
|
|
|
|
|
@pytest.mark.asyncio
|
|
async def test_async_simple():
|
|
"""Simple async test to verify asyncio support."""
|
|
await asyncio.sleep(0.001)
|
|
assert 1 + 1 == 2
|
|
|
|
|
|
@pytest.mark.asyncio
|
|
async def test_async_manual():
|
|
"""Run async code to verify it works."""
|
|
await asyncio.sleep(0.001)
|
|
result = 2
|
|
assert result == 2
|