improve coverage

This commit is contained in:
sigma67 2024-01-02 22:25:45 +01:00
commit d4bea93414
No known key found for this signature in database
GPG key ID: 1C314227DF0103D0
6 changed files with 18 additions and 27 deletions

View file

@ -2,11 +2,11 @@ import pytest
class TestSearch:
def test_search_exceptions(self):
def test_search_exceptions(self, yt_auth):
query = "edm playlist"
with pytest.raises(Exception):
with pytest.raises(Exception, match="Invalid filter provided"):
yt_auth.search(query, filter="song")
with pytest.raises(Exception):
with pytest.raises(Exception, match="Invalid scope provided"):
yt_auth.search(query, scope="upload")
@pytest.mark.parametrize("query", ["Monekes", "qllwlwl", "heun"])