Skip to content
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

Fix notifier counts for single checks #152

Merged
merged 1 commit into from
Feb 14, 2023
Merged

Conversation

cletomartin
Copy link
Collaborator

@cletomartin cletomartin commented Feb 13, 2023

What

For those checks that only have one check_ method, the current code didn't show up correctly the number of errors/warnings correctly.

Why

It wasn't working as expected.

How

Do not make a special case when calculating the message structure.

Test

Passing unit tests and update demo to ensure that this also happens.

@cletomartin cletomartin marked this pull request as ready for review February 13, 2023 14:34
@@ -66,12 +66,10 @@ def messages(self):
test_obj = test_desc["test"].test
method_name = parse_test_id(test_id)["method"]

msg_method = "get_notification_message"
if len(test_obj.tests) > 1:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be applied as well to those tests with just one test_ method.

For those checks that only have one check_ method, the current code didn't show up correctly the number of errors/warnings correctly.
@cletomartin cletomartin merged commit 830597d into main Feb 14, 2023
@cletomartin cletomartin deleted the fix-notifiers-counts branch February 14, 2023 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants