Allow auth providers to influence is_active (#15557)

* Allow auth providers to influence is_active

* Fix auth script test
This commit is contained in:
Paulus Schoutsen 2018-07-19 22:10:36 +02:00 committed by GitHub
parent a42288d056
commit 2fcacbff23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 82 additions and 23 deletions

View file

@ -47,7 +47,7 @@ async def test_add_user(hass, provider, capsys, hass_storage):
assert len(hass_storage[hass_auth.STORAGE_KEY]['data']['users']) == 1
captured = capsys.readouterr()
assert captured.out == 'User created\n'
assert captured.out == 'Auth created\n'
assert len(data.users) == 1
data.validate_login('paulus', 'test-pass')