(self)
| 435 | assert d.fallback_chain[0].cost_estimate >= 0 |
| 436 | |
| 437 | def test_spend_control_sdk(self) -> None: |
| 438 | from uncommon_route import SpendControl, InMemorySpendControlStorage |
| 439 | sc = SpendControl(storage=InMemorySpendControlStorage()) |
| 440 | sc.set_limit("per_request", 0.05) |
| 441 | assert sc.check(0.03).allowed is True |
| 442 | assert sc.check(0.10).allowed is False |
| 443 | |
| 444 | def test_openclaw_sdk(self) -> None: |
| 445 | from uncommon_route import openclaw_install, openclaw_status, openclaw_uninstall |
nothing calls this directly
no test coverage detected