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
[MAINTENANCE] Refactor EmailAction
for V1
#9725
Conversation
✅ Deploy Preview for niobium-lead-7998 canceled.
|
@@ -130,3 +130,26 @@ def test_EmailRenderer_get_report_element(): | |||
|
|||
# this should work | |||
assert email_renderer._get_report_element(docs_link="i_should_work") is not None | |||
|
|||
|
|||
@pytest.mark.unit |
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.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #9725 +/- ##
========================================
Coverage 82.63% 82.64%
========================================
Files 512 512
Lines 46594 46630 +36
========================================
+ Hits 38504 38537 +33
- Misses 8090 8093 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ 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.
LGTM
out = action.v1_run(checkpoint_result=checkpoint_result) | ||
|
||
mock_send_email.assert_called_once_with( | ||
title=mock.ANY, |
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.
I think ANY makes sense here, but I might add another assertion below to verify that the argument passed kind of looks like the right string. (e.g. suite_name in call_args.kwargs["title"]
(or whatever the syntax is for that))
…_expectations into m/v1-251/email_action
Update action and renderer to use checkpoint result
invoke lint
(usesruff format
+ruff check
)For more information about contributing, see Contribute.
After you submit your PR, keep the page open and monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up and reach out on Slack if you need help. Thanks for contributing!