[PR #835] tests: cover partial Windows known-folder results (TEST-WINDOWS-KNOWN-FOLDERS) #873

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/835
Author: @TheGeogeo
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: test/windows-known-folders-partial


📝 Commits (1)

  • 56d42da Test partial Windows known-folder results

📊 Changes

1 file changed (+23 additions, -1 deletions)

View changed files

📝 tests/test_make_game_preflight.py (+23 -1)

📄 Description

Claimed in the coordination issue as: TEST-WINDOWS-KNOWN-FOLDERS

What and why

known_folders() can return partial results. The live test expected all three paths and failed when the restricted Windows shell returned two. Allow the documented result count, retain the live absolute-path and repeat-call checks, and add a mock shell test that verifies partial results and buffer cleanup.

This test-only change carries forward my earlier ProjectLeonida/Leonida PR #10060, rechecked against this repository's main.

Tested

After a rebase on main 56bdd7e8 (56d42dab, same patch as 528dc900), on Windows 11, Python 3.12.4: tests/test_make_game_preflight.py 110 run, OK (1 skipped), also from a venv whose path has a space; tests/test_make_game_pipeline_preflight.py 23 run, OK (1 skipped); test_tool_stdout_encoding.py, test_docs_cli_flags.py, test_text_write_line_endings.py, test_ctest_registration.py and test_ci_registration.py OK; git diff --check and the no-game-data check clean.

  • Windows, Python 3.12.4. The focused GameDiscoveryTest.test_known_folders_from_the_shell failed on main at d0da7dad with 2 != 3 in the restricted session.
  • python -I -B tests/test_make_game_preflight.py on this branch: 98 passed and 1 skipped in both the restricted and normal Windows sessions. The skipped test requires a case-sensitive filesystem.
  • python -I -B tests/test_make_game_pipeline_preflight.py: 19 passed and 1 skipped. The skipped test requires POSIX execute permissions.
  • git diff --check and python -I -B scripts/check_no_game_data.py tests/test_make_game_preflight.py: passed.

GPUs tested: n/a. CPU-only tests.

AI-assisted: Yes, Codex.

Checklist

  • Based on current main.
  • One topic.
  • No game data, keys, or decryption.
  • Translator contract entry: not applicable.

🔄 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/835 **Author:** [@TheGeogeo](https://github.com/TheGeogeo) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `test/windows-known-folders-partial` --- ### 📝 Commits (1) - [`56d42da`](https://github.com/ubiquitarianism/leonida/commit/56d42dabe83ad9829ebbce3b49494985251ce199) Test partial Windows known-folder results ### 📊 Changes **1 file changed** (+23 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_make_game_preflight.py` (+23 -1) </details> ### 📄 Description Claimed in the coordination issue as: [TEST-WINDOWS-KNOWN-FOLDERS](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7134202075) ### What and why `known_folders()` can return partial results. The live test expected all three paths and failed when the restricted Windows shell returned two. Allow the documented result count, retain the live absolute-path and repeat-call checks, and add a mock shell test that verifies partial results and buffer cleanup. This test-only change carries forward my earlier `ProjectLeonida/Leonida` PR #10060, rechecked against this repository's `main`. ### Tested After a rebase on `main` `56bdd7e8` (`56d42dab`, same patch as `528dc900`), on Windows 11, Python 3.12.4: `tests/test_make_game_preflight.py` 110 run, OK (1 skipped), also from a venv whose path has a space; `tests/test_make_game_pipeline_preflight.py` 23 run, OK (1 skipped); `test_tool_stdout_encoding.py`, `test_docs_cli_flags.py`, `test_text_write_line_endings.py`, `test_ctest_registration.py` and `test_ci_registration.py` OK; `git diff --check` and the no-game-data check clean. - Windows, Python 3.12.4. The focused `GameDiscoveryTest.test_known_folders_from_the_shell` failed on `main` at `d0da7dad` with `2 != 3` in the restricted session. - `python -I -B tests/test_make_game_preflight.py` on this branch: 98 passed and 1 skipped in both the restricted and normal Windows sessions. The skipped test requires a case-sensitive filesystem. - `python -I -B tests/test_make_game_pipeline_preflight.py`: 19 passed and 1 skipped. The skipped test requires POSIX execute permissions. - `git diff --check` and `python -I -B scripts/check_no_game_data.py tests/test_make_game_preflight.py`: passed. GPUs tested: n/a. CPU-only tests. AI-assisted: Yes, Codex. ### Checklist - [x] Based on current `main`. - [x] One topic. - [x] No game data, keys, or decryption. - Translator contract entry: not applicable. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#873
No description provided.