We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b666dbd commit c60e889Copy full SHA for c60e889
tests/test_options.py
@@ -17,6 +17,7 @@
17
from firebase_functions import options, https_fn
18
from firebase_functions import params
19
from firebase_functions.private.serving import functions_as_yaml, merge_required_apis
20
+from pytest import raises
21
# pylint: disable=protected-access
22
23
@@ -224,7 +225,5 @@ def test_invoker_with_one_element_doesnt_throw():
224
225
226
227
def test_invoker_with_no_element_throws():
- try:
228
+ with raises(AssertionError, match="HttpsOptions: Invalid option for invoker - must be a non-empty list."):
229
options.HttpsOptions(invoker=[])._endpoint(func_name="test")
- except AssertionError:
230
- return
0 commit comments