Skip to content

Initial unit test suite for peaks core#10

Merged
phrgab merged 13 commits into
devfrom
initial-unit-tests
Mar 24, 2026
Merged

Initial unit test suite for peaks core#10
phrgab merged 13 commits into
devfrom
initial-unit-tests

Conversation

@shum23
Copy link
Copy Markdown
Collaborator

@shum23 shum23 commented Mar 24, 2026

Adding pytest tests covering core data processing pipeline. 3 bug fixes are included (see changelog): unit preservation in smooth and curvature, and non-deterministic azimuthal origin in radial_cuts.

Some testing conventions:

  • test files mirror the package structure: peaks/core/process/tools.py -> tests/core/process/test_tools.py
  • for now tests use real data via ExampleData or ZenodoDownloader and synthetic data via a _simulate_fake_scan helper. This can be replaced with proper simulated data when the relevant module is available
  • most tests are grouped by function within each file.

@shum23 shum23 requested a review from phrgab March 24, 2026 13:22
Copy link
Copy Markdown
Owner

@phrgab phrgab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks for this @shum23. Great to have some first proper unit tests!

@phrgab phrgab merged commit 1496a05 into dev Mar 24, 2026
4 checks passed
@shum23 shum23 deleted the initial-unit-tests branch March 24, 2026 13:35
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