Storage auth (#15192)
* Support parallel loading * Add storage mock * Store auth * Fix tests
This commit is contained in:
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': [
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user