Closed CM000n closed 3 months ago
Attention: Patch coverage is 99.77011%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 82.80%. Comparing base (
5310e09
) to head (25276ae
). Report is 1 commits behind head on master.
Files | Patch % | Lines |
---|---|---|
mytoyota/utils/models.py | 92.85% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
If you take a look at the merge requests in this project, most of them were created by breaking model assumptions and setting individual fields to
Optional
.This merge request introduces a
CustomBaseModel
that automatically generatesNone
values for values that do not match the data types of the model assumptions. In addition, all data types of the fields in the models were set toOptional
.This does not immediately make things better, but at least an error is no longer immediately thrown if the model assumptions break. This means that the models and the
mytoyota
lib remain functional within the scope of the information available and can continue to be used by end users if Toyota changes something in the API again.