Removed lingering logging statement and fixed caching issue causing tests to fail
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user