3dc3f4c47b
This PS simplifies the DocumentWrapper class by changing the way it is designed. The purpose of the class was to make it easier to retrieve nested dictionary attributes from a document. The class previously inherited from `object` meaning that the object could not directly be treated as a dictionary, complicating usage of the class. With this change, the class now inherits from a `dict` meaning that it can be manipulated the same way a dictionary can, while still able to return nested dictionary attributes without having to worry about exceptions getting thrown. Each property implemented by `DocumentWrapper` uses jsonpath_parse implements in `deckhand.utils` to retrieve nested attributes or else self.get() to retrieve first-level dictionary attributes. Change-Id: I1d73a79aa4c3117be31aab978c20258c1052ad6d |
||
---|---|---|
.. | ||
__init__.py | ||
base.py | ||
test_document_layering_and_substitution.py | ||
test_document_layering_negative.py | ||
test_document_layering.py | ||
test_document_validation_negative.py | ||
test_document_validation.py | ||
test_secrets_manager.py |