Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
infojunkie committed Dec 4, 2023
1 parent f9f56b1 commit a6f705f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
readme = "README.md"
Expand Down
5 changes: 4 additions & 1 deletion tests/test_discogs_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ def test_apply_metadata():
'anv': 'Artist 1'
}, {
'name': 'Artist 2'
}, {
'anv': '',
'name': 'Artist 3'
}],
'position': '1-02',
'extraartists': [{
Expand All @@ -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'

0 comments on commit a6f705f

Please sign in to comment.