Skip to content

refactor: simplify parser.py elite validation + extract shared test fixture - #77

Merged
Roddygithub merged 3 commits into
mainfrom
fix/parser-simplify-and-fixtures
Jul 25, 2026
Merged

Roddygithub merged 3 commits into
mainfrom
fix/parser-simplify-and-fixtures

Conversation

@Roddygithub

Copy link
Copy Markdown
Owner

Changements\n\n### parser.py\n- Suppression du dictionnaire vide _LEGACY_ELITE_OVERRIDE = {}\n- Simplification de la validation élite dans _decode_agent : les deux branches\n produisaient le même résultat puisque le dictionnaire était toujours identité\n\n### Fixture partagée\n- Création de web/tests/fixtures/playerReadoutRow.ts avec buildPlayerReadoutRow()\n- PlayerReadoutCells.test.tsx : importe depuis la fixture partagée (43 tests)\n- compare-readout-table.test.tsx : wrapper autour de la fixture partagée (15 tests)\n\n### Validation\n- TypeScript clean\n- 58 tests vitest passent\n- Tous les tests Python passent

roddy added 3 commits July 25, 2026 09:08
…ixture

- parser.py: removed empty _LEGACY_ELITE_OVERRIDE={} dict and collapsed two-branch
  elite validation in _decode_agent (both branches produced identical results
  since the override dict was always identity).

- Created web/tests/fixtures/playerReadoutRow.ts with buildPlayerReadoutRow()
  — shared PlayerReadoutOut test fixture (zero defaults).

- PlayerReadoutCells.test.tsx: replaced local makeRow() with import from shared fixture.

- compare-readout-table.test.tsx: replaced local buildRow() with wrapper
  around shared fixture that adds nonzero defaults.

Signed-off-by: RoddyGitHub <roddy@users.noreply.github.com>
Added missing blank line between docstring summary and first paragraph.

Signed-off-by: RoddyGitHub <roddy@users.noreply.github.com>
Signed-off-by: RoddyGitHub <roddy@users.noreply.github.com>
@Roddygithub
Roddygithub merged commit 5d4060b into main Jul 25, 2026
11 checks passed
@Roddygithub
Roddygithub deleted the fix/parser-simplify-and-fixtures branch July 25, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants