Skip to content

Commit 5b09b03

Browse files
committed
ScienceDirectSearch: Test empty query
1 parent 059a0e6 commit 5b09b03

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pybliometrics/sciencedirect/tests/test_ScienceDirectSearch.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ def test_empty_results():
6868
assert sds_empty._n == 0
6969

7070

71+
def test_empty_query():
72+
with pytest.raises(ValueError):
73+
_ = ScienceDirectSearch(view="STANDARD", refresh=30)
74+
75+
7176
def test_field_consistency():
7277
am_wrong_field = ScienceDirectSearch(query='',
7378
title='Assessing LLMs in malicious code deobfuscation of real-world malware campaigns',

0 commit comments

Comments
 (0)