mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-15 11:11:16 +08:00
Add login_return to on_after_login method (#1187)
This commit is contained in:
@ -165,6 +165,9 @@ class TestLogin:
|
||||
"token_type": "bearer",
|
||||
}
|
||||
assert user_manager.on_after_login.called is True
|
||||
args, kwargs = user_manager.on_after_login.call_args
|
||||
assert len(args) == 3
|
||||
assert all(x is not None for x in args)
|
||||
|
||||
async def test_inactive_user(
|
||||
self,
|
||||
|
Reference in New Issue
Block a user