From 65fc9ac2b9e344209e5870b76316d2bf941b3444 Mon Sep 17 00:00:00 2001 From: anti Date: Sun, 19 Apr 2026 03:17:17 -0400 Subject: [PATCH] fix(tests): clean up two pre-existing failures before config work - decnet/agent/app.py /health: drop leftover 'push-test-2' canary planted during live VM push verification and never cleaned up; test_health_endpoint asserts the exact dict shape. - tests/test_factory.py: switch the lazy-engine check from mysql+aiomysql (not in pyproject) to mysql+asyncmy (the driver the project actually ships). The test does not hit the wire so the dialect swap is safe. Both were red on `pytest tests/` before any config/auto-spawn work began; fixing them here so the upcoming commits land on a green full-suite baseline. --- decnet/agent/app.py | 2 +- tests/test_factory.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/decnet/agent/app.py b/decnet/agent/app.py index cc5218c..fb72390 100644 --- a/decnet/agent/app.py +++ b/decnet/agent/app.py @@ -59,7 +59,7 @@ class MutateRequest(BaseModel): @app.get("/health") async def health() -> dict[str, str]: - return {"status": "ok", "marker": "push-test-2"} + return {"status": "ok"} @app.get("/status") diff --git a/tests/test_factory.py b/tests/test_factory.py index 916dab4..662cfc0 100644 --- a/tests/test_factory.py +++ b/tests/test_factory.py @@ -27,7 +27,7 @@ def test_factory_mysql_branch(monkeypatch): first query — so the repository constructs cleanly here. """ monkeypatch.setenv("DECNET_DB_TYPE", "mysql") - monkeypatch.setenv("DECNET_DB_URL", "mysql+aiomysql://u:p@127.0.0.1:3306/x") + monkeypatch.setenv("DECNET_DB_URL", "mysql+asyncmy://u:p@127.0.0.1:3306/x") repo = get_repository() assert isinstance(repo, MySQLRepository)