-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Resolves #570] Improve Stack.__repr__()
Previously, dict and list types were contained within strings in sceptre.stack.Stack.__repr__(). This commit removes the strings so that a stack.__repr__() can be used to create a stack using eval(). In order to properly compare stacks a custom `__eq__` and therefore `__hash__` implementations were added to Stack. Adding a correct `__eq__` method to Stack allowed testing of Stack objects that were created from `eval()` of the stack `__repr__`.
- Loading branch information
Showing
2 changed files
with
84 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters