Closed cubinet-code closed 1 year ago
Need to double check, there seems to be something wrong with all pytests (maybe a test dependency upgrade, not your code l.
Thanks for having a look.
It seem to be related to this: https://github.com/adamchainz/time-machine/issues/387 in test_get_remote_position_too_old.
diff --git a/requirements-test.txt b/requirements-test.txt
-time_machine
+time_machine==2.12.0
After going back to 2.12.0 version tests pass again:
============================================================================ test session starts ============================================================================
platform darwin -- Python 3.11.3, pytest-7.4.2, pluggy-1.3.0
rootdir: /Users/oliverf/Documents/Project/bimmer_connected
configfile: pyproject.toml
plugins: anyio-4.0.0, respx-0.20.2, timeout-2.1.0, cov-4.1.0, asyncio-0.21.1, time-machine-2.12.0
asyncio: mode=Mode.STRICT
collected 85 items
bimmer_connected/tests/test_account.py .......................... [ 30%]
bimmer_connected/tests/test_api.py ..... [ 36%]
bimmer_connected/tests/test_remote_services.py ................ [ 55%]
bimmer_connected/tests/test_utils.py ..... [ 61%]
bimmer_connected/tests/test_vehicle.py ............ [ 75%]
bimmer_connected/tests/test_vehicle_status.py ..................... [100%]
============================================================================ 85 passed in 8.20s =============================================================================
Thanks for the hint! In that case, I would be fine with pinning time_machine<2.13.0
for now.
I submitted a PR, so you don't have to :)
I submitted a PR, so you don't have to :)
Thanks, please rebase and this should be good to go.
Patch coverage: 100.00%
and no project coverage change.
Comparison is base (
1376e3a
) 100.00% compared to head (022ba45
) 100.00%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Proposed change
This enhancement adds headunit information like ID Drive generation and its current software revision. Only vehicle data that also exists on older vehicles was used.
Headunit(idrive_version='ID8', headunit_type='MGU', software_version='07/2023.35')
Type of change
Checklist