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

Closed
opened 2026-11-26 20:19:36 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/912
Author: @TuroYT
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @Andretuta

Base: main ← Head: docs/first-light-48-cases


📝 Commits (1)

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

📊 Changes

1 file changed (+3 additions, -5 deletions)

View changed files

📝 docs/first_light.md (+3 -5)

📄 Description

Claimed in the coordination issue as: DOC-FIRST-LIGHT-TEST-COUNT (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135533644)

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).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/912 **Author:** [@TuroYT](https://github.com/TuroYT) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@Andretuta](https://github.com/Andretuta) **Base:** `main` ← **Head:** `docs/first-light-48-cases` --- ### 📝 Commits (1) - [`fc2d07a`](https://github.com/ubiquitarianism/leonida/commit/fc2d07a1a4b71c05c068603fff6a6e0366cbaa81) docs/first_light: the test has 48 cases, not twenty-five (DOC-FIRST-LIGHT-TEST-COUNT) ### 📊 Changes **1 file changed** (+3 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `docs/first_light.md` (+3 -5) </details> ### 📄 Description Claimed in the coordination issue as: DOC-FIRST-LIGHT-TEST-COUNT (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135533644) ## 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:36 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#952
No description provided.