Add tests for Netatmo (#46372)

Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Tobias Sauerwein 2021-03-23 14:28:35 +01:00 committed by GitHub
parent 1095d93892
commit 9656f260a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 215 additions and 17 deletions

View file

@ -1,14 +0,0 @@
"""The tests for the Netatmo oauth2 api."""
from unittest.mock import patch
from homeassistant.components.netatmo import api
async def test_api(hass, config_entry):
"""Test auth instantiation."""
with patch(
"homeassistant.helpers.config_entry_oauth2_flow.async_get_config_entry_implementation",
) as fake_implementation:
auth = api.ConfigEntryNetatmoAuth(hass, config_entry, fake_implementation)
assert isinstance(auth, api.ConfigEntryNetatmoAuth)