Skip to content

test: make runtime-honesty docstring count-free (re-audit residual)#58

Merged
MarwaBS merged 1 commit into
mainfrom
fix/stale-test-count-docstring
Jul 6, 2026
Merged

test: make runtime-honesty docstring count-free (re-audit residual)#58
MarwaBS merged 1 commit into
mainfrom
fix/stale-test-count-docstring

Conversation

@MarwaBS

@MarwaBS MarwaBS commented Jul 6, 2026

Copy link
Copy Markdown
Owner

The re-audit flagged that TestClaimHonesty.test_suite_runtime_claim_is_honest hardcoded (334 tests) in its docstring — a count that is irrelevant to what the test asserts (the README's ~5-10 s runtime claim) and had already rotted.

Change: docstring-only. Removes the count and states why it's deliberately count-free so it can't drift again. No behavioral change.

Verification (local, tooling matches CI):

  • ruff format --check . → 42 files already formatted (exit 0)
  • ruff check . → All checks passed
  • pytest tests/test_app_smoke.py::TestClaimHonesty → 5 passed

Authored by MarwaBS.

TestClaimHonesty.test_suite_runtime_claim_is_honest carried a hardcoded
'(334 tests)' in its docstring. The test asserts the README's ~5-10s
runtime claim; the exact test count is irrelevant to what it checks and
rots the moment the suite grows (it already had). Drop the number and say
why, so the docstring can't drift out of date again. Docstring-only: no
behavioral change; the 5 TestClaimHonesty assertions still pass, ruff
check / ruff format --check clean.
@MarwaBS MarwaBS merged commit b9a7b12 into main Jul 6, 2026
7 checks passed
@MarwaBS MarwaBS deleted the fix/stale-test-count-docstring branch July 6, 2026 03:14
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.

1 participant