Skip to content

Fix: update test assertions for statistical success rate and adjust s…#58

Merged
kseebaldt merged 3 commits intothisisartium:mainfrom
dipolesource:main
Mar 21, 2025
Merged

Fix: update test assertions for statistical success rate and adjust s…#58
kseebaldt merged 3 commits intothisisartium:mainfrom
dipolesource:main

Conversation

@dipolesource
Copy link
Contributor

…ample size

@dipolesource dipolesource requested a review from paulz March 19, 2025 22:10
@tkersey tkersey requested a review from Copilot March 19, 2025 23:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates test assertions for statistical success rate evaluation and adjusts test sample sizes.

  • The expected success count is now cast to an integer.
  • Type hints have been added to the utility function is_within_a_range.
  • Test cases in both helper and loop tests have been updated to reflect new sample sizes and statistical expectations.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
examples/team_recommender/tests/helpers.py Casting expected success count to int and updating test cases.
examples/team_recommender/tests/example_3_loop/test_allocations_loop.py Updated assertion to check existence of at least one success.
.github/workflows/python-tests.yml Minor whitespace changes in the test workflow.

Copy link
Contributor

@paulz paulz left a comment

Choose a reason for hiding this comment

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

added minor readability changes here: dipolesource#1

should be even more precise, but it's an improvement made by AI without giving human a chance to edit

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@kseebaldt kseebaldt merged commit 42de8c8 into thisisartium:main Mar 21, 2025
1 check passed
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.

4 participants