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.
This commit is contained in:
2026-04-19 03:17:17 -04:00
parent 1e8b73c361
commit 65fc9ac2b9
2 changed files with 2 additions and 2 deletions

View File

@@ -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")

View File

@@ -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)