From bac8befad75041b5de485f5e89f12f81c4e6df20 Mon Sep 17 00:00:00 2001 From: harisreedhar Date: Sat, 7 Feb 2026 14:39:34 +0530 Subject: [PATCH] fix test --- tests/test_api_metrics.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_api_metrics.py b/tests/test_api_metrics.py index c897dc72..8deb7f6f 100644 --- a/tests/test_api_metrics.py +++ b/tests/test_api_metrics.py @@ -35,7 +35,8 @@ def test_get_metrics(test_client : TestClient) -> None: }) get_metrics_body = get_metrics_response.json() - assert get_metrics_body.get('execution_devices') + assert 'execution_devices' in get_metrics_body + assert isinstance(get_metrics_body.get('execution_devices'), list) assert get_metrics_response.status_code == 200 @@ -52,4 +53,5 @@ def test_websocket_metrics(test_client : TestClient) -> None: ]) as websocket: metrics_set = websocket.receive_json() - assert metrics_set.get('execution_devices') + assert 'execution_devices' in metrics_set + assert isinstance(metrics_set.get('execution_devices'), list)