Skip to content

Commit

Permalink
Improved error message in api_asserts.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Feb 16, 2023
1 parent 9bcfe34 commit 2729316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy_test/base/api_asserts.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def assert_error_message_contains(response: Union[Response, dict], expected_cont
as_dict = _as_dict(response)
assert_has_keys(as_dict, "err_msg")
err_msg = as_dict["err_msg"]
assert expected_contains in err_msg
assert expected_contains in err_msg, f"Expected error message [{err_msg}] to contain [{expected_contains}]."


def _as_dict(response: Union[Response, dict]) -> Dict[str, Any]:
Expand Down

0 comments on commit 2729316

Please sign in to comment.