summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr-Blank <64108942+Dr-Blank@users.noreply.github.com>2024-03-18 13:23:10 -0400
committerDr-Blank <64108942+Dr-Blank@users.noreply.github.com>2024-03-18 13:23:10 -0400
commit0e7d35fd69fd3250353ec9328bdb8cabb6b46f9a (patch)
treebdd12fedfe07504ade5dbc3924be5c79e95a7407
parent812fbca9da85853df7c6824eca67d3572029cd81 (diff)
tests for barcode field
-rw-r--r--test/test_autotag.py1
-rw-r--r--test/test_mb.py6
2 files changed, 7 insertions, 0 deletions
diff --git a/test/test_autotag.py b/test/test_autotag.py
index 44c68ce9a..6691348ed 100644
--- a/test/test_autotag.py
+++ b/test/test_autotag.py
@@ -90,6 +90,7 @@ class PluralityTest(_common.TestCase):
"disctotal",
"mb_albumid",
"label",
+ "barcode",
"catalognum",
"country",
"media",
diff --git a/test/test_mb.py b/test/test_mb.py
index 605d126f9..5290b3021 100644
--- a/test/test_mb.py
+++ b/test/test_mb.py
@@ -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),