From 03ddafc81896c21f540b66c070ff6bc1dced312f Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Fri, 22 Oct 2021 21:40:40 +0200 Subject: [PATCH] WireViz 0.3: Adjust exception response text for error path tests --- tests/test_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_api.py b/tests/test_api.py index d7f03db..2dbc6fc 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -168,7 +168,7 @@ def test_invalid_yaml_data(self, client): ) assert response.status_code == 400 assert response.json == { - "message": "Unable to parse WireViz YAML format: 'str' object does not support item assignment", + "message": "Unable to parse WireViz YAML format: 'str' object has no attribute 'get'", } @@ -249,5 +249,5 @@ def test_invalid_encoded_data(self, client, imagetype): ) assert response.status_code == 400 assert response.json == { - "message": "Unable to parse WireViz YAML format: 'str' object does not support item assignment", + "message": "Unable to parse WireViz YAML format: 'str' object has no attribute 'get'", }