You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(ingestion): assert the fixed Excel behaviour, not the defect (#485)
main went red at c0fbb08: 7064 passed, 2 failed.
#478 found that preserve_leading_zeros was a no-op for clean_excel and, following
the repo's convention of not using xfail, pinned the defect as it behaved:
assert list(fd.clean_excel(xlsx)["zip"]) == [2134, 501, 10001] # DEFECT
#480 then fixed that defect. Each PR was green on its own branch, and each was
rebased on a main that did not contain the other, so nothing caught the pair
until both had landed. The two assertions were tripwires for the fix, and the
fix duly tripped them.
Both now assert the repaired behaviour, and each docstring keeps the history so
the tests still explain why they exist. The round-trip case gains nothing
artificial -- it simply asserts that the Excel hop no longer undoes a correct
CSV clean, which is the property that was missing in the first place. The
opt-out and explicit-dtype paths are asserted alongside, so the fix cannot drift
into applying unconditionally.
Full suite 7066 passed / 0 failed, coverage 94.21%; ruff clean repo-wide.
0 commit comments