Skip to content

Fix My Expenses GUI fixture normalization#8

Open
panDing19 wants to merge 1 commit into
LiberCoders:mainfrom
panDing19:fix/my-expenses-fixture-normalization
Open

Fix My Expenses GUI fixture normalization#8
panDing19 wants to merge 1 commit into
LiberCoders:mainfrom
panDing19:fix/my-expenses-fixture-normalization

Conversation

@panDing19

@panDing19 panDing19 commented Jun 25, 2026

Copy link
Copy Markdown

Problem

Several My Expenses GUI fixtures use shapes that the mobile initializer did not normalize correctly:

  • Hex CSS colors such as #1976D2 were later parsed as integers.
  • Label-based fixtures could still carry non-normalized account types/colors.
  • Multi-container fixtures could contain duplicate transaction ids, causing the wrong record to survive for TGUI51.

Affected tasks

  • TGUI30_gmail_scheduler_expense_budget_verify
  • TGUI33_sprint_expense_calendar_notes_myexpenses
  • TGUI51_incident_dinner_expense_calendar

Fix

  • Normalize account type and color consistently before import.
  • Merge list-wrapped and multi-container My Expenses fixtures.
  • Dedupe accounts/categories/payees and prefer the latest duplicate transaction record.
  • Preserve transaction_id through normalization so downstream checks can identify the intended record.

Tests

  • uv run pytest tests/test_mobile_gui_init.py -q

@panDing19 panDing19 marked this pull request as ready for review June 25, 2026 17:43
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.

1 participant