improve coverage
This commit is contained in:
parent
69dd4a9f2f
commit
d4bea93414
6 changed files with 18 additions and 27 deletions
|
|
@ -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"])
|
||||
|
|
|
|||
Loading…
Reference in a new issue