Fixed regression in search

This commit is contained in:
Eric van Blokland
2021-09-08 18:20:12 +02:00
parent 63da37c012
commit 76161adfdb
3 changed files with 16 additions and 4 deletions

View File

@@ -140,3 +140,15 @@ def test_browse_countries(library):
def test_browse_favorites(library):
results = library.browse('radionet:favorites');
assert 1 == len(results)
def test_search(library):
result = library.search({'any': ['radio ram']})
assert len(result.tracks) > 0
old_length = len(result.tracks)
result = library.search({'any': ['radio ram']})
assert len(result.tracks) == old_length