chore(legacy): Remove gui_legacy.py and refactor all tests to use gui_2.py

This commit is contained in:
2026-03-03 01:09:24 -05:00
parent dbd955a45b
commit 4d171ff24a
16 changed files with 183 additions and 2816 deletions

View File

@@ -43,16 +43,16 @@
- [ ] WHAT: Implement tests verifying the `usage_metadata` extraction and `list_models` output count.
- [ ] HOW: Check for 6 models (including `gemini-2.0-flash`) in `list_models` test.
- [ ] SAFETY: Isolate mocks.
- [ ] Task: Resolve Simulation Entry Count Regressions
- [x] Task: Resolve Simulation Entry Count Regressions [dbd955a]
- [ ] WHERE: `tests/test_extended_sims.py:20`.
- [ ] WHAT: Fix `AssertionError: Expected at least 2 entries, found 0`.
- [ ] HOW: Update simulation flow to properly wait for the `User` and `AI` entries to populate the GUI history before asserting.
- [ ] SAFETY: Use dynamic wait (`ApiHookClient.wait_for_event`) instead of static sleeps.
- [ ] Task: Remove Legacy `gui_legacy` Test Imports & File
- [ ] WHERE: `tests/test_gui_events.py`, `tests/test_gui_updates.py`, `tests/test_gui_diagnostics.py`, and project root.
- [ ] WHAT: Change `from gui_legacy import App` to `from gui_2 import App`. Fix any breaking UI locators. Then delete `gui_legacy.py`.
- [ ] HOW: String replacement and standard `os.remove`.
- [ ] SAFETY: Verify no remaining imports exist across the suite using `grep_search`.
- [~] Task: Remove Legacy `gui_legacy` Test Imports & File
- [~] WHERE: `tests/test_gui_events.py`, `tests/test_gui_updates.py`, `tests/test_gui_diagnostics.py`, and project root.
- [~] WHAT: Change `from gui_legacy import App` to `from gui_2 import App`. Fix any breaking UI locators. Then delete `gui_legacy.py`.
- [~] HOW: String replacement and standard `os.remove`.
- [~] SAFETY: Verify no remaining imports exist across the suite using `grep_search`.
- [ ] Task: Conductor - User Manual Verification 'Phase 3: Assertions & Legacy Cleanup' (Protocol in workflow.md)
## Phase 4: Documentation & Final Verification