mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 05:39:25 +02:00
First round of improvements to channel management:
- use modals - less proeminent button - field styling/labels
This commit is contained in:
parent
f8675c6080
commit
e59cc33378
103 changed files with 3205 additions and 451 deletions
|
@ -174,6 +174,17 @@ def test_attach_file_url_fetch(factories, r_mock):
|
|||
assert new_attachment.mimetype == data["mimetype"]
|
||||
|
||||
|
||||
def test_attach_file_attachment(factories, r_mock):
|
||||
album = factories["music.Album"]()
|
||||
|
||||
data = factories["common.Attachment"]()
|
||||
utils.attach_file(album, "attachment_cover", data)
|
||||
|
||||
album.refresh_from_db()
|
||||
|
||||
assert album.attachment_cover == data
|
||||
|
||||
|
||||
def test_attach_file_content(factories, r_mock):
|
||||
album = factories["music.Album"]()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue