Skip to content

Commit 6c5fc89

Browse files
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 dependency
1 parent 5ec3303 commit 6c5fc89

11 files changed

Lines changed: 1097 additions & 114 deletions

File tree

devenv.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
env = {
2727
PYTHONUNBUFFERED = "1"; # makes output from subprocesses in tests more reliably visible
28+
UV_PROJECT_ENVIRONMENT = "${toString ./.devenv/state/venv}";
2829
};
2930

3031
scripts.run-tests.exec = ''

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ reportPrivateUsage = "none"
7474
root = "src/skvaider/tests"
7575
reportPrivateUsage = "none"
7676

77-
7877
[dependency-groups]
7978
dev = [
8079
"pytest>=8.4.1",
8180
"pytest-asyncio>=1.1.0",
8281
"pytest-cov>=6.2.1",
8382
"pytest-timeout>=2.4.0",
83+
"aiohttp>=3.9.0",
8484
]

0 commit comments

Comments
 (0)