[PR #1791] [MERGED] tests: reject identical fenced blocks that are back to back in docs/ (OLD-9862) #1804

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1791
Author: @Ch1mpleo
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142

Base: main ← Head: carry/old-9862


📝 Commits (2)

  • 93d540e docs: drop the repeated manifest block in character_models, and test for it
  • 34739cf tests: compare the fence's info string too, so two languages are not one duplicate

📊 Changes

1 file changed (+138 additions, -0 deletions)

View changed files

➕ tests/test_docs_adjacent_fenced_blocks.py (+138 -0)

📄 Description

Claimed in the coordination issue as: OLD-9862 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162072809)

What and why

Carries forward old-pr/9862 (draft #130, preserving the original commits by zwork and Salim Hammami) rebased onto current main. Adds ests/test_docs_adjacent_fenced_blocks.py to reject identical back-to-back fenced code blocks with the same info string in docs/.

Tested

  • python -I tests/test_docs_adjacent_fenced_blocks.py — 3 tests, OK (Windows 11 x64, Python 3.14.7).
  • python -m compileall -q tests/test_docs_adjacent_fenced_blocks.py — exit 0.
  • python -I scripts/check_no_game_data.py tests/test_docs_adjacent_fenced_blocks.py — exit 0.

GPUs tested: n/a (CPU-only standard-library unit test)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled
    eeds rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — unit test only)

🔄 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/1791 **Author:** [@Ch1mpleo](https://github.com/Ch1mpleo) **Created:** 11/25/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `carry/old-9862` --- ### 📝 Commits (2) - [`93d540e`](https://github.com/ubiquitarianism/leonida/commit/93d540e3be55b78041a55926447d31048762937e) docs: drop the repeated manifest block in character_models, and test for it - [`34739cf`](https://github.com/ubiquitarianism/leonida/commit/34739cff3e818eecf49fdd5b7d07a80903529b29) tests: compare the fence's info string too, so two languages are not one duplicate ### 📊 Changes **1 file changed** (+138 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `tests/test_docs_adjacent_fenced_blocks.py` (+138 -0) </details> ### 📄 Description Claimed in the coordination issue as: OLD-9862 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162072809) ### What and why Carries forward old-pr/9862 (draft #130, preserving the original commits by zwork and Salim Hammami) rebased onto current main. Adds ests/test_docs_adjacent_fenced_blocks.py to reject identical back-to-back fenced code blocks with the same info string in docs/. ### Tested - python -I tests/test_docs_adjacent_fenced_blocks.py — 3 tests, OK (Windows 11 x64, Python 3.14.7). - python -m compileall -q tests/test_docs_adjacent_fenced_blocks.py — exit 0. - python -I scripts/check_no_game_data.py tests/test_docs_adjacent_fenced_blocks.py — exit 0. GPUs tested: n/a (CPU-only standard-library unit test) AI-assisted: yes ### Checklist - [x] Based on current main and merges cleanly (a conflicting pull request is labeled eeds rebase). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — unit test only) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 21:19:00 +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#1804
No description provided.