import pytest @pytest.fixture def compared_tracks_response(spotify_track_response): def response(spotify_id: str, apple_id: int, isrc: str, is_sony: bool = False, add_markets: bool = False): res = { "apple_id": apple_id, "is_sony": is_sony, "isrc": isrc, "data": spotify_track_response(spotify_id, add_markets=add_markets), "spotify_id": spotify_id, } return res return response