Summary
tests/integration/test_modal_terminal.py defines pytest-style test_* functions, but each test returns True/False instead of asserting.
Pytest treats non-None returns as warnings (PytestReturnNotNoneWarning), not failures, so logically failing checks can still show up as passing tests.
Affected file
tests/integration/test_modal_terminal.py:58-237
Why this is a bug
This hides Modal/backend regressions while giving a false green signal in CI/manual pytest runs.
Reproduction
cd /Users/genie/.hermes/hermes-agent
source venv/bin/activate
TERMINAL_ENV=local pytest -q -m integration -o addopts='' tests/integration/test_modal_terminal.py -k test_modal_requirements
Observed output:
. [100%]
PytestReturnNotNoneWarning: Test functions should return None, but ... returned <class 'bool'>
1 passed, 5 deselected, 1 warning
Inside the test, the current environment clearly does not satisfy the requirement:
tests/integration/test_modal_terminal.py:76-79 prints a warning and return False
Expected behavior
A failed requirement check should fail the pytest test.
Actual behavior
The test returns False, pytest emits a warning, and the test still passes.
Suggested investigation direction
Convert these functions to normal pytest assertions (or rename them away from test_* and keep them as manual scripts if that was the intent).
Summary
tests/integration/test_modal_terminal.pydefines pytest-styletest_*functions, but each test returnsTrue/Falseinstead of asserting.Pytest treats non-
Nonereturns as warnings (PytestReturnNotNoneWarning), not failures, so logically failing checks can still show up as passing tests.Affected file
tests/integration/test_modal_terminal.py:58-237Why this is a bug
This hides Modal/backend regressions while giving a false green signal in CI/manual pytest runs.
Reproduction
Observed output:
Inside the test, the current environment clearly does not satisfy the requirement:
tests/integration/test_modal_terminal.py:76-79prints a warning andreturn FalseExpected behavior
A failed requirement check should fail the pytest test.
Actual behavior
The test returns
False, pytest emits a warning, and the test still passes.Suggested investigation direction
Convert these functions to normal pytest assertions (or rename them away from
test_*and keep them as manual scripts if that was the intent).