mirror of
https://github.com/beetbox/beets.git
synced 2025-12-23 00:54:03 +01:00
Fixed Style
This commit is contained in:
parent
9663371659
commit
faa702fe75
2 changed files with 8 additions and 6 deletions
|
|
@ -21,7 +21,7 @@ New features:
|
|||
- :doc:`plugins/mbpseudo`: Add a new `mbpseudo` plugin to proactively receive
|
||||
MusicBrainz pseudo-releases as recommendations during import.
|
||||
- Added support for Python 3.13.
|
||||
-- Added album-level `$media` field derived from items’ media metadata.
|
||||
- Added album-level `$media` field derived from items’ media metadata.
|
||||
|
||||
Bug fixes:
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
from beets.library import Item
|
||||
from beets import library
|
||||
from beets.library import Item
|
||||
|
||||
|
||||
def test_album_media_field(tmp_path):
|
||||
lib = library.Library(path=str(tmp_path / "library.db"),
|
||||
directory=str(tmp_path / "music"))
|
||||
lib = library.Library(
|
||||
path=str(tmp_path / "library.db"), directory=str(tmp_path / "music")
|
||||
)
|
||||
|
||||
item = Item(title="Test Song", album="Test Album", media="Vinyl")
|
||||
album = lib.add_album([item])
|
||||
album = lib.add_album([item])
|
||||
|
||||
assert album.media == "Vinyl"
|
||||
assert album.media == "Vinyl"
|
||||
|
|
|
|||
Loading…
Reference in a new issue