Skip to content

Commit

Permalink
Add model_dump test
Browse files Browse the repository at this point in the history
  • Loading branch information
JimMadge committed Apr 18, 2024
1 parent 9523e9c commit 2688987
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/config/test_pulumi.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ class TestPulumiStack:
def test_pulumi_stack(self, pulumi_stack):
assert pulumi_stack.name == "my_stack"
assert "encryptedkey: zjhejU2XsOKLo95w9CLD" in pulumi_stack.config

def test_dump(self, pulumi_stack, stack_config_encoded):
d = pulumi_stack.model_dump()
assert d.get("name") == "my_stack"
assert d.get("config") == stack_config_encoded

0 comments on commit 2688987

Please sign in to comment.