Skip to content

Test that overwriting replaces a CDF - #239

Merged
namurphy merged 1 commit into
PlasmaPy:mainfrom
namurphy:check-overwritten-cdf
Dec 1, 2026
Merged

namurphy merged 1 commit into
PlasmaPy:mainfrom
namurphy:check-overwritten-cdf

Conversation

@namurphy

@namurphy namurphy commented Dec 1, 2026

Copy link
Copy Markdown
Member

Description

This PR makes the test of overwriting an L0.5 CDF check that its contents are replaced, and removes an assertion from test_pfc_decommutator.

Motivation

The test of overwriting passed even if the existing CDF was kept, and assert_identical is stricter than the assert_allclose with no tolerance that came before it.

Details

  • test_l0_to_l05_overwrite_leaves_only_cdf is renamed to test_l0_to_l05_overwrite_replaces_cdf. It fails if the new CDF is discarded instead of replacing the existing one.
  • nox -s tests-3.13 tests-3.14 typecheck and uvx prek --quiet passed.

🤖 Generated with Claude Code

The test of overwriting passed even if the existing CDF was kept, and `assert_identical` is stricter than the `assert_allclose` with no tolerance that came before it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@namurphy
namurphy merged commit bccb75c 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