Skip to content

test: add fixture unit tests + cleanup redundant int() calls in parser.py - #79

Merged
Roddygithub merged 1 commit into
mainfrom
test/fixture-and-int-cleanup
Jul 25, 2026
Merged

Roddygithub merged 1 commit into
mainfrom
test/fixture-and-int-cleanup

Conversation

@Roddygithub

Copy link
Copy Markdown
Owner

Changements\n\n### Nouveau test\n- web/tests/fixtures/playerReadoutRow.test.ts : 8 tests pour buildPlayerReadoutRow\n (valeurs par défaut, overrides top-level, overrides nested via spread pattern)\n\n### Nettoyage parser.py\n- Suppression des appels redondants dans les deux appels à\n (lignes 1632 et 1701). et\n sont déjà des Python issus du struct.unpack.\n\n### Validation\n- TypeScript clean\n- 8/8 tests fixture passent\n- ruff lint + format OK\n- Tests Python OK

- web/tests/fixtures/playerReadoutRow.test.ts: 8 tests for buildPlayerReadoutRow

  (defaults, top-level overrides, nested overrides via spread pattern)

- parser.py: removed redundant int() calls in _validate_elite_for_profession

  (prof_raw and elite_raw are already Python ints from struct unpack)

  Both _decode_agent_2025 and _decode_agent paths updated.

Signed-off-by: RoddyGitHub <roddy@users.noreply.github.com>
@Roddygithub
Roddygithub merged commit 8290727 into main Jul 25, 2026
11 checks passed
@Roddygithub
Roddygithub deleted the test/fixture-and-int-cleanup branch July 25, 2026 07:49
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