Closed 1frag closed 3 years ago
Earlier, when we validated the response:
parser.validate_definition( definition_name='definition_name', dict_to_test=response, )
we will get True or False. Usually, when we got False we want analyze problem. And now you can use
True
False
parser.validate_definition( definition_name=definition_name, dict_to_test=data, return_error_message=True, )
And will got (bool, str) like (False, 'Expected integer type, but got test1') See more in test_msg_after_validate
(bool, str)
test1
test_msg_after_validate
What about?
Earlier, when we validated the response:
we will get
True
orFalse
. Usually, when we gotFalse
we want analyze problem. And now you can useAnd will got
(bool, str)
like (False, 'Expected integer type, but gottest1
') See more intest_msg_after_validate