DurgNomis-drol / mytoyota

Python client for Toyota Connected Services API
MIT License
80 stars 33 forks source link

Add check for invalid username #303

Closed GitOldGrumpy closed 10 months ago

GitOldGrumpy commented 10 months ago

During the authentication sequence the server will respond with invalid username if an invalid username is supplied. Add the code to check and report if this is the case.

codecov[bot] commented 10 months ago

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (fc8abe9) 70.60% compared to head (d7fd131) 70.50%.

Files Patch % Lines
mytoyota/controller.py 33.33% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #303 +/- ## ========================================== - Coverage 70.60% 70.50% -0.10% ========================================== Files 30 30 Lines 1432 1434 +2 ========================================== Hits 1011 1011 - Misses 421 423 +2 ``` | [Flag](https://app.codecov.io/gh/DurgNomis-drol/mytoyota/pull/303/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Simon+Hansen) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/DurgNomis-drol/mytoyota/pull/303/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Simon+Hansen) | `70.50% <33.33%> (-0.10%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Simon+Hansen#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.