"""Shared fixtures.""" import pytest TEST_PAGE_FILE = 'tests/spotify_artist_page.html' TEST_EMPTY_ARTIST_PAGE_FILE = 'tests/spotify_artist_page_empty_artist_name.html' # noqa @pytest.fixture def mock_artist_page(): """Test artist page from Spotify.""" with open(TEST_PAGE_FILE) as f: page = f.read() return page @pytest.fixture def mock_artist_page_empty_name(): """Test artist page with empty name of the artist from Spotify.""" with open(TEST_EMPTY_ARTIST_PAGE_FILE) as f: page = f.read() return page