Storage auth (#15192)

* Support parallel loading

* Add storage mock

* Store auth

* Fix tests
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2018-06-28 22:14:26 -04:00
1 parent a277470363
commit 2205090795
8 files changed
+324 -92

No files matched your search

@@ -11,15 +11,15 @@ from tests.common import mock_coro
@pytest.fixture
def store():
def store(hass):
"""Mock store."""
return auth.AuthStore(Mock())
return auth.AuthStore(hass)
@pytest.fixture
def provider(store):
def provider(hass, store):
"""Mock provider."""
return insecure_example.ExampleAuthProvider(None, store, {
return insecure_example.ExampleAuthProvider(hass, store, {
'type': 'insecure_example',
'users': [
{