Skip to content

Commit

Permalink
tests for barcode field
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Blank authored and InvisibleFunction committed Mar 30, 2024
1 parent 9706d39 commit 016cc6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/test_autotag.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def test_current_metadata_likelies(self):
"disctotal",
"mb_albumid",
"label",
"barcode",
"catalognum",
"country",
"media",
Expand Down
6 changes: 6 additions & 0 deletions test/test_mb.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def _make_release(
},
"country": "COUNTRY",
"status": "STATUS",
"barcode": "BARCODE",
}

if multi_artist_credit:
Expand Down Expand Up @@ -379,6 +380,11 @@ def test_parse_status(self):
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),
Expand Down

0 comments on commit 016cc6d

Please sign in to comment.