Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: Add test for checking if invoker with no elements throws
  • Loading branch information
exaby73 committed Aug 1, 2024
commit b666dbdf421c7b26b3f3e81116b7de4385672c51
7 changes: 7 additions & 0 deletions tests/test_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,10 @@ def test_merge_apis_duplicate_apis():

def test_invoker_with_one_element_doesnt_throw():
options.HttpsOptions(invoker=["public"])._endpoint(func_name="test")


def test_invoker_with_no_element_throws():
try:
options.HttpsOptions(invoker=[])._endpoint(func_name="test")
except AssertionError:
return