-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add test for changing dicts and lists #2724
Conversation
@@ -39,7 +39,7 @@ def test_check_immutable_fields_no_changes(mock_get_state, terraform_state_stage | |||
def test_check_immutable_fields_mutable_change( | |||
mock_get_state, terraform_state_stage, mock_config | |||
): | |||
old_config = mock_config.model_copy() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flyby: test wasn't failing, but wanted to ensure we were deep copying to prevent unintended errors from a shallow copy
@@ -52,7 +52,7 @@ def test_check_immutable_fields_mutable_change( | |||
def test_check_immutable_fields_immutable_change( | |||
mock_model_fields, mock_get_state, terraform_state_stage, mock_config | |||
): | |||
old_config = mock_config.model_copy() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @Adam-D-Lewis
tests are failing due to paramiko, unrelated to your changes |
Reference Issues or PRs
Fixes #2719
What does this implement/fix?
Put a
x
in the boxes that applyTesting
How to test this PR?
Any other comments?