Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Feb 13, 2020
1 parent 8f954e5 commit 203a0ad
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,18 @@

import august.activity
import requests_mock
from august.api import (API_GET_DOORBELL_URL, API_GET_DOORBELLS_URL,
API_GET_HOUSE_ACTIVITIES_URL, API_GET_LOCK_STATUS_URL,
API_GET_LOCK_URL, API_GET_LOCKS_URL, API_GET_PINS_URL,
API_LOCK_URL, API_UNLOCK_URL, Api)
from august.api import (
API_GET_DOORBELL_URL,
API_GET_DOORBELLS_URL,
API_GET_HOUSE_ACTIVITIES_URL,
API_GET_LOCK_STATUS_URL,
API_GET_LOCK_URL,
API_GET_LOCKS_URL,
API_GET_PINS_URL,
API_LOCK_URL,
API_UNLOCK_URL,
Api,
)
from august.bridge import BridgeDetail, BridgeStatus, BridgeStatusDetail
from august.lock import LockDoorStatus, LockStatus
from dateutil.tz import tzutc
Expand Down Expand Up @@ -181,7 +189,7 @@ def test_get_lock_detail_bridge_offline(self, mock):
self.assertEqual(-100, lock.battery_level)
self.assertEqual(None, lock.keypad)
self.assertEqual(None, lock.bridge)
self.assertEqual(None, lock.doorsense)
self.assertEqual(False, lock.doorsense)

@requests_mock.Mocker()
def test_get_lock_status_with_locked_response(self, mock):
Expand Down

0 comments on commit 203a0ad

Please sign in to comment.