This change adds a fuzzed input test to the test suit to test the total_amount_passed function. This test makes sure that the function can run without errors, the percentage calculated is within 0-100%, and the total amount of checks passed is less than the total amount of checks. This allows for test coverage to be maintained from the previously added code segment.
to make this test work I also had to create constants for the percentage to be able to remove instances of magic numbers as given by the ruff linting check.
This change also refactors some code segments so that the function total_amount_passed does not have to recreate variables that already counted the total amount of checks and passed checks.
Finally, this pr changes the hypothesis strategies import to be aliased as st to maintain consistency with past test cases.
total_amount_passed
function. This test makes sure that the function can run without errors, the percentage calculated is within 0-100%, and the total amount of checks passed is less than the total amount of checks. This allows for test coverage to be maintained from the previously added code segment.magic numbers
as given by theruff
linting check.total_amount_passed
does not have to recreate variables that already counted the total amount of checks and passed checks.strategies
import to be aliased asst
to maintain consistency with past test cases.