Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add barcode field to AlbumInfo and update related files #5153

Merged
merged 2 commits into from
Mar 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
tests for barcode field
Dr-Blank committed Mar 18, 2024

Verified

This commit was signed with the committer’s verified signature.
Dr-Blank Dr.Blank
commit 0e7d35fd69fd3250353ec9328bdb8cabb6b46f9a
1 change: 1 addition & 0 deletions test/test_autotag.py
Original file line number Diff line number Diff line change
@@ -90,6 +90,7 @@ def test_current_metadata_likelies(self):
"disctotal",
"mb_albumid",
"label",
"barcode",
"catalognum",
"country",
"media",
6 changes: 6 additions & 0 deletions test/test_mb.py
Original file line number Diff line number Diff line change
@@ -69,6 +69,7 @@ def _make_release(
},
"country": "COUNTRY",
"status": "STATUS",
"barcode": "BARCODE",
}

if multi_artist_credit:
@@ -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),