mirror of
https://github.com/beetbox/beets.git
synced 2026-02-19 22:03:05 +01:00
tests for barcode field
This commit is contained in:
parent
812fbca9da
commit
0e7d35fd69
2 changed files with 7 additions and 0 deletions
|
|
@ -90,6 +90,7 @@ class PluralityTest(_common.TestCase):
|
|||
"disctotal",
|
||||
"mb_albumid",
|
||||
"label",
|
||||
"barcode",
|
||||
"catalognum",
|
||||
"country",
|
||||
"media",
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ class MBAlbumInfoTest(_common.TestCase):
|
|||
},
|
||||
"country": "COUNTRY",
|
||||
"status": "STATUS",
|
||||
"barcode": "BARCODE",
|
||||
}
|
||||
|
||||
if multi_artist_credit:
|
||||
|
|
@ -379,6 +380,11 @@ class MBAlbumInfoTest(_common.TestCase):
|
|||
d = mb.album_info(release)
|
||||
self.assertEqual(d.albumstatus, "STATUS")
|
||||
|
||||
def test_parse_barcode(self):
|
||||
release = self._make_release(None)
|
||||
d = mb.album_info(release)
|
||||
self.assertEqual(d.barcode, "BARCODE")
|
||||
|
||||
def test_parse_media(self):
|
||||
tracks = [
|
||||
self._make_track("TITLE ONE", "ID ONE", 100.0 * 1000.0),
|
||||
|
|
|
|||
Loading…
Reference in a new issue