@@ -44,14 +44,13 @@ def test_global_options_merged_with_provider_options():
44
44
Testing a global option is used when no provider option is set.
45
45
"""
46
46
options .set_global_options (max_instances = 66 )
47
- pubsub_options = options .PubSubOptions (
48
- topic = "foo" ) # pylint: disable=unexpected-keyword-arg
47
+ pubsub_options = options .PubSubOptions (topic = "foo" ) # pylint: disable=unexpected-keyword-arg
49
48
pubsub_options_dict = pubsub_options ._asdict_with_global_options ()
50
49
assert (pubsub_options_dict ["topic" ] == "foo"
51
- ), "'topic' property missing from dict"
50
+ ), "'topic' property missing from dict"
52
51
assert "options" not in pubsub_options_dict , "'options' key should not exist in dict"
53
52
assert (pubsub_options_dict ["max_instances" ] == 66
54
- ), "provider option did not update using the global option"
53
+ ), "provider option did not update using the global option"
55
54
56
55
57
56
def test_https_options_removes_cors ():
@@ -120,8 +119,7 @@ def test_merge_apis_empty_input():
120
119
expected_output = []
121
120
merged_apis = merge_required_apis (required_apis )
122
121
123
- assert merged_apis == expected_output , f"Expected {
124
- expected_output } , but got { merged_apis } "
122
+ assert merged_apis == expected_output , f"Expected { expected_output } , but got { merged_apis } "
125
123
126
124
127
125
def test_merge_apis_no_duplicate_apis ():
@@ -164,16 +162,15 @@ def test_merge_apis_no_duplicate_apis():
164
162
165
163
merged_apis = merge_required_apis (required_apis )
166
164
167
- assert merged_apis == expected_output , f"Expected {
168
- expected_output } , but got { merged_apis } "
165
+ assert merged_apis == expected_output , f"Expected { expected_output } , but got { merged_apis } "
169
166
170
167
171
168
def test_merge_apis_duplicate_apis ():
172
169
"""
173
170
This test evaluates the merge_required_apis function when the
174
171
input list contains duplicate APIs with different reasons.
175
172
The desired outcome for this test is a list where the duplicate
176
- APIs are merged properly and reasons are combined.
173
+ APIs are merged properly and reasons are combined.
177
174
This test ensures that the function correctly merges the duplicate
178
175
APIs and combines the reasons associated with them.
179
176
"""
@@ -215,11 +212,11 @@ def test_merge_apis_duplicate_apis():
215
212
216
213
for expected_item in expected_output :
217
214
assert (expected_item in merged_apis
218
- ), f"Expected item { expected_item } missing from the merged list"
215
+ ), f"Expected item { expected_item } missing from the merged list"
219
216
220
217
for actual_item in merged_apis :
221
218
assert (actual_item in expected_output
222
- ), f"Unexpected item { actual_item } found in the merged list"
219
+ ), f"Unexpected item { actual_item } found in the merged list"
223
220
224
221
225
222
def test_invoker_with_one_element_doesnt_throw ():
0 commit comments