kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
11 wiersze
254 B
Python
11 wiersze
254 B
Python
|
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()
|