mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-06-11 01:14:45 +02:00
test: update stale assertions post feature/mesh-intelligence merge
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d88c6273ec
commit
dcb53ae30c
15 changed files with 182 additions and 130 deletions
|
|
@ -36,7 +36,7 @@ def test_list_returns_all_59_keys(client):
|
|||
# 14 adapters with at least one key (itd_511 has zero -- not in the
|
||||
# grouped dict because the SQL only returns rows that exist).
|
||||
total = sum(len(v) for v in body.values())
|
||||
assert total == 59
|
||||
assert total == 84
|
||||
|
||||
|
||||
def test_list_grouped_by_adapter(client):
|
||||
|
|
@ -44,7 +44,7 @@ def test_list_grouped_by_adapter(client):
|
|||
body = r.json()
|
||||
assert "wfigs" in body
|
||||
keys = {row["key"] for row in body["wfigs"]}
|
||||
assert keys == {"cooldown_seconds", "anchor_max_mi",
|
||||
assert keys == {"cooldown_seconds", "anchor_max_mi", "freshness_seconds",
|
||||
"broadcast_on_acres", "broadcast_on_contained"}
|
||||
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ def test_per_adapter_empty_for_itd_511(client):
|
|||
"""itd_511 has zero config keys post-3a.1; returns empty list, not 404."""
|
||||
r = client.get("/api/adapter-config/itd_511")
|
||||
assert r.status_code == 200
|
||||
assert r.json() == []
|
||||
assert len(r.json()) > 0 # itd_511 has adapter_config keys now
|
||||
|
||||
|
||||
# ============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue