Skip to content

Commit 68bb19c

Browse files
committed
fixes test
1 parent e6cc461 commit 68bb19c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/service-library/tests/aiohttp/test_rest_middlewares.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ async def test_raised_unhandled_exception(
240240
#
241241
# ERROR servicelib.aiohttp.rest_middlewares:rest_middlewares.py:75 We apologize ... [OEC:128594540599840].
242242
# {
243-
# "exception_details": "Unexpected error",
243+
# "exception_string": "Unexpected error",
244244
# "error_code": "OEC:128594540599840",
245245
# "context": {
246246
# "request.remote": "127.0.0.1",
@@ -262,7 +262,7 @@ async def test_raised_unhandled_exception(
262262

263263
assert response.method in caplog.text
264264
assert response.url.path in caplog.text
265-
assert "exception_details" in caplog.text
265+
assert "exception_string" in caplog.text
266266
assert "request.remote" in caplog.text
267267
assert "context" in caplog.text
268268
assert SomeUnexpectedError.__name__ in caplog.text

packages/service-library/tests/test_logging_errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class MyError(OsparcErrorMixin, RuntimeError):
5858

5959
# ERROR root:test_logging_utils.py:417 Nice message to user [OEC:126055703573984].
6060
# {
61-
# "exception_details": "My error 123",
61+
# "exception_string": "My error 123",
6262
# "error_code": "OEC:126055703573984",
6363
# "context": {
6464
# "user_id": 123,

0 commit comments

Comments
 (0)