fixed db error message checks

This commit is contained in:
jasquat 2022-10-11 10:03:16 -04:00
parent cb1c6a261a
commit e557a9dd1e
1 changed files with 2 additions and 3 deletions

View File

@ -1373,7 +1373,7 @@ class TestProcessApi(BaseTest):
api_error = json.loads(response.get_data(as_text=True))
assert api_error["code"] == "task_error"
assert (
'Activity_CauseError: TypeError:can only concatenate str (not "int") to str'
'TypeError:can only concatenate str (not "int") to str'
in api_error["message"]
)
@ -1454,8 +1454,7 @@ class TestProcessApi(BaseTest):
message = outbox[0]
assert message.subject == "Unexpected error in app"
assert (
message.body
== 'Activity_CauseError: TypeError:can only concatenate str (not "int") to str'
'TypeError:can only concatenate str (not "int") to str' in message.body
)
assert message.recipients == process_model.exception_notification_addresses