First round of improvements to channel management:

- use modals
- less proeminent button
- field styling/labels
This commit is contained in:
Eliot Berriot 2020-02-23 15:31:03 +01:00
parent f8675c6080
commit e59cc33378
103 changed files with 3205 additions and 451 deletions

View file

@ -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"]()