-
Notifications
You must be signed in to change notification settings - Fork 92
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
[429] Fix default templates non-subscriptable problem #451
base: master
Are you sure you want to change the base?
[429] Fix default templates non-subscriptable problem #451
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #451 +/- ##
=======================================
Coverage 79.51% 79.51%
=======================================
Files 76 76
Lines 3237 3237
Branches 537 537
=======================================
Hits 2574 2574
Misses 593 593
Partials 70 70 ☔ View full report in Codecov by Sentry. |
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.
Changes look good to me!
@@ -44,7 +44,7 @@ def test_add_job_tags(test_settings): | |||
add_job_tags.data = MagicMock() | |||
add_job_tags.data.job.metadata = SettableDict({"tags": []}) | |||
add_job_tags.run_action() | |||
assert add_job_tags.data.job.metadata["tags"] == ["add_foo", "add_bar"] | |||
assert add_job_tags.data.job.metadata.get("tags") == ["add_foo", "add_bar"] |
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.
praise: Thank you for updating the tests as well!
Replaces all instances of
data.job.metadata[x]
in the templates withdata.job.metadata.get(x)
.