Skip to content

Avoid hard-coding number of skeleton files - #217

Merged
namurphy merged 2 commits into
PlasmaPy:mainfrom
namurphy:test-skeletons-found
Dec 1, 2026
Merged

namurphy merged 2 commits into
PlasmaPy:mainfrom
namurphy:test-skeletons-found

Conversation

@namurphy

@namurphy namurphy commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Description

This PR replaces test_skeletons_found, which checked the number of skeleton CDF files, with a test that each skeleton that the code uses exists. It also removes the task from TODO.md.

Motivation

The number had to be updated whenever a skeleton file was added or removed (#157).

Details

  • The names of the skeletons come from the code, so there is no list to maintain.
  • Skeletons that are not in that list (psp_l2_spcephem_v00, psp_l2_spcmago_v00, and the L2 skeletons for APIDs 254, 256, and 257) are not required to exist.
  • An empty set of skeletons already fails because of empty_parameter_set_mark = "fail_at_collect" in pyproject.toml.
  • The first commit passed nox -s tests-3.13 tests-3.14 and linting. Only linting was run for the second commit, which adds test_required_skeleton_exists.

🤖 Generated with Claude Code

namurphy and others added 2 commits December 1, 2026 12:43
The number had to be changed whenever a skeleton was added or removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Checking that any skeletons are found is redundant with the
fail_at_collect setting of pytest, and would miss the removal of a
skeleton that the code uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.81%. Comparing base (7c95c9d) to head (0403b27).
⚠️ Report is 12 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #217   +/-   ##
=======================================
  Coverage   90.81%   90.81%           
=======================================
  Files          57       57           
  Lines        4344     4346    +2     
  Branches      432      432           
=======================================
+ Hits         3945     3947    +2     
  Misses        329      329           
  Partials       70       70           

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@namurphy
namurphy merged commit c4a887b into PlasmaPy:main Dec 1, 2026
15 checks passed
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.

1 participant