Removed lingering logging statement and fixed caching issue causing tests to fail

This commit is contained in:
Eric van Blokland
2021-09-28 17:32:12 +02:00
parent 55aab87f4e
commit 9c2c78c373
2 changed files with 3 additions and 1 deletions

View File

@@ -372,7 +372,7 @@ class RadioNetClient(object):
json = response.json()
number_pages = int(json["numberPages"])
logger.error(json)
if number_pages != 0:
# take only the first match!
station = self._get_station_from_search_result(

View File

@@ -25,6 +25,7 @@ def test_do_search(radionet):
def test_get_favorites(radionet):
radionet.cache = {};
test_favorites = ["Rock Antenne", "radio ram", "eska", "dancefm"]
radionet.set_favorites(test_favorites)
result = radionet.get_favorites()
@@ -34,6 +35,7 @@ def test_get_favorites(radionet):
def test_favorites_broken_slug(radionet):
radionet.cache = {};
test_favorites = ["radio357"]
radionet.set_favorites(test_favorites)
result = radionet.get_favorites()