@@ -792,7 +792,7 @@ def test_create_dashboard_field_headers():
792
792
# a field header. Set these to a non-empty value.
793
793
request = dashboards_service .CreateDashboardRequest ()
794
794
795
- request .parent = "parent/value "
795
+ request .parent = "parent_value "
796
796
797
797
# Mock the actual call within the gRPC stub, and fake the request.
798
798
with mock .patch .object (type (client .transport .create_dashboard ), "__call__" ) as call :
@@ -808,7 +808,7 @@ def test_create_dashboard_field_headers():
808
808
_ , _ , kw = call .mock_calls [0 ]
809
809
assert (
810
810
"x-goog-request-params" ,
811
- "parent=parent/value " ,
811
+ "parent=parent_value " ,
812
812
) in kw ["metadata" ]
813
813
814
814
@@ -822,7 +822,7 @@ async def test_create_dashboard_field_headers_async():
822
822
# a field header. Set these to a non-empty value.
823
823
request = dashboards_service .CreateDashboardRequest ()
824
824
825
- request .parent = "parent/value "
825
+ request .parent = "parent_value "
826
826
827
827
# Mock the actual call within the gRPC stub, and fake the request.
828
828
with mock .patch .object (type (client .transport .create_dashboard ), "__call__" ) as call :
@@ -838,7 +838,7 @@ async def test_create_dashboard_field_headers_async():
838
838
_ , _ , kw = call .mock_calls [0 ]
839
839
assert (
840
840
"x-goog-request-params" ,
841
- "parent=parent/value " ,
841
+ "parent=parent_value " ,
842
842
) in kw ["metadata" ]
843
843
844
844
@@ -941,7 +941,7 @@ def test_list_dashboards_field_headers():
941
941
# a field header. Set these to a non-empty value.
942
942
request = dashboards_service .ListDashboardsRequest ()
943
943
944
- request .parent = "parent/value "
944
+ request .parent = "parent_value "
945
945
946
946
# Mock the actual call within the gRPC stub, and fake the request.
947
947
with mock .patch .object (type (client .transport .list_dashboards ), "__call__" ) as call :
@@ -957,7 +957,7 @@ def test_list_dashboards_field_headers():
957
957
_ , _ , kw = call .mock_calls [0 ]
958
958
assert (
959
959
"x-goog-request-params" ,
960
- "parent=parent/value " ,
960
+ "parent=parent_value " ,
961
961
) in kw ["metadata" ]
962
962
963
963
@@ -971,7 +971,7 @@ async def test_list_dashboards_field_headers_async():
971
971
# a field header. Set these to a non-empty value.
972
972
request = dashboards_service .ListDashboardsRequest ()
973
973
974
- request .parent = "parent/value "
974
+ request .parent = "parent_value "
975
975
976
976
# Mock the actual call within the gRPC stub, and fake the request.
977
977
with mock .patch .object (type (client .transport .list_dashboards ), "__call__" ) as call :
@@ -989,7 +989,7 @@ async def test_list_dashboards_field_headers_async():
989
989
_ , _ , kw = call .mock_calls [0 ]
990
990
assert (
991
991
"x-goog-request-params" ,
992
- "parent=parent/value " ,
992
+ "parent=parent_value " ,
993
993
) in kw ["metadata" ]
994
994
995
995
@@ -1038,7 +1038,7 @@ def test_list_dashboards_pager(transport_name: str = "grpc"):
1038
1038
1039
1039
assert pager ._metadata == metadata
1040
1040
1041
- results = [ i for i in pager ]
1041
+ results = list ( pager )
1042
1042
assert len (results ) == 6
1043
1043
assert all (isinstance (i , dashboard .Dashboard ) for i in results )
1044
1044
@@ -1288,7 +1288,7 @@ def test_get_dashboard_field_headers():
1288
1288
# a field header. Set these to a non-empty value.
1289
1289
request = dashboards_service .GetDashboardRequest ()
1290
1290
1291
- request .name = "name/value "
1291
+ request .name = "name_value "
1292
1292
1293
1293
# Mock the actual call within the gRPC stub, and fake the request.
1294
1294
with mock .patch .object (type (client .transport .get_dashboard ), "__call__" ) as call :
@@ -1304,7 +1304,7 @@ def test_get_dashboard_field_headers():
1304
1304
_ , _ , kw = call .mock_calls [0 ]
1305
1305
assert (
1306
1306
"x-goog-request-params" ,
1307
- "name=name/value " ,
1307
+ "name=name_value " ,
1308
1308
) in kw ["metadata" ]
1309
1309
1310
1310
@@ -1318,7 +1318,7 @@ async def test_get_dashboard_field_headers_async():
1318
1318
# a field header. Set these to a non-empty value.
1319
1319
request = dashboards_service .GetDashboardRequest ()
1320
1320
1321
- request .name = "name/value "
1321
+ request .name = "name_value "
1322
1322
1323
1323
# Mock the actual call within the gRPC stub, and fake the request.
1324
1324
with mock .patch .object (type (client .transport .get_dashboard ), "__call__" ) as call :
@@ -1334,7 +1334,7 @@ async def test_get_dashboard_field_headers_async():
1334
1334
_ , _ , kw = call .mock_calls [0 ]
1335
1335
assert (
1336
1336
"x-goog-request-params" ,
1337
- "name=name/value " ,
1337
+ "name=name_value " ,
1338
1338
) in kw ["metadata" ]
1339
1339
1340
1340
@@ -1429,7 +1429,7 @@ def test_delete_dashboard_field_headers():
1429
1429
# a field header. Set these to a non-empty value.
1430
1430
request = dashboards_service .DeleteDashboardRequest ()
1431
1431
1432
- request .name = "name/value "
1432
+ request .name = "name_value "
1433
1433
1434
1434
# Mock the actual call within the gRPC stub, and fake the request.
1435
1435
with mock .patch .object (type (client .transport .delete_dashboard ), "__call__" ) as call :
@@ -1445,7 +1445,7 @@ def test_delete_dashboard_field_headers():
1445
1445
_ , _ , kw = call .mock_calls [0 ]
1446
1446
assert (
1447
1447
"x-goog-request-params" ,
1448
- "name=name/value " ,
1448
+ "name=name_value " ,
1449
1449
) in kw ["metadata" ]
1450
1450
1451
1451
@@ -1459,7 +1459,7 @@ async def test_delete_dashboard_field_headers_async():
1459
1459
# a field header. Set these to a non-empty value.
1460
1460
request = dashboards_service .DeleteDashboardRequest ()
1461
1461
1462
- request .name = "name/value "
1462
+ request .name = "name_value "
1463
1463
1464
1464
# Mock the actual call within the gRPC stub, and fake the request.
1465
1465
with mock .patch .object (type (client .transport .delete_dashboard ), "__call__" ) as call :
@@ -1475,7 +1475,7 @@ async def test_delete_dashboard_field_headers_async():
1475
1475
_ , _ , kw = call .mock_calls [0 ]
1476
1476
assert (
1477
1477
"x-goog-request-params" ,
1478
- "name=name/value " ,
1478
+ "name=name_value " ,
1479
1479
) in kw ["metadata" ]
1480
1480
1481
1481
@@ -1587,7 +1587,7 @@ def test_update_dashboard_field_headers():
1587
1587
# a field header. Set these to a non-empty value.
1588
1588
request = dashboards_service .UpdateDashboardRequest ()
1589
1589
1590
- request .dashboard .name = "dashboard.name/value "
1590
+ request .dashboard .name = "name_value "
1591
1591
1592
1592
# Mock the actual call within the gRPC stub, and fake the request.
1593
1593
with mock .patch .object (type (client .transport .update_dashboard ), "__call__" ) as call :
@@ -1603,7 +1603,7 @@ def test_update_dashboard_field_headers():
1603
1603
_ , _ , kw = call .mock_calls [0 ]
1604
1604
assert (
1605
1605
"x-goog-request-params" ,
1606
- "dashboard.name=dashboard.name/value " ,
1606
+ "dashboard.name=name_value " ,
1607
1607
) in kw ["metadata" ]
1608
1608
1609
1609
@@ -1617,7 +1617,7 @@ async def test_update_dashboard_field_headers_async():
1617
1617
# a field header. Set these to a non-empty value.
1618
1618
request = dashboards_service .UpdateDashboardRequest ()
1619
1619
1620
- request .dashboard .name = "dashboard.name/value "
1620
+ request .dashboard .name = "name_value "
1621
1621
1622
1622
# Mock the actual call within the gRPC stub, and fake the request.
1623
1623
with mock .patch .object (type (client .transport .update_dashboard ), "__call__" ) as call :
@@ -1633,7 +1633,7 @@ async def test_update_dashboard_field_headers_async():
1633
1633
_ , _ , kw = call .mock_calls [0 ]
1634
1634
assert (
1635
1635
"x-goog-request-params" ,
1636
- "dashboard.name=dashboard.name/value " ,
1636
+ "dashboard.name=name_value " ,
1637
1637
) in kw ["metadata" ]
1638
1638
1639
1639
0 commit comments