mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 23:09:17 +02:00
Fixed flaky tests because of license cache
This commit is contained in:
parent
4ad3d10df9
commit
21259cc60f
1 changed files with 8 additions and 0 deletions
|
@ -29,6 +29,7 @@ from rest_framework.test import APIClient, APIRequestFactory
|
|||
|
||||
from funkwhale_api.activity import record
|
||||
from funkwhale_api.federation import actors
|
||||
from funkwhale_api.music import licenses
|
||||
from funkwhale_api.moderation import mrf
|
||||
|
||||
|
||||
|
@ -437,3 +438,10 @@ def mrf_outbox_registry(mocker):
|
|||
registry = mrf.Registry()
|
||||
mocker.patch("funkwhale_api.moderation.mrf.outbox", registry)
|
||||
return registry
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def clear_license_cache(db):
|
||||
licenses._cache = None
|
||||
yield
|
||||
licenses._cache = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue