Skip to content

Commit 21e5074

Browse files
ericzbeardMichael Maeng
andauthored
Add inputs and outputs to assertion message (#973)
* Add inputs and outputs to assertion message * Remove verbose logging * Linting from black --------- Co-authored-by: Michael Maeng <mmaeng@amazon.com>
1 parent 2d5fea7 commit 21e5074

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/rpdk/core/contract/resource_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def _prune_properties_for_all_sequence_members(document: dict, path: list) -> di
6868
_prop, resolved_paths = traverse_path_for_sequence_members(document, path)
6969
except LookupError:
7070
# not found means nothing to delete
71-
LOG.info(LOOKUP_ERROR_MESSAGE_FORMAT, document, path)
71+
# LOG.info(LOOKUP_ERROR_MESSAGE_FORMAT, document, path)
72+
pass
7273
else:
7374
# paths with indices are gathered in increasing order, but we need to prune in reverse order
7475
resolved_paths = resolved_paths[::-1]
@@ -499,6 +500,8 @@ def compare_model(self, inputs, outputs, path=()):
499500
else:
500501
assert inputs == outputs, assertion_error_message
501502
except Exception as exception:
503+
assertion_error_message += ", inputs: " + json.dumps(inputs)
504+
assertion_error_message += ", outputs: " + json.dumps(outputs)
502505
raise AssertionError(assertion_error_message) from exception
503506

504507
def compare_collection(self, inputs, outputs, is_ordered, path):

0 commit comments

Comments
 (0)