Skip to content

[fix·tests] Tests for EPA consistency (#1) - #4

Closed
chondl wants to merge 2 commits into
epa-consistencyfrom
epa-consistency-tests
Closed

[fix·tests] Tests for EPA consistency (#1)#4
chondl wants to merge 2 commits into
epa-consistencyfrom
epa-consistency-tests

Conversation

@chondl

@chondl chondl commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Track 1 · companion tests for #1 (epa-consistency). Base: epa-consistency; merge after #1. Test infrastructure only (backend/tests/, pytest config, dev deps) — no production code changes. Optional: take only if you want the suite.


Companion to #1. pytest coverage for the full-field write-gate equality and the score-before-breakdown deferral policy. pytest is added to the dev dependency group only; production dependencies unchanged. Kept separate so the main PR stays minimal — the repository currently has no test infrastructure.

Adds NaN-stability coverage (test_nan_stability.py): the write/publish gate treats NaN==NaN, so a NaN-bearing row is not counted as changed, while real rank/norm/component drift still is. Exercises both call sites — the changed() DB gate and the storage-gate ordered-list comparison.

chondl added 2 commits July 10, 2026 11:10
Dependency-light tests for the full-field write-gate equality and the
score-before-breakdown deferral policy. pytest is added to the dev
group only; production dependencies are unchanged.
F6: covers nan_safe_eq and the changed()/storage list-comparison call sites,
asserting a NaN-bearing row is not counted changed while real drift still is.
@chondl
chondl force-pushed the epa-consistency-tests branch from 52d4044 to df49752 Compare July 10, 2026 18:12
@chondl chondl changed the title Tests for EPA consistency changes [fix·tests] Tests for EPA consistency (#1) Jul 10, 2026
@chondl chondl closed this Jul 19, 2026
@chondl
chondl deleted the epa-consistency-tests branch July 19, 2026 18:54
@chondl

chondl commented Jul 19, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #24 — reopened as #24 [10] on cph-epa-consistency-tests.

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