mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 20:39:17 +02:00
Faster tests by not creating covers unless mandatory
This commit is contained in:
parent
48681c39db
commit
c9259c906b
22 changed files with 110 additions and 68 deletions
|
@ -64,7 +64,9 @@ def test_attachment(factories, now):
|
|||
@pytest.mark.parametrize("args, expected", [([], [0]), ([True], [0]), ([False], [1])])
|
||||
def test_attachment_queryset_attached(args, expected, factories, queryset_equal_list):
|
||||
attachments = [
|
||||
factories["music.Album"](artist__attachment_cover=None).attachment_cover,
|
||||
factories["music.Album"](
|
||||
with_cover=True, artist__attachment_cover=None
|
||||
).attachment_cover,
|
||||
factories["common.Attachment"](),
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue