MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / assert_error_message

Function assert_error_message

web/regression/python_test_utils/test_utils.py:1357–1363  ·  view source on GitHub ↗
(self, response, error_msg=None)

Source from the content-addressed store, hash-verified

1355
1356
1357def assert_error_message(self, response, error_msg=None):
1358 act_res = response.json["errormsg"]
1359 if error_msg is not None:
1360 exp_res = error_msg
1361 else:
1362 exp_res = self.expected_data["error_msg"]
1363 return self.assertEqual(act_res, exp_res)
1364
1365
1366def create_expected_output(parameters, actual_data):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected