Skip to content

Commit

Permalink
fix: addres flake errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Apr 5, 2020
1 parent 9657222 commit 579155d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/unit_tests/test_climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import pytest

from tests.tesla_mock import TeslaMock

from teslajsonpy.controller import Controller
from teslajsonpy.climate import Climate
from teslajsonpy.controller import Controller
from teslajsonpy.exceptions import UnknownPresetMode

from tests.tesla_mock import TeslaMock


def test_has_battery(monkeypatch):
"""Test has_battery()."""
Expand All @@ -30,7 +30,7 @@ def test_get_values_on_init(monkeypatch):
_data = _mock.data_request_vehicle()
_climate = Climate(_data, _controller)

assert not _climate is None
assert _climate is not None
assert _climate.get_current_temp() is None
assert _climate.get_fan_status() is None
assert _climate.get_goal_temp() is None
Expand All @@ -50,7 +50,7 @@ async def test_get_values_after_update(monkeypatch):

await _climate.async_update()

assert not _climate is None
assert _climate is not None

assert _climate.get_current_temp() is None
assert not _climate.get_fan_status() is None
Expand Down

0 comments on commit 579155d

Please sign in to comment.