fixed db error message checks
This commit is contained in:
parent
cb1c6a261a
commit
e557a9dd1e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue