Skip to content

test: remove dead fixture references from fdv.py (#655) - #759

Merged
jepegit merged 1 commit into
masterfrom
655-fdv-hygiene
Jul 28, 2026
Merged

test: remove dead fixture references from fdv.py (#655)#759
jepegit merged 1 commit into
masterfrom
655-fdv-hygiene

Conversation

@jepegit

@jepegit jepegit commented Jul 28, 2026

Copy link
Copy Markdown
Owner

What

First slice of the #655 (H2) fixture audit — fdv.py hygiene. Removes ~a dozen fdv.py entries that point at fixture files which were never committed and are referenced by no test.

Why

The audit found the "missing fixtures" in fdv.py are mostly dead references, not broken tests — the suite passes in CI because these symbols are simply unused. Dead inventory forces every future planner to re-derive what actually exists on disk.

Removed (all verified unused repo-wide — grep on symbol across tests/ cellpy/ dev/)

  • Never-committed protocol .res: full_cell / constant_voltage_cell / taper_cell / gitt_cell
  • Unused derived-oracle .h5 paths: mcc_cellpy_file_*2, pec_cellpy_file_*, nw_nda_cellpy_file_*
  • Broken custom_data_002.csv refs + their unused instrument pairs (custom_file_paths_2/_3, custom_instrument_2/_3 — only the .xlsx exists)
  • batch_file_dir (dir absent, unreferenced)

Kept

template_dir / examples_dir / default_prm_file and the maccor/biologics oracle paths — their consuming tests tolerate absence (create-from-raw or skip) and pass in CI. Added a comment clarifying the gitt_file proxy (20210210_FC.h5) is GITT-shaped usteps, not real GITT typing (real GITT raw deferred to Phase 2).

Verification

Pure dead-code removal. python tests/fdv.py imports clean; pytest --co -q collects 1462 tests with no import/collection errors (unchanged).

Part of #655 (Phase 1, slice 1 of 3).

🤖 Generated with Claude Code

Audit for #655 (H2) found ~a dozen fdv.py entries pointing at fixture
files that were never committed and are referenced by no test — dead
inventory that makes planners re-derive what actually exists.

Remove the unused references (verified unused repo-wide):
- never-committed protocol .res: full_cell / constant_voltage_cell /
  taper_cell / gitt_cell
- unused derived-oracle .h5 paths: mcc_cellpy_file_*2, pec_cellpy_file_*,
  nw_nda_cellpy_file_*
- broken custom_data_002.csv refs + their unused instrument pairs
  (custom_file_paths_2/_3, custom_instrument_2/_3; only the .xlsx exists)
- batch_file_dir (dir absent, unreferenced)

Kept: template_dir / examples_dir / default_prm_file and the maccor/
biologics oracle paths — their consuming tests tolerate absence (create
from raw or skip) and pass in CI. Added a comment clarifying that the
gitt_file proxy (20210210_FC.h5) is GITT-shaped usteps, not real GITT
typing (real GITT raw deferred to #655 Phase 2).

Pure dead-code removal; test collection unchanged (1462 collected).

Part of #655.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cursor

cursor Bot commented Jul 28, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@jepegit
jepegit enabled auto-merge (squash) July 28, 2026 10:23
@jepegit
jepegit merged commit f2fed09 into master Jul 28, 2026
4 checks passed
@jepegit
jepegit deleted the 655-fdv-hygiene branch July 28, 2026 10:25
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