mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 03:22:39 +01:00
Fix typo and test bug revealed by mock fix
Mock used to tolerate a mistyped call like `assert_calledwith` when we meant `assert_called_with` silently. This seems to be fixed. Fixing the typo revealed that the assertion was actually wrong, so I fixed that too.
This commit is contained in:
parent
9aad2115e0
commit
287f0d8cef
1 changed files with 1 additions and 1 deletions
|
|
@ -471,7 +471,7 @@ class MBLibraryTest(unittest.TestCase):
|
|||
ai = list(mb.match_album('hello', 'there'))[0]
|
||||
|
||||
sp.assert_called_with(artist='hello', release='there', limit=5)
|
||||
gp.assert_calledwith(mbid)
|
||||
gp.assert_called_with(mbid, mock.ANY)
|
||||
self.assertEqual(ai.tracks[0].title, 'foo')
|
||||
self.assertEqual(ai.album, 'hi')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue