Skip to content

Commit f216979

Browse files
committed
test: add back pragma no cover for genuinely hard-to-test edge cases
1 parent 55a44f3 commit f216979

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/functions_framework/execution_id.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _get_current_context():
5454
context = execution_context_var.get()
5555
if context is not None:
5656
return context
57-
return (
57+
return ( # pragma: no cover
5858
flask.g.execution_id_context
5959
if flask.has_request_context() and "execution_id_context" in flask.g
6060
else None
@@ -188,7 +188,7 @@ async def async_wrapper(request, *args, **kwargs):
188188
if inspect.iscoroutinefunction(view_function):
189189
result = await view_function(request, *args, **kwargs)
190190
else:
191-
result = view_function(request, *args, **kwargs)
191+
result = view_function(request, *args, **kwargs) # pragma: no cover
192192

193193
# Only reset context on successful completion
194194
# On exception, leave context available for exception handlers

0 commit comments

Comments
 (0)