Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti committed Aug 26, 2021
1 parent 7026cc7 commit 108f7ba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions miio/tests/test_vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ def test_history_details(self):
"send",
return_value=[[1488347071, 1488347123, 16, 0, 0, 0]],
):
assert self.device.clean_details(
123123, return_list=False
).duration == datetime.timedelta(seconds=16)
assert self.device.clean_details(123123).duration == datetime.timedelta(
seconds=16
)

def test_history_details_dict(self):
with patch.object(
Expand All @@ -256,9 +256,9 @@ def test_history_details_dict(self):
}
],
):
assert self.device.clean_details(
123123, return_list=False
).duration == datetime.timedelta(seconds=950)
assert self.device.clean_details(123123).duration == datetime.timedelta(
seconds=950
)

def test_history_empty(self):
with patch.object(
Expand Down

0 comments on commit 108f7ba

Please sign in to comment.