docs/first_light: the test has 48 cases, not twenty-five (DOC-FIRST-LIGHT-TEST-COUNT) #912

Manually merged
github merged 1 commit from gh-pr/912/head into gh-pr/912/base 2026-11-26 09:27:48 +00:00
Owner

@⁠TuroYT on GitHub · 2026-11-24 15:09 UTC · original
TuroYT:docs/first-light-48-cases → main · +3 −5 · 1 files · 1 commits · merged 2026-11-25 21:26 UTC

Claimed in the coordination issue as: DOC-FIRST-LIGHT-TEST-COUNT (#14)

What was wrong

  • docs/first_light.md:73 says "The test has twenty-five cases" and then lists groups that do not match the file.
  • docs/first_light.md:141 says the default run "runs 46 tests: 42 passed, 4 skipped". A real run gives 48 tests, 44 passed, 4 skipped.

Reproduction on origin/main (a28927849):

  • grep -n "twenty-five" docs/first_light.md prints line 73.
  • grep -c 'def test_' tests/test_first_light.py prints 48.
  • The unittest loader count prints 48 (it loads the module and does not run it).
  • python3 -I tests/test_first_light.py prints Ran 48 tests and OK (skipped=4).

What changed

  • Line 73 now says the test has 48 cases and points to python -I tests/test_first_light.py -v. The breakdown is removed. I could not tie every group to a class with certainty, so the sentence states only the total.
  • Line 141 and the last line of that paragraph now say 48 tests, 44 passed, 4 skipped, and none of the 48 is skipped when LEONIDA_FIRST_LIGHT_DIR is set. The line was changed because the run above proves it stale. No other number changed.

Overlap check: PRs #33, #35 and #801 change docs/first_light.md at line 203 (section 8). PR #100 changes it at line 26. None of them touch lines 73 or 141-147.

Tested

  • python3 -I -c "...loadTestsFromModule(m).countTestCases()" (loader): 48
  • python3 -I tests/test_first_light.py: Ran 48 tests in 0.070s, OK (skipped=4)
  • python3 -I tests/test_text_write_line_endings.py: OK
  • python3 -I scripts/check_no_game_data.py docs/first_light.md: exit 0
  • git diff --check: clean
  • git grep -l 'first_light.md' -- tests/ scripts/: no file reads the doc, so no other standalone test needs a run

Not tested

  • The package-gated cases (LEONIDA_FIRST_LIGHT_DIR set). They need game files, which this change does not use. The 4 skipped cases were not run.
  • The rendered Markdown page. Only the diff was checked.

AI-assisted (Claude Code).

**@⁠TuroYT** on GitHub · 2026-11-24 15:09 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/912) `TuroYT:docs/first-light-48-cases` → `main` · +3 −5 · 1 files · 1 commits · merged 2026-11-25 21:26 UTC Claimed in the coordination issue as: DOC-FIRST-LIGHT-TEST-COUNT (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ## What was wrong - `docs/first_light.md:73` says "The test has twenty-five cases" and then lists groups that do not match the file. - `docs/first_light.md:141` says the default run "runs 46 tests: 42 passed, 4 skipped". A real run gives 48 tests, 44 passed, 4 skipped. Reproduction on origin/main (a28927849): - `grep -n "twenty-five" docs/first_light.md` prints line 73. - `grep -c 'def test_' tests/test_first_light.py` prints 48. - The unittest loader count prints 48 (it loads the module and does not run it). - `python3 -I tests/test_first_light.py` prints `Ran 48 tests` and `OK (skipped=4)`. ## What changed - Line 73 now says the test has 48 cases and points to `python -I tests/test_first_light.py -v`. The breakdown is removed. I could not tie every group to a class with certainty, so the sentence states only the total. - Line 141 and the last line of that paragraph now say 48 tests, 44 passed, 4 skipped, and none of the 48 is skipped when `LEONIDA_FIRST_LIGHT_DIR` is set. The line was changed because the run above proves it stale. No other number changed. Overlap check: PRs #33, #35 and #801 change `docs/first_light.md` at line 203 (section 8). PR #100 changes it at line 26. None of them touch lines 73 or 141-147. ## Tested - `python3 -I -c "...loadTestsFromModule(m).countTestCases()"` (loader): 48 - `python3 -I tests/test_first_light.py`: `Ran 48 tests in 0.070s`, `OK (skipped=4)` - `python3 -I tests/test_text_write_line_endings.py`: OK - `python3 -I scripts/check_no_game_data.py docs/first_light.md`: exit 0 - `git diff --check`: clean - `git grep -l 'first_light.md' -- tests/ scripts/`: no file reads the doc, so no other standalone test needs a run ## Not tested - The package-gated cases (`LEONIDA_FIRST_LIGHT_DIR` set). They need game files, which this change does not use. The 4 skipped cases were not run. - The rendered Markdown page. Only the diff was checked. AI-assisted (Claude Code).
The unittest loader counts 48 cases in tests/test_first_light.py, and the
sentence on the old breakdown no longer matched. The breakdown is dropped.
The pass/skip line now matches a real run: 48 tests, 44 passed, 4 skipped.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:27:45 +00:00
github manually merged commit fc2d07a1a4 into gh-pr/912/base 2026-11-26 09:27:48 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 02:34 UTC · original

Reviewed fc2d07a1: docs-only change. docs/first_light.md now matches tests/test_first_light.py.

Checked on main 3ff2a2ad:

  • python3 -I tests/test_first_light.py in a sandbox with no LEONIDA_FIRST_LIGHT_DIR ran 48 tests: 44 passed, 4 skipped. That is exactly the new "48 tests: 44 passed, 4 skipped", and the file has 48 def test_ methods.
  • Main's "twenty-five cases" and "46 tests: 42 passed" are both stale.
  • Replacing the hand-written case list with "48 cases; -v prints each one" means the list can no longer fall out of date. Only the count still needs updating when tests are added.
  • The branch merges cleanly into current main.

AI-assisted review.

Recommendation: Merge

**@⁠PierreEbele** on GitHub · 2026-11-25 02:34 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/912#issuecomment-7150894381) Reviewed fc2d07a1: docs-only change. `docs/first_light.md` now matches `tests/test_first_light.py`. Checked on main 3ff2a2ad: - `python3 -I tests/test_first_light.py` in a sandbox with no `LEONIDA_FIRST_LIGHT_DIR` ran 48 tests: 44 passed, 4 skipped. That is exactly the new "48 tests: 44 passed, 4 skipped", and the file has 48 `def test_` methods. - Main's "twenty-five cases" and "46 tests: 42 passed" are both stale. - Replacing the hand-written case list with "48 cases; `-v` prints each one" means the list can no longer fall out of date. Only the count still needs updating when tests are added. - The branch merges cleanly into current main. AI-assisted review. **Recommendation:** Merge
This discussion has been locked. Commenting is limited to contributors.
No description provided.