Implements CFOrchClient with allocate() (sync contextmanager) and allocate_async() (async contextmanager) for cf-orch GPU resource allocation. Releases allocation on exit; ignores 404 on release; raises RuntimeError on non-2xx allocation response. Exports CFOrchClient and Allocation from circuitforge_core.resources. Note: async test uses unittest.mock rather than httpretty — httpretty only patches stdlib sockets and does not intercept httpx async (anyio) transport. |
||
|---|---|---|
| .. | ||
| test_resources | ||
| test_tasks | ||
| __init__.py | ||
| test_config.py | ||
| test_db.py | ||
| test_llm_router.py | ||
| test_stubs.py | ||
| test_tiers.py | ||