mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 03:59:24 +02:00
[EPIC] Audio metadata update - UI / API
This commit is contained in:
parent
1a1c62ab37
commit
e0c5ffcb16
59 changed files with 2793 additions and 436 deletions
17
api/tests/common/test_models.py
Normal file
17
api/tests/common/test_models.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
import pytest
|
||||
|
||||
from django.urls import reverse
|
||||
|
||||
from funkwhale_api.federation import utils as federation_utils
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"model,factory_args,namespace",
|
||||
[("common.Mutation", {"created_by__local": True}, "federation:edits-detail")],
|
||||
)
|
||||
def test_mutation_fid_is_populated(factories, model, factory_args, namespace):
|
||||
instance = factories[model](**factory_args, fid=None, payload={})
|
||||
|
||||
assert instance.fid == federation_utils.full_url(
|
||||
reverse(namespace, kwargs={"uuid": instance.uuid})
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue