Skip to content

Commit f352cbd

Browse files
committed
run librarian generate
1 parent f2ea730 commit f352cbd

1,881 files changed

Lines changed: 134955 additions & 135444 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/google-ads-admanager/noxfile.py

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@
4747

4848
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
4949

50-
LOWER_BOUND_CONSTRAINTS_FILE = CURRENT_DIRECTORY / "constraints.txt"
50+
if (CURRENT_DIRECTORY / "testing").exists():
51+
LOWER_BOUND_CONSTRAINTS_FILE = (
52+
CURRENT_DIRECTORY / "testing" / f"constraints-{ALL_PYTHON[0]}.txt"
53+
)
54+
else:
55+
LOWER_BOUND_CONSTRAINTS_FILE = CURRENT_DIRECTORY / "constraints.txt"
5156
PACKAGE_NAME = "google-ads-admanager"
5257

5358
UNIT_TEST_STANDARD_DEPENDENCIES = [
@@ -467,14 +472,6 @@ def prerelease_deps(session, protobuf_implementation):
467472
unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES
468473
session.install(*unit_deps_all)
469474

470-
# Install dependencies for the system test environment
471-
system_deps_all = (
472-
SYSTEM_TEST_STANDARD_DEPENDENCIES
473-
+ SYSTEM_TEST_EXTERNAL_DEPENDENCIES
474-
+ SYSTEM_TEST_EXTRAS
475-
)
476-
session.install(*system_deps_all)
477-
478475
# Because we test minimum dependency versions on the minimum Python
479476
# version, the first version we test with in the unit tests sessions has a
480477
# constraints file containing all dependencies and extras.
@@ -586,14 +583,6 @@ def core_deps_from_source(session, protobuf_implementation):
586583
unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES
587584
session.install(*unit_deps_all)
588585

589-
# Install dependencies for the system test environment
590-
system_deps_all = (
591-
SYSTEM_TEST_STANDARD_DEPENDENCIES
592-
+ SYSTEM_TEST_EXTERNAL_DEPENDENCIES
593-
+ SYSTEM_TEST_EXTRAS
594-
)
595-
session.install(*system_deps_all)
596-
597586
# Because we test minimum dependency versions on the minimum Python
598587
# version, the first version we test with in the unit tests sessions has a
599588
# constraints file containing all dependencies and extras.

packages/google-ads-admanager/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
# Exclude incompatible versions of `google-auth`
4444
# See https://github.com/googleapis/google-cloud-python/issues/12364
4545
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
46-
"grpcio >= 1.44.0, < 2.0.0",
46+
"grpcio >= 1.59.0, < 2.0.0",
4747
"grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'",
4848
"proto-plus >= 1.22.3, <2.0.0",
4949
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",

packages/google-ads-admanager/testing/constraints-3.10.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
# then this file should have google-cloud-foo==1.14.0
77
google-api-core==2.17.1
88
google-auth==2.14.1
9-
grpcio==1.44.0
9+
grpcio==1.59.0
1010
proto-plus==1.22.3
1111
protobuf==4.25.8

packages/google-ads-admanager/tests/unit/gapic/admanager_v1/test_ad_break_service.py

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
import asyncio
1617
import json
1718
import math
1819
import os
@@ -114,6 +115,21 @@ def modify_default_endpoint_template(client):
114115
)
115116

116117

118+
@pytest.fixture(autouse=True)
119+
def set_event_loop():
120+
try:
121+
asyncio.get_running_loop()
122+
yield
123+
except RuntimeError:
124+
loop = asyncio.new_event_loop()
125+
asyncio.set_event_loop(loop)
126+
try:
127+
yield
128+
finally:
129+
loop.close()
130+
asyncio.set_event_loop(None)
131+
132+
117133
def test__get_default_mtls_endpoint():
118134
api_endpoint = "example.googleapis.com"
119135
api_mtls_endpoint = "example.mtls.googleapis.com"
@@ -3250,7 +3266,6 @@ def test_get_ad_break_empty_call_rest():
32503266
call.assert_called()
32513267
_, args, _ = call.mock_calls[0]
32523268
request_msg = ad_break_service.GetAdBreakRequest()
3253-
32543269
assert args[0] == request_msg
32553270

32563271

@@ -3270,7 +3285,6 @@ def test_list_ad_breaks_empty_call_rest():
32703285
call.assert_called()
32713286
_, args, _ = call.mock_calls[0]
32723287
request_msg = ad_break_service.ListAdBreaksRequest()
3273-
32743288
assert args[0] == request_msg
32753289

32763290

@@ -3290,7 +3304,6 @@ def test_create_ad_break_empty_call_rest():
32903304
call.assert_called()
32913305
_, args, _ = call.mock_calls[0]
32923306
request_msg = ad_break_service.CreateAdBreakRequest()
3293-
32943307
assert args[0] == request_msg
32953308

32963309

@@ -3310,7 +3323,6 @@ def test_update_ad_break_empty_call_rest():
33103323
call.assert_called()
33113324
_, args, _ = call.mock_calls[0]
33123325
request_msg = ad_break_service.UpdateAdBreakRequest()
3313-
33143326
assert args[0] == request_msg
33153327

