def test_turning_off_max_limits_returns_less(self, app_token): client = Spotify(app_token, max_limits_on=True) s1, = client.search('piano') with client.max_limits(False): s2, = client.search('piano') assert s1.limit > s2.limit
def test_specifying_pos_args_until_limit(self, app_token): client = Spotify(app_token, max_limits_on=True) s1, = client.search('piano', ('track', ), None, None) with client.max_limits(False): s2, = client.search('piano', ('track', ), None, None) assert s1.limit > s2.limit
def test_turning_on_max_limits_returns_more(self, app_token): client = Spotify(app_token) s1, = client.search('piano') with client.max_limits(True): s2, = client.search('piano') assert s1.limit < s2.limit