Skip to content

Commit

Permalink
Rollback tests
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet committed Aug 29, 2024
1 parent ff41863 commit 60d7c8c
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions tests/kamereon/test_kamereon_vehicle_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,10 @@ def test_hvac_schedule_for_json() -> None:
)
assert for_json == expected_json

# Update days only
vehicle_data.update(
{
"id": 1,
"sunday": {"readyAtTime": "T20:30Z"},
"tuesday": {"readyAtTime": "T20:30Z"},
"thursday": None,
}
# perform an update
vehicle_data.schedules[0].activated = True
vehicle_data.schedules[0].sunday = models.HvacDaySchedule(
raw_data={}, readyAtTime="T20:30Z"
)

for_json = {
Expand All @@ -288,17 +284,6 @@ def test_hvac_schedule_for_json() -> None:
"schedules": [
{
"id": 1,
"activated": False,
"monday": None,
"tuesday": {"readyAtTime": "T20:30Z"},
"wednesday": None,
"thursday": None,
"friday": None,
"saturday": None,
"sunday": {"readyAtTime": "T20:30Z"},
},
{
"id": 2,
"activated": True,
"monday": None,
"tuesday": None,
Expand Down

0 comments on commit 60d7c8c

Please sign in to comment.