Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amCap1712 committed Feb 12, 2024
1 parent 8de83c6 commit 064ae1b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/musicbrainz/test_mbid_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"recording_name": "Trigger Hippie",
"release_mbid": "9db51cd6-38f6-3b42-8ad5-559963d68f35",
"release_name": "Who Can You Trust?",
"year": 1996
"artist_mbids": ["067102ea-9519-4622-9077-57ca4164cfbb"]
}
]

Expand Down Expand Up @@ -51,12 +51,11 @@ def test_read(self, req):
assert len(entities) == 1
assert entities[0].artist.artist_credit_id == 963
assert entities[0].artist.name == "Morcheeba"
assert entities[0].artist.mbids == ["067102ea-9519-4622-9077-57ca4164cfbb"]
assert entities[0].release.mbid == "9db51cd6-38f6-3b42-8ad5-559963d68f35"
assert entities[0].release.name == "Who Can You Trust?"
assert entities[0].mbid == "97e69767-5d34-4c97-b36a-f3b2b1ef9dae"
assert entities[0].name == "Trigger Hippie"
assert entities[0].year == 1996


@unittest.mock.patch('requests.post')
def test_read_remove_unmatched(self, req):
Expand Down

0 comments on commit 064ae1b

Please sign in to comment.