Commit 48b2cdb
test(waterdata): cover backward compat of every legacy camelCase get_samples kwarg
The existing tests check a couple of deprecated camelCase params end-to-end.
Add a single unit test that iterates the whole `_SAMPLES_LEGACY_KWARGS` mapping
and asserts, for every legacy name, that it is still accepted, emits a
`DeprecationWarning` naming the snake_case replacement, is renamed to that
param, and round-trips to the same Samples-API wire name it always used — so
every existing camelCase call site keeps producing an identical request. A
future param renamed without a legacy alias now fails this test.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sjb14HkwuCydKSKMsaXsgd1 parent 1981440 commit 48b2cdb
1 file changed
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
222 | 257 | | |
223 | 258 | | |
224 | 259 | | |
| |||
0 commit comments