1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Fix Abode tests uncaught exceptions (#33365)

This commit is contained in:
shred86
2020-03-28 10:54:07 -07:00
committed by GitHub
parent 5a1b0edd96
commit bf16b50679
3 changed files with 6 additions and 37 deletions

View File

@@ -10,6 +10,8 @@ def requests_mock_fixture(requests_mock):
"""Fixture to provide a requests mocker."""
# Mocks the login response for abodepy.
requests_mock.post(CONST.LOGIN_URL, text=load_fixture("abode_login.json"))
# Mocks the logout response for abodepy.
requests_mock.post(CONST.LOGOUT_URL, text=load_fixture("abode_logout.json"))
# Mocks the oauth claims response for abodepy.
requests_mock.get(
CONST.OAUTH_TOKEN_URL, text=load_fixture("abode_oauth_claims.json")