33163328

@@ -3330,7 +3342,6 @@ def test_delete_ad_break_empty_call_rest():
33303342
call.assert_called()
33313343
_, args, _ = call.mock_calls[0]
33323344
request_msg = ad_break_service.DeleteAdBreakRequest()
3333-
33343345
assert args[0] == request_msg
33353346

33363347

packages/google-ads-admanager/tests/unit/gapic/admanager_v1/test_ad_review_center_ad_service.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
import asyncio
1617
import json
1718
import math
1819
import os
@@ -117,6 +118,21 @@ def modify_default_endpoint_template(client):
117118
)
118119

119120

121+
@pytest.fixture(autouse=True)
122+
def set_event_loop():
123+
try:
124+
asyncio.get_running_loop()
125+
yield
126+
except RuntimeError:
127+
loop = asyncio.new_event_loop()
128+
asyncio.set_event_loop(loop)
129+
try:
130+
yield
131+
finally:
132+
loop.close()
133+
asyncio.set_event_loop(None)
134+
135+
120136
def test__get_default_mtls_endpoint():
121137
api_endpoint = "example.googleapis.com"
122138
api_mtls_endpoint = "example.mtls.googleapis.com"
@@ -2511,7 +2527,6 @@ def test_search_ad_review_center_ads_empty_call_rest():
25112527
call.assert_called()
25122528
_, args, _ = call.mock_calls[0]
25132529
request_msg = ad_review_center_ad_service.SearchAdReviewCenterAdsRequest()
2514-
25152530
assert args[0] == request_msg
25162531

25172532

@@ -2533,7 +2548,6 @@ def test_batch_allow_ad_review_center_ads_empty_call_rest():
25332548
call.assert_called()
25342549
_, args, _ = call.mock_calls[0]
25352550
request_msg = ad_review_center_ad_service.BatchAllowAdReviewCenterAdsRequest()
2536-
25372551
assert args[0] == request_msg
25382552

25392553

@@ -2555,7 +2569,6 @@ def test_batch_block_ad_review_center_ads_empty_call_rest():
25552569
call.assert_called()
25562570
_, args, _ = call.mock_calls[0]
25572571
request_msg = ad_review_center_ad_service.BatchBlockAdReviewCenterAdsRequest()
2558-
25592572
assert args[0] == request_msg
25602573

25612574

packages/google-ads-admanager/tests/unit/gapic/admanager_v1/test_ad_unit_service.py

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
import asyncio
1617
import json
1718
import math
1819
import os
@@ -120,6 +121,21 @@ def modify_default_endpoint_template(client):
120121
)
121122

122123

124+
@pytest.fixture(autouse=True)
125+
def set_event_loop():
126+
try:
127+
asyncio.get_running_loop()
128+
yield
129+
except RuntimeError:
130+
loop = asyncio.new_event_loop()
131+
asyncio.set_event_loop(loop)
132+
try:
133+
yield
134+
finally:
135+
loop.close()
136+
asyncio.set_event_loop(None)
137+
138+
123139
def test__get_default_mtls_endpoint():
124140
api_endpoint = "example.googleapis.com"
125141
api_mtls_endpoint = "example.mtls.googleapis.com"
@@ -5122,7 +5138,6 @@ def test_get_ad_unit_empty_call_rest():
51225138
call.assert_called()
51235139
_, args, _ = call.mock_calls[0]
51245140
request_msg = ad_unit_service.GetAdUnitRequest()
5125-
51265141
assert args[0] == request_msg
51275142

51285143

@@ -5142,7 +5157,6 @@ def test_list_ad_units_empty_call_rest():
51425157
call.assert_called()
51435158
_, args, _ = call.mock_calls[0]
51445159
request_msg = ad_unit_service.ListAdUnitsRequest()
5145-
51465160
assert args[0] == request_msg
51475161

51485162

@@ -5164,7 +5178,6 @@ def test_list_ad_unit_sizes_empty_call_rest():
51645178
call.assert_called()
51655179
_, args, _ = call.mock_calls[0]
51665180
request_msg = ad_unit_service.ListAdUnitSizesRequest()
5167-
51685181
assert args[0] == request_msg
51695182

51705183

@@ -5184,7 +5197,6 @@ def test_create_ad_unit_empty_call_rest():
51845197
call.assert_called()
51855198
_, args, _ = call.mock_calls[0]
51865199
request_msg = ad_unit_service.CreateAdUnitRequest()
5187-
51885200
assert args[0] == request_msg
51895201

51905202

@@ -5204,7 +5216,6 @@ def test_update_ad_unit_empty_call_rest():
52045216
call.assert_called()
52055217
_, args, _ = call.mock_calls[0]
52065218
request_msg = ad_unit_service.UpdateAdUnitRequest()
5207-
52085219
assert args[0] == request_msg
52095220

52105221

