mirror of
https://github.com/beetbox/beets.git
synced 2025-12-22 16:43:25 +01:00
11 lines
No EOL
360 B
Python
11 lines
No EOL
360 B
Python
from beets.library import Item
|
|
from beets import library
|
|
|
|
def test_album_media_field(tmp_path):
|
|
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])
|
|
|
|
assert album.media == "Vinyl" |