mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 11:00:39 +02:00
Resolve "Implement a Oauth provider in Funkwhale"
This commit is contained in:
parent
1dc7304bd3
commit
4c13d47387
54 changed files with 2811 additions and 249 deletions
10
api/tests/users/oauth/test_tasks.py
Normal file
10
api/tests/users/oauth/test_tasks.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
from oauth2_provider import models
|
||||
from funkwhale_api.users.oauth import tasks
|
||||
|
||||
|
||||
def test_clear_expired_tokens(mocker, db):
|
||||
clear_expired = mocker.spy(models, "clear_expired")
|
||||
|
||||
tasks.clear_expired_tokens()
|
||||
|
||||
clear_expired.assert_called_once()
|
Loading…
Add table
Add a link
Reference in a new issue