Commit e779f7d
test(soci): cover explicit-default-value cases in SociOptions.update
Adds two regression tests asserting that when a user explicitly sets a
field to its default value (scalar default False, list default empty),
self still wins over `other` in `update()`. These guard the
`model_fields_set`-based check introduced when the default_factory bug
was fixed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 21f38ab commit e779f7d
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
0 commit comments