Test client with in-memory spend control (no real upstream).
()
| 509 | |
| 510 | @pytest.fixture |
| 511 | def 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 | |
| 521 | class TestHealthEndpoint: |
nothing calls this directly
no test coverage detected