diff --git a/package/tests/test_api/test_rest/test_router.py b/package/tests/test_api/test_rest/test_router.py index 8f46aeadf9..7457621688 100644 --- a/package/tests/test_api/test_rest/test_router.py +++ b/package/tests/test_api/test_rest/test_router.py @@ -106,4 +106,4 @@ def test_update_preferences_failure(client, mocker): response = client.post("api/preferences", json={"showDatasetPreviews": True}) assert response.status_code == 500 - assert response.json() == {"detail": "Failed to update preferences"} + assert response.json() == {"message": "Failed to update preferences"}