Tests for new features#13
Merged
Merged
Conversation
Add three unittest modules covering features introduced in the dev PR (3D view, background image, recent files). Following the existing tests/test_views.py convention, the pure logic of the wx-bound GUI methods is mirrored in module-level helpers so the tests run headless (no wxPython, as in CI). - test_recent_files.py: newest-first ordering, de-duplication, 30-cap, absolute-path normalisation and view/bg/data label routing. - test_background.py: paste pixel normalisation, state reset and the screen-lock / full-extent coordinate transforms (incl. a Fixed<->Moving round-trip invariant). - test_3dview.py: camera plane presets, ortho/persp axis visibility, curve-type clamping, plot3D_type normalisation, 3D capture-key JSON round-trip and the log-z colour-range edge cases. https://claude.ai/code/session_012vjzwftooPzhsyzFcffjYz
Remove dead reassignment in test_clear_returns_to_default and assert the populated state actually differs from the default before checking the reset. https://claude.ai/code/session_012vjzwftooPzhsyzFcffjYz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.