1818def fun (name , event ):
1919 """Test function implementation.
2020
21- It writes the expected output (entry point name and the given value) to the
22- given file, as a response from the background function, verified by the test.
21+ It writes the expected output (entry point name and the given value) to the
22+ given file, as a response from the background function, verified by the test.
2323
24- Args:
25- name: Entry point function which called this helper function.
26- event: The event which triggered this background function. Must contain
27- entries for 'value' and 'filename' keys in the data dictionary.
28- """
24+ Args:
25+ name: Entry point function which called this helper function.
26+ event: The event which triggered this background function. Must contain
27+ entries for 'value' and 'filename' keys in the data dictionary.
28+ """
2929 filename = event ["filename" ]
3030 value = event ["value" ]
3131 f = open (filename , "w" )
@@ -38,15 +38,15 @@ def myFunctionFoo(
3838): # Used in test, pylint: disable=invalid-name,unused-argument
3939 """Test function at entry point myFunctionFoo.
4040
41- Loaded in a test which verifies entry point handling in a file with multiple
42- entry points.
41+ Loaded in a test which verifies entry point handling in a file with multiple
42+ entry points.
4343
44- Args:
45- event: The event data (as dictionary) which triggered this background
46- function. Must contain entries for 'value' and 'filename' keys in the data
47- dictionary.
48- context (google.cloud.functions.Context): The Cloud Functions event context.
49- """
44+ Args:
45+ event: The event data (as dictionary) which triggered this background
46+ function. Must contain entries for 'value' and 'filename' keys in the data
47+ dictionary.
48+ context (google.cloud.functions.Context): The Cloud Functions event context.
49+ """
5050 fun ("myFunctionFoo" , event )
5151
5252
@@ -55,15 +55,15 @@ def myFunctionBar(
5555): # Used in test, pylint: disable=invalid-name,unused-argument
5656 """Test function at entry point myFunctionBar.
5757
58- Loaded in a test which verifies entry point handling in a file with multiple
59- entry points.
58+ Loaded in a test which verifies entry point handling in a file with multiple
59+ entry points.
6060
61- Args:
62- event: The event data (as dictionary) which triggered this background
63- function. Must contain entries for 'value' and 'filename' keys in the data
64- dictionary.
65- context (google.cloud.functions.Context): The Cloud Functions event context.
66- """
61+ Args:
62+ event: The event data (as dictionary) which triggered this background
63+ function. Must contain entries for 'value' and 'filename' keys in the data
64+ dictionary.
65+ context (google.cloud.functions.Context): The Cloud Functions event context.
66+ """
6767 fun ("myFunctionBar" , event )
6868
6969
0 commit comments