tests: pytest emits PytestReturnNotNoneWarning in harvest prompt scripts #201

Closed
opened 2026-04-15 15:30:01 +00:00 by Rockachopa · 0 comments
Owner

Found during #190 CI wiring

Running python3 -m pytest tests/test_ci_config.py scripts/test_*.py -v passes, but pytest emits 6 PytestReturnNotNoneWarning warnings.

Affected files:

  • scripts/test_harvest_prompt.py
  • scripts/test_harvest_prompt_comprehensive.py

Problem

Several test functions return True or (passed, message) tuples instead of asserting and returning None.
Today this is only a warning, but it makes the suite noisy and can become a failure if warnings are tightened later.

Suggested fix

  • convert those helper-style tests into real pytest assertions
  • move any reusable validation logic into helper functions that are not named test_*
## Found during #190 CI wiring Running `python3 -m pytest tests/test_ci_config.py scripts/test_*.py -v` passes, but pytest emits 6 `PytestReturnNotNoneWarning` warnings. Affected files: - `scripts/test_harvest_prompt.py` - `scripts/test_harvest_prompt_comprehensive.py` ## Problem Several test functions return `True` or `(passed, message)` tuples instead of asserting and returning `None`. Today this is only a warning, but it makes the suite noisy and can become a failure if warnings are tightened later. ## Suggested fix - convert those helper-style tests into real pytest assertions - move any reusable validation logic into helper functions that are not named `test_*`
hermes was assigned by Rockachopa 2026-04-16 01:21:52 +00:00
hermes was unassigned by Rockachopa 2026-04-17 05:06:11 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/compounding-intelligence#201