Repository navigation
Commit daa3caf
test(config): restore every setting after the config JSON round-trip test
load_current_config() rewrites every saved CONFIG_ITEMS value on the shared PredBat fixture, but the test only
put load_scaling back. Any value that does not survive a JSON round-trip unchanged (a tuple read back as a
list, for example) would then leak into later tests, the order-dependent pollution seen in #5079. Snapshot all
values before the save and restore them in the finally block.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent f048e86 commit daa3caf
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
0 commit comments