(monkeypatch: pytest.MonkeyPatch)
| 18 | |
| 19 | @pytest.fixture |
| 20 | def trace_client(monkeypatch: pytest.MonkeyPatch) -> TestClient: |
| 21 | monkeypatch.setenv("UNCOMMON_ROUTE_ADMIN_TOKEN", "test-admin") |
| 22 | app = create_app( |
| 23 | upstream="http://127.0.0.1:1/fake", |
| 24 | spend_control=SpendControl(storage=InMemorySpendControlStorage()), |
| 25 | route_stats=RouteStats(storage=InMemoryRouteStatsStorage()), |
| 26 | feedback=FeedbackCollector(), |
| 27 | trace_store=TraceStore(storage=InMemoryTraceStorage()), |
| 28 | ) |
| 29 | return TestClient(app, raise_server_exceptions=False) |
| 30 | |
| 31 | |
| 32 | class TestTraceStore: |
nothing calls this directly
no test coverage detected