fix(#201): Fix PytestReturnNotNoneWarning in harvest prompt tests #207
Reference in New Issue
Block a user
Delete Branch "fix/201-pytest-warnings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #201.
Problem
pytest scripts/test_*.pyemitted 6 PytestReturnNotNoneWarning warnings because helper functions were namedtest_*and returned(bool, str)tuples instead of using assertions.Fix
scripts/test_harvest_prompt_comprehensive.py (rewritten):
test_*helper functions tocheck_*(check_prompt_structure, check_confidence_scoring, check_example_quality, check_constraint_coverage, check_test_sessions)test_*functions that call the check helpers andassertthe results__main__blockscripts/test_harvest_prompt.py: No changes needed -- it has no
test_*functions that return values.Verification