"""Tests for Spotify artist logic.""" from artist.logic import spotify_artists from artist.models import spotify def test_search(mocker): """Test searching.""" mocker.patch.object(spotify, 'search') query = 'hello world' spotify_artists.search(query) spotify.search.assert_called_with(query, 'artist')