Skip to content
Snippets Groups Projects
Commit 5ed8fb50 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed failing tests

parent deca49f5
No related branches found
No related tags found
No related merge requests found
...@@ -14,8 +14,8 @@ class TestMusic(TestCase): ...@@ -14,8 +14,8 @@ class TestMusic(TestCase):
@unittest.mock.patch('musicbrainzngs.search_artists', return_value=api_data.artists['search']['adhesive_wombat']) @unittest.mock.patch('musicbrainzngs.search_artists', return_value=api_data.artists['search']['adhesive_wombat'])
def test_can_create_artist_from_api(self, *mocks): def test_can_create_artist_from_api(self, *mocks):
artist = models.Artist.create_from_api(name="Adhesive wombat") artist = models.Artist.create_from_api(query="Adhesive wombat")
data = models.Artist.api.search(name='Adhesive wombat')['artist-list'][0] data = models.Artist.api.search(query='Adhesive wombat')['artist-list'][0]
self.assertEqual(int(data['ext:score']), 100) self.assertEqual(int(data['ext:score']), 100)
self.assertEqual(data['id'], '62c3befb-6366-4585-b256-809472333801') self.assertEqual(data['id'], '62c3befb-6366-4585-b256-809472333801')
......
...@@ -11,9 +11,3 @@ class TestUser(TestCase): ...@@ -11,9 +11,3 @@ class TestUser(TestCase):
self.user.__str__(), self.user.__str__(),
"testuser" # This is the default username for self.make_user() "testuser" # This is the default username for self.make_user()
) )
def test_get_absolute_url(self):
self.assertEqual(
self.user.get_absolute_url(),
'/users/testuser/'
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment