fix(tests): CI tkinter-tier failures (descriptive filenames, stale notice premise, matplotlib contains) #35
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ykp/gensig!35
Loading…
Reference in a new issue
No description provided.
Delete branch "ci-ui-test-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes the 7 CI failures reported after PR #34 merged. All are in the widget tier (tkinter), which is skipped on headless dev machines — none were introduced by #34; they stem from PR #33's output-naming change, ticket 36's notice premise and a matplotlib API drift in the CI image.
Failures → fixes
test_ui_window.py— 4 generate tests (AGWN / Comb / Comb-IQ / Chirp):out.exists()False{prefix}.sigoutput name; the chain (PR #33) now writes the descriptivemodel.default_signal_filename()name.tmp_path / f"{window.project.default_signal_filename()}.sig"beforeon_generate(the_finish_generationduration feedback rewrites the duration term of the name afterwards). Title assertionGenSig — {out}now matches the real written path.never.sig/badrate.sig/missing.sig) to assert the real descriptive path instead of passing trivially.test_generate_shows_notice_and_writes_no_file:shown == []on_generateran the real chain and spawned an uncaptured worker thread; that stray thread also produced theRuntimeError: main thread is not in main loopwarning CI attributed to the following test.test_ui_preview_window.py— 2 hover-marker tests:TypeError: TransformedBbox.contains() missing 1 required positional argument: 'y'_mpl_mousefallback hit-test calledbbox.contains((px, py)); matplotlib'sBbox.containstakes(x, y)as separate arguments (the CI matplotlib version enforces it).bbox.contains(px, py).Gate
pytest1173 passed / 63 skipped (headless tier), coverage 95.24 % ≥ 85 %ruff check gensig testsclean;mypy gensig testsclean