@@ -5226,7 +5237,6 @@ def test_batch_create_ad_units_empty_call_rest():
52265237
call.assert_called()
52275238
_, args, _ = call.mock_calls[0]
52285239
request_msg = ad_unit_service.BatchCreateAdUnitsRequest()
5229-
52305240
assert args[0] == request_msg
52315241

52325242

@@ -5248,7 +5258,6 @@ def test_batch_update_ad_units_empty_call_rest():
52485258
call.assert_called()
52495259
_, args, _ = call.mock_calls[0]
52505260
request_msg = ad_unit_service.BatchUpdateAdUnitsRequest()
5251-
52525261
assert args[0] == request_msg
52535262

52545263

@@ -5270,7 +5279,6 @@ def test_batch_activate_ad_units_empty_call_rest():
52705279
call.assert_called()
52715280
_, args, _ = call.mock_calls[0]
52725281
request_msg = ad_unit_service.BatchActivateAdUnitsRequest()
5273-
52745282
assert args[0] == request_msg
52755283

52765284

@@ -5292,7 +5300,6 @@ def test_batch_deactivate_ad_units_empty_call_rest():
52925300
call.assert_called()
52935301
_, args, _ = call.mock_calls[0]
52945302
request_msg = ad_unit_service.BatchDeactivateAdUnitsRequest()
5295-
52965303
assert args[0] == request_msg
52975304

52985305

@@ -5314,7 +5321,6 @@ def test_batch_archive_ad_units_empty_call_rest():
53145321
call.assert_called()
53155322
_, args, _ = call.mock_calls[0]
53165323
request_msg = ad_unit_service.BatchArchiveAdUnitsRequest()
5317-
53185324
assert args[0] == request_msg
53195325

53205326

packages/google-ads-admanager/tests/unit/gapic/admanager_v1/test_application_service.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
import asyncio
1617
import json
1718
import math
1819
import os
@@ -112,6 +113,21 @@ def modify_default_endpoint_template(client):
112113
)
113114

114115

116+
@pytest.fixture(autouse=True)
117+
def set_event_loop():
118+
try:
119+
asyncio.get_running_loop()
120+
yield
121+
except RuntimeError:
122+
loop = asyncio.new_event_loop()
123+
asyncio.set_event_loop(loop)
124+
try:
125+
yield
126+
finally:
127+
loop.close()
128+
asyncio.set_event_loop(None)
129+
130+
115131
def test__get_default_mtls_endpoint():
116132
api_endpoint = "example.googleapis.com"
117133
api_mtls_endpoint = "example.mtls.googleapis.com"
@@ -4396,7 +4412,6 @@ def test_get_application_empty_call_rest():
43964412
call.assert_called()
43974413
_, args, _ = call.mock_calls[0]
43984414
request_msg = application_service.GetApplicationRequest()
4399-
44004415
assert args[0] == request_msg
44014416

44024417

@@ -4418,7 +4433,6 @@ def test_list_applications_empty_call_rest():
44184433
call.assert_called()
44194434
_, args, _ = call.mock_calls[0]
44204435
request_msg = application_service.ListApplicationsRequest()
4421-
44224436
assert args[0] == request_msg
44234437

44244438

@@ -4440,7 +4454,6 @@ def test_create_application_empty_call_rest():
44404454
call.assert_called()
44414455
_, args, _ = call.mock_calls[0]
44424456
request_msg = application_service.CreateApplicationRequest()
4443-
44444457
assert args[0] == request_msg
44454458

44464459

@@ -4462,7 +4475,6 @@ def test_batch_create_applications_empty_call_rest():
44624475
call.assert_called()
44634476
_, args, _ = call.mock_calls[0]
44644477
request_msg = application_service.BatchCreateApplicationsRequest()
4465-
44664478
assert args[0] == request_msg
44674479

44684480

@@ -4484,7 +4496,6 @@ def test_update_application_empty_call_rest():
44844496
call.assert_called()
44854497
_, args, _ = call.mock_calls[0]
44864498
request_msg = application_service.UpdateApplicationRequest()
4487-
44884499
assert args[0] == request_msg
44894500

44904501

@@ -4506,7 +4517,6 @@ def test_batch_update_applications_empty_call_rest():
45064517
call.assert_called()
45074518
_, args, _ = call.mock_calls[0]
45084519
request_msg = application_service.BatchUpdateApplicationsRequest()
4509-
45104520
assert args[0] == request_msg
45114521

45124522

@@ -4528,7 +4538,6 @@ def test_batch_archive_applications_empty_call_rest():
45284538
call.assert_called()
45294539
_, args, _ = call.mock_calls[0]
45304540
request_msg = application_service.BatchArchiveApplicationsRequest()
4531-
45324541
assert args[0] == request_msg
45334542

45344543

@@ -4550,7 +4559,6 @@ def test_batch_unarchive_applications_empty_call_rest():
45504559
call.assert_called()
45514560
_, args, _ = call.mock_calls[0]
45524561
request_msg = application_service.BatchUnarchiveApplicationsRequest()
4553-
45544562
assert args[0] == request_msg
45554563

45564564

0 commit comments

Comments
 (0)