kin: KIN-OBS-022 Исправить мелкие баги отображения и deprecation в cli/watch.py

This commit is contained in:
Gros Frumos 2026-03-17 18:32:03 +02:00
parent f0a69ed1d3
commit 80e83058a0
2 changed files with 34 additions and 4 deletions

View file

@ -58,13 +58,14 @@ def test_get_pipeline_logs_empty_returns_empty_list(pipeline_client):
# ─────────────────────────────────────────────────────────────
# Тест: несуществующий pipeline → 404 (Convention #420)
# Тест: несуществующий pipeline → 200 [] (KIN-OBS-023)
# ─────────────────────────────────────────────────────────────
def test_get_pipeline_logs_nonexistent_pipeline_returns_404(client):
"""GET /api/pipelines/99999/logs возвращает 404 для несуществующего pipeline."""
def test_get_pipeline_logs_nonexistent_pipeline_returns_empty(client):
"""KIN-OBS-023: GET /api/pipelines/99999/logs → 200 [] (log collections return empty, not 404)."""
r = client.get("/api/pipelines/99999/logs")
assert r.status_code == 404
assert r.status_code == 200
assert r.json() == []
# ─────────────────────────────────────────────────────────────