Skip to content

Commit

Permalink
Added cooled seats tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dandelionclock committed Jun 5, 2024
1 parent 65ef451 commit d686c76
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/tesla_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,9 @@ def command_ok():
"right_temp_direction": -309,
"seat_heater_left": 0,
"seat_heater_right": 0,
"seat_heater_rear_center": 0,
"seat_heater_rear_left": 0,
"seat_heater_rear_right": 0,
"side_mirror_heaters": False,
"steering_wheel_heat_level": 1,
"steering_wheel_heater": True,
Expand Down
12 changes: 12 additions & 0 deletions tests/unit_tests/test_car.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,18 @@ async def test_remote_seat_heater_request(monkeypatch):
assert await _car.remote_seat_heater_request(3, 1) is None


@pytest.mark.asyncio
async def test_remote_seat_cooler_request(monkeypatch):
"""Test remote seat cooler request."""
TeslaMock(monkeypatch)
_controller = Controller(None)
await _controller.connect()
await _controller.generate_car_objects()
_car = _controller.cars[VIN]

assert await _car.remote_seat_cooler_request(1, 2) is None


@pytest.mark.asyncio
async def test_schedule_software_update(monkeypatch):
"""Test scheduling software update."""
Expand Down

0 comments on commit d686c76

Please sign in to comment.