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: parametrize two clean duplicated-test clusters
Two clusters of near-identical tests that differ only by data collapse cleanly
into one `@pytest.mark.parametrize`d test each — a genuine LOC reduction with
every case preserved as a row carrying a readable id:
- waterdata_utils_test: `_format_api_dates` — 12 one-line equality tests → 1.
- waterdata_test: `TestNormalizeStrIterable` iterable-normalizes — 4 → 1 (same
assertion, vary the container type: list / tuple / Series / ndarray).
Deliberately NOT parametrized (reconsidered for readability): `_parse_retry_after`
and the `_build_filter` / reject-type clusters. Those either encode distinct
behaviors with explanatory docstrings, or didn't actually reduce LOC (long
multi-line param tuples), so named tests read better there.
0 commit comments