MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / client

Function client

tests/test_proxy.py:511–518  ·  view source on GitHub ↗

Test client with in-memory spend control (no real upstream).

()

Source from the content-addressed store, hash-verified

509
510@pytest.fixture
511def client() -> TestClient:
512 """Test client with in-memory spend control (no real upstream)."""
513 spend_control = SpendControl(storage=InMemorySpendControlStorage())
514 app = create_app(
515 upstream="http://127.0.0.1:1/fake",
516 spend_control=spend_control,
517 )
518 return TestClient(app, raise_server_exceptions=False)
519
520
521class TestHealthEndpoint:

Callers

nothing calls this directly

Calls 3

SpendControlClass · 0.90
create_appFunction · 0.90

Tested by

no test coverage detected