We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84a2b3b commit 12e4018Copy full SHA for 12e4018
tests/test_functions.py
@@ -323,6 +323,19 @@ def test_invalid_function_definition_function_syntax_error():
323
)
324
325
326
+def test_invalid_function_definition_function_syntax_robustness_with_debug(monkeypatch):
327
+ monkeypatch.setattr(
328
+ functions_framework.werkzeug.serving, "is_running_from_reloader", lambda: True
329
+ )
330
+ source = TEST_FUNCTIONS_DIR / "background_load_error" / "main.py"
331
+ target = "function"
332
+
333
+ client = create_app(target, source).test_client()
334
335
+ resp = client.get("/")
336
+ assert resp.status_code == 500
337
338
339
def test_invalid_function_definition_missing_dependency():
340
source = TEST_FUNCTIONS_DIR / "background_missing_dependency" / "main.py"
341
target = "function"
0 commit comments