Skip to content

Tests for new features#13

Merged
SimonHH merged 2 commits into
devfrom
claude/tests-3d-view-recent-files-t9iJB
Jun 3, 2026
Merged

Tests for new features#13
SimonHH merged 2 commits into
devfrom
claude/tests-3d-view-recent-files-t9iJB

Conversation

@SimonHH

@SimonHH SimonHH commented Jun 3, 2026

Copy link
Copy Markdown
Owner

No description provided.

claude added 2 commits June 2, 2026 18:10
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
@SimonHH SimonHH merged commit 402af2a into dev Jun 3, 2026
8 checks passed
@SimonHH SimonHH deleted the claude/tests-3d-view-recent-files-t9iJB branch June 3, 2026 04:17
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