Commit 562ed55
committed
Strengthen from_partial drop-Nones test
The is-None assertions on max_tokens and seed weren't load-bearing:
both fields default to None on a base RuntimeConfig, so the test
would have passed even if from_partial forwarded the None kwargs.
Added model_fields_set assertions, which carry only fields the
caller explicitly set during construction, to prove the drop.
Addresses CoPilot PR review feedback on #78.1 parent 5baff12 commit 562ed55
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
479 | 485 | | |
480 | 486 | | |
481 | 487 | | |
| |||
0 commit comments