mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 11:32:30 +01:00
Style changes
This commit is contained in:
parent
06850d872b
commit
8fc30163c8
2 changed files with 4 additions and 3 deletions
|
|
@ -364,7 +364,8 @@ class Album(LibModel):
|
|||
media_set = {
|
||||
str(item.media)
|
||||
for item in self.items()
|
||||
if getattr(item, "media", None)}
|
||||
if getattr(item, "media", None)
|
||||
}
|
||||
return list(media_set)
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ from beets.library import Item, Library
|
|||
|
||||
class MediaFieldTest(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.lib = Library(':memory:')
|
||||
self.lib = Library(":memory:")
|
||||
self.lib.add_album = self.lib.add_album
|
||||
|
||||
def add_album_with_items(self, items_data):
|
||||
|
|
@ -23,7 +23,7 @@ class MediaFieldTest(unittest.TestCase):
|
|||
]
|
||||
album = self.add_album_with_items(items_data)
|
||||
media = album.media
|
||||
assert media == ["CD", "Vinyl"]
|
||||
assert sorted(media) == ["CD", "Vinyl"]
|
||||
|
||||
def test_album_media_field_single_type(self):
|
||||
items_data = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue