Aware comments (#15480)
* Make sure we cannot deactivate the owner * Use different error code when trying to fetch token for inactive user
This commit is contained in:
1 parent
5995c6a2ac
commit
864a254071
4 files changed
+22
-3
No files matched your search
@@ -40,7 +40,10 @@ async def test_login_new_user_and_trying_refresh_token(hass, aiohttp_client):
|
||||
})
|
||||
|
||||
# User is not active
|
||||
assert resp.status == 400
|
||||
assert resp.status == 403
|
||||
data = await resp.json()
|
||||
assert data['error'] == 'access_denied'
|
||||
assert data['error_description'] == 'User is not active'
|
||||
|
||||
|
||||
def test_credential_store_expiration():
|
||||
|
||||
Reference in new issue
Block a user