When generating the OnlyRequiredFields tests, we need to check that the implicit defaults (the omitted fields in the JSON) were deserialized to the expected value, whether None or an other specified default value.
This means we have to still generate TestField instances for these fields, since that's what's responsible for emitting the assertions.
Checklist
General Contributing
[x] I have read the Code of Conduct and signed the CLA.
[x] I have added an entry to the RELEASE_NOTES.md file, or believe it's not necessary for this change.
When generating the OnlyRequiredFields tests, we need to check that the implicit defaults (the omitted fields in the JSON) were deserialized to the expected value, whether None or an other specified default value.
This means we have to still generate TestField instances for these fields, since that's what's responsible for emitting the assertions.
Checklist
General Contributing
RELEASE_NOTES.md
file, or believe it's not necessary for this change.Validation
This is an improvement to the tests.