[PR #1030] OLD-10030: test(hw_oracle): unit tests for tools/hw_oracle/tsharp.py #1067

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

📋 Pull Request Information

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

Base: main ← Head: carry/old-10030-hw-oracle-tsharp-tests


📝 Commits (1)

  • ce3ef9f test(hw_oracle): unit tests for tools/hw_oracle/tsharp.py

📊 Changes

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

View changed files

➕ tests/test_hw_oracle_tsharp.py (+233 -0)

📄 Description

Claimed in the coordination issue as: OLD-10030

What and why

Carries forward old-pr/10030 (draft #298) rebased onto current main:

  • Adds unit tests in tests/test_hw_oracle_tsharp.py for tools/hw_oracle/tsharp.py covering T-sharp resource descriptor decoding, buffer/image format extraction, stride calculation, and field parsing.

Original commit preserved: Ritolino <[email protected]>.

Tested

  • python -I tests/test_hw_oracle_tsharp.py: 13/13 passed
  • python -I scripts/check_no_game_data.py tests/test_hw_oracle_tsharp.py: passed (no game data)
  • python -I tests/test_text_write_line_endings.py: passed
  • python -m compileall -q make_game.py tools tests: clean

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs 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 (no translator rule).

🔄 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/1030 **Author:** [@klikso](https://github.com/klikso) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `carry/old-10030-hw-oracle-tsharp-tests` --- ### 📝 Commits (1) - [`ce3ef9f`](https://github.com/ubiquitarianism/leonida/commit/ce3ef9f10f46f74b07661fb7bc463da8e4831533) test(hw_oracle): unit tests for tools/hw_oracle/tsharp.py ### 📊 Changes **1 file changed** (+233 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `tests/test_hw_oracle_tsharp.py` (+233 -0) </details> ### 📄 Description Claimed in the coordination issue as: OLD-10030 ### What and why Carries forward `old-pr/10030` (draft #298) rebased onto current `main`: - Adds unit tests in `tests/test_hw_oracle_tsharp.py` for `tools/hw_oracle/tsharp.py` covering T-sharp resource descriptor decoding, buffer/image format extraction, stride calculation, and field parsing. Original commit preserved: `Ritolino <230431388+[email protected]>`. ### Tested - `python -I tests/test_hw_oracle_tsharp.py`: 13/13 passed - `python -I scripts/check_no_game_data.py tests/test_hw_oracle_tsharp.py`: passed (no game data) - `python -I tests/test_text_write_line_endings.py`: passed - `python -m compileall -q make_game.py tools tests`: clean GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs 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. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed: n/a (no translator rule). --- <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#1067
No description provided.