From 0e7d35fd69fd3250353ec9328bdb8cabb6b46f9a Mon Sep 17 00:00:00 2001 From: Dr-Blank <64108942+Dr-Blank@users.noreply.github.com> Date: Mon, 18 Mar 2024 13:23:10 -0400 Subject: [PATCH] tests for barcode field --- test/test_autotag.py | 1 + test/test_mb.py | 6 ++++++ 2 files changed, 7 insertions(+) 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),