From a6f705f2b6f5b752f3a59db3eb3bdc9dc598cbaa Mon Sep 17 00:00:00 2001 From: infojunkie Date: Sun, 3 Dec 2023 18:19:41 -0800 Subject: [PATCH] Add tests --- pyproject.toml | 2 +- tests/test_discogs_tag.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2399a73..b57b3cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "discogs-tag" -version = "0.1.6" +version = "0.1.7" description = "A rudimentary audio tagger based on Discogs metadata." authors = ["infojunkie "] readme = "README.md" diff --git a/tests/test_discogs_tag.py b/tests/test_discogs_tag.py index 90b4280..8acd1f5 100644 --- a/tests/test_discogs_tag.py +++ b/tests/test_discogs_tag.py @@ -8,6 +8,9 @@ def test_apply_metadata(): 'anv': 'Artist 1' }, { 'name': 'Artist 2' + }, { + 'anv': '', + 'name': 'Artist 3' }], 'position': '1-02', 'extraartists': [{ @@ -19,7 +22,7 @@ def test_apply_metadata(): }] }, audio) assert audio['title'] == 'Title' - assert audio['artist'] == 'Artist 1, Artist 2' + assert audio['artist'] == 'Artist 1, Artist 2, Artist 3' assert audio['discnumber'] == '1' assert audio['tracknumber'] == '02' assert audio['composer'] == 'Composer'