From d24d4bf3d6e81307fec4adfe09e4ccc7b7f55de2 Mon Sep 17 00:00:00 2001 From: Mads Bisgaard Date: Wed, 18 Oct 2023 15:59:54 +0200 Subject: [PATCH] fix test --- .../tests/unit/api_studies/test_api_routes_studies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/api-server/tests/unit/api_studies/test_api_routes_studies.py b/services/api-server/tests/unit/api_studies/test_api_routes_studies.py index 7a10995d7b0..3cc92db680a 100644 --- a/services/api-server/tests/unit/api_studies/test_api_routes_studies.py +++ b/services/api-server/tests/unit/api_studies/test_api_routes_studies.py @@ -103,7 +103,7 @@ async def test_studies_read_workflow( resp = await client.get(f"/v0/studies/{inexistent_study_id}", auth=auth) assert resp.status_code == status.HTTP_404_NOT_FOUND error = parse_obj_as(ErrorGet, resp.json()) - assert f"{inexistent_study_id}" in error.errors[0] + assert f"{inexistent_study_id}" in error.errors[0][0]["message"] resp = await client.get(f"/v0/studies/{inexistent_study_id}/ports", auth=auth) assert resp.status_code == status.HTTP_404_NOT_FOUND