Commit 6c5fc89
committed
PL-135538: Replace real llama-server tests with in-process dummy engine
- Add src/skvaider/dummy_engine/ -- DummyModel with HTTP control API
(POST /__control/set_response, GET /__control/last_request, POST /__control/reset)
- Add DummyModelConfig to inference config's AnyModelConfig discriminated union
- Wire DummyModel into inference server lifespan (lazy import, isinstance branch)
- Replace OpenAIServerMock with DummyModel-based fixture
- Rename gemma -> gemma_real, add gemma fixture using DummyModel (default)
- Rename embeddinggemma -> embeddinggemma_real for stability test
- Update 6 tests to use dummy engine (test_health, test_metrics, test_proxy,
test_model_name_case_normalization, test_health_monitoring streaming)
- Add aiohttp dev dependency1 parent 5ec3303 commit 6c5fc89
11 files changed
Lines changed: 1097 additions & 114 deletions
File tree
- src/skvaider
- dummy_engine
- inference
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
| 83 | + | |
84 | 84 | | |
0 commit comments