Skip to content

Add matches to all pytest.raises in test_input - #4553

Merged
clmould merged 1 commit into
mainfrom
test-input-match
Aug 25, 2026
Merged

Add matches to all pytest.raises in test_input#4553
clmould merged 1 commit into
mainfrom
test-input-match

Conversation

@timothy-nunn

Copy link
Copy Markdown
Collaborator

No description provided.

@timothy-nunn
timothy-nunn requested a review from a team as a code owner August 25, 2026 12:30
@clmould clmould self-assigned this Aug 25, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.47%. Comparing base (286bf85) to head (7d7ce4e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4553      +/-   ##
==========================================
+ Coverage   49.46%   49.47%   +0.01%     
==========================================
  Files         150      150              
  Lines       30069    30069              
==========================================
+ Hits        14874    14878       +4     
+ Misses      15195    15191       -4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

@clmould
clmould merged commit 986a8f0 into main Aug 25, 2026
21 of 22 checks passed
@clmould
clmould deleted the test-input-match branch August 25, 2026 13:25
dallonby added a commit to dallonby/PROCESS that referenced this pull request Aug 25, 2026
…er tests skip validation

- The check no longer exempts ixc = 13: the input value seeds the first
  model evaluation either way; an exactly-zero value was only caught later
  by the generic iteration-variable check, and a negative value was not
  caught at all (the 1/value scaling in load_iteration_variables inverts
  the variable's bounds). Rejecting at input validation covers both with
  an actionable message.
- The error message drops "or use ixc = 13" accordingly.
- The conductor-model condition is removed: dr_tf_inboard is only derived
  under ixc = 140 or for stellarators, neither of which depends on
  i_tf_sup, so resistive TF coils had the same silent zero-thickness path.
- test_input.py keeps its scaffold unchanged and instead disables
  check_process with an autouse monkeypatch fixture, as suggested; the
  parser tests no longer carry TF geometry.
- Tests updated: resistive zero-thickness now rejected (plus an accepted
  positive-thickness case), and ixc = 13 with zero or negative input is
  rejected.

Unit suite 855 passed / 4 skipped; integration 21 passed / 1 skipped
(all shipped regression inputs pass the widened check). Rebased onto
main (includes ukaea#4553).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

3 participants