Skip to content

Don't display result in report table if INIT_STATE_TEST #25

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

Merged
merged 2 commits into from
Feb 25, 2025

Conversation

davidgirdwood1
Copy link
Contributor

No description provided.

Comment on lines 22 to 29
def to_json(self) -> dict[str, Union[dict[str, dict[str, int]], int, str]]:

report_table = {
test_type.to_name(): result
for test_type, result in self.winning_behavioral_test_results.get_test_pass_fail_report_by_type().items()
if test_type.should_display_result()
}

Copy link
Contributor

Choose a reason for hiding this comment

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

we don't need the extra method here, we can just inline it in the comprehension directly. i.e

        report_table = {
            test_type.to_name(): result
            for test_type, result in self.winning_behavioral_test_results.get_test_pass_fail_report_by_type().items()
            if test_type.to_name()
        }
        

Copy link
Contributor

@KRRT7 KRRT7 left a comment

Choose a reason for hiding this comment

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

LGTM!

@davidgirdwood1 davidgirdwood1 merged commit a304b25 into main Feb 25, 2025
15 checks passed
@KRRT7 KRRT7 deleted the dg_report_table branch February 25, 2025 22:20
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