Skip to content

Commit b666dbd

Browse files
committed
test: Add test for checking if invoker with no elements throws
1 parent ee1f316 commit b666dbd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_options.py

+7
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,10 @@ def test_merge_apis_duplicate_apis():
221221

222222
def test_invoker_with_one_element_doesnt_throw():
223223
options.HttpsOptions(invoker=["public"])._endpoint(func_name="test")
224+
225+
226+
def test_invoker_with_no_element_throws():
227+
try:
228+
options.HttpsOptions(invoker=[])._endpoint(func_name="test")
229+
except AssertionError:
230+
return

0 commit comments

Comments
 (0)