1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Always set hass_user (#18844)

This commit is contained in:
Paulus Schoutsen
2018-11-30 17:32:47 +01:00
committed by GitHub
parent 8f50180598
commit d014517ce2
3 changed files with 79 additions and 10 deletions

View File

@@ -88,6 +88,12 @@ def hass_access_token(hass, hass_admin_user):
yield hass.auth.async_create_access_token(refresh_token)
@pytest.fixture
def hass_owner_user(hass, local_auth):
"""Return a Home Assistant admin user."""
return MockUser(is_owner=True).add_to_hass(hass)
@pytest.fixture
def hass_admin_user(hass, local_auth):
"""Return a Home Assistant admin user."""