@@ -792,7 +792,7 @@ def test_create_dashboard_field_headers():
792792 # a field header. Set these to a non-empty value.
793793 request = dashboards_service .CreateDashboardRequest ()
794794
795- request .parent = "parent/value "
795+ request .parent = "parent_value "
796796
797797 # Mock the actual call within the gRPC stub, and fake the request.
798798 with mock .patch .object (type (client .transport .create_dashboard ), "__call__" ) as call :
@@ -808,7 +808,7 @@ def test_create_dashboard_field_headers():
808808 _ , _ , kw = call .mock_calls [0 ]
809809 assert (
810810 "x-goog-request-params" ,
811- "parent=parent/value " ,
811+ "parent=parent_value " ,
812812 ) in kw ["metadata" ]
813813
814814
@@ -822,7 +822,7 @@ async def test_create_dashboard_field_headers_async():
822822 # a field header. Set these to a non-empty value.
823823 request = dashboards_service .CreateDashboardRequest ()
824824
825- request .parent = "parent/value "
825+ request .parent = "parent_value "
826826
827827 # Mock the actual call within the gRPC stub, and fake the request.
828828 with mock .patch .object (type (client .transport .create_dashboard ), "__call__" ) as call :
@@ -838,7 +838,7 @@ async def test_create_dashboard_field_headers_async():
838838 _ , _ , kw = call .mock_calls [0 ]
839839 assert (
840840 "x-goog-request-params" ,
841- "parent=parent/value " ,
841+ "parent=parent_value " ,
842842 ) in kw ["metadata" ]
843843
844844
@@ -941,7 +941,7 @@ def test_list_dashboards_field_headers():
941941 # a field header. Set these to a non-empty value.
942942 request = dashboards_service .ListDashboardsRequest ()
943943
944- request .parent = "parent/value "
944+ request .parent = "parent_value "
945945
946946 # Mock the actual call within the gRPC stub, and fake the request.
947947 with mock .patch .object (type (client .transport .list_dashboards ), "__call__" ) as call :
@@ -957,7 +957,7 @@ def test_list_dashboards_field_headers():
957957 _ , _ , kw = call .mock_calls [0 ]
958958 assert (
959959 "x-goog-request-params" ,
960- "parent=parent/value " ,
960+ "parent=parent_value " ,
961961 ) in kw ["metadata" ]
962962
963963
@@ -971,7 +971,7 @@ async def test_list_dashboards_field_headers_async():
971971 # a field header. Set these to a non-empty value.
972972 request = dashboards_service .ListDashboardsRequest ()
973973
974- request .parent = "parent/value "
974+ request .parent = "parent_value "
975975
976976 # Mock the actual call within the gRPC stub, and fake the request.
977977 with mock .patch .object (type (client .transport .list_dashboards ), "__call__" ) as call :
@@ -989,7 +989,7 @@ async def test_list_dashboards_field_headers_async():
989989 _ , _ , kw = call .mock_calls [0 ]
990990 assert (
991991 "x-goog-request-params" ,
992- "parent=parent/value " ,
992+ "parent=parent_value " ,
993993 ) in kw ["metadata" ]
994994
995995
@@ -1038,7 +1038,7 @@ def test_list_dashboards_pager(transport_name: str = "grpc"):
10381038
10391039 assert pager ._metadata == metadata
10401040
1041- results = [ i for i in pager ]
1041+ results = list ( pager )
10421042 assert len (results ) == 6
10431043 assert all (isinstance (i , dashboard .Dashboard ) for i in results )
10441044
@@ -1288,7 +1288,7 @@ def test_get_dashboard_field_headers():
12881288 # a field header. Set these to a non-empty value.
12891289 request = dashboards_service .GetDashboardRequest ()
12901290
1291- request .name = "name/value "
1291+ request .name = "name_value "
12921292
12931293 # Mock the actual call within the gRPC stub, and fake the request.
12941294 with mock .patch .object (type (client .transport .get_dashboard ), "__call__" ) as call :
@@ -1304,7 +1304,7 @@ def test_get_dashboard_field_headers():
13041304 _ , _ , kw = call .mock_calls [0 ]
13051305 assert (
13061306 "x-goog-request-params" ,
1307- "name=name/value " ,
1307+ "name=name_value " ,
13081308 ) in kw ["metadata" ]
13091309
13101310
@@ -1318,7 +1318,7 @@ async def test_get_dashboard_field_headers_async():
13181318 # a field header. Set these to a non-empty value.
13191319 request = dashboards_service .GetDashboardRequest ()
13201320
1321- request .name = "name/value "
1321+ request .name = "name_value "
13221322
13231323 # Mock the actual call within the gRPC stub, and fake the request.
13241324 with mock .patch .object (type (client .transport .get_dashboard ), "__call__" ) as call :
@@ -1334,7 +1334,7 @@ async def test_get_dashboard_field_headers_async():
13341334 _ , _ , kw = call .mock_calls [0 ]
13351335 assert (
13361336 "x-goog-request-params" ,
1337- "name=name/value " ,
1337+ "name=name_value " ,
13381338 ) in kw ["metadata" ]
13391339
13401340
@@ -1429,7 +1429,7 @@ def test_delete_dashboard_field_headers():
14291429 # a field header. Set these to a non-empty value.
14301430 request = dashboards_service .DeleteDashboardRequest ()
14311431
1432- request .name = "name/value "
1432+ request .name = "name_value "
14331433
14341434 # Mock the actual call within the gRPC stub, and fake the request.
14351435 with mock .patch .object (type (client .transport .delete_dashboard ), "__call__" ) as call :
@@ -1445,7 +1445,7 @@ def test_delete_dashboard_field_headers():
14451445 _ , _ , kw = call .mock_calls [0 ]
14461446 assert (
14471447 "x-goog-request-params" ,
1448- "name=name/value " ,
1448+ "name=name_value " ,
14491449 ) in kw ["metadata" ]
14501450
14511451
@@ -1459,7 +1459,7 @@ async def test_delete_dashboard_field_headers_async():
14591459 # a field header. Set these to a non-empty value.
14601460 request = dashboards_service .DeleteDashboardRequest ()
14611461
1462- request .name = "name/value "
1462+ request .name = "name_value "
14631463
14641464 # Mock the actual call within the gRPC stub, and fake the request.
14651465 with mock .patch .object (type (client .transport .delete_dashboard ), "__call__" ) as call :
@@ -1475,7 +1475,7 @@ async def test_delete_dashboard_field_headers_async():
14751475 _ , _ , kw = call .mock_calls [0 ]
14761476 assert (
14771477 "x-goog-request-params" ,
1478- "name=name/value " ,
1478+ "name=name_value " ,
14791479 ) in kw ["metadata" ]
14801480
14811481
@@ -1587,7 +1587,7 @@ def test_update_dashboard_field_headers():
15871587 # a field header. Set these to a non-empty value.
15881588 request = dashboards_service .UpdateDashboardRequest ()
15891589
1590- request .dashboard .name = "dashboard.name/value "
1590+ request .dashboard .name = "name_value "
15911591
15921592 # Mock the actual call within the gRPC stub, and fake the request.
15931593 with mock .patch .object (type (client .transport .update_dashboard ), "__call__" ) as call :
@@ -1603,7 +1603,7 @@ def test_update_dashboard_field_headers():
16031603 _ , _ , kw = call .mock_calls [0 ]
16041604 assert (
16051605 "x-goog-request-params" ,
1606- "dashboard.name=dashboard.name/value " ,
1606+ "dashboard.name=name_value " ,
16071607 ) in kw ["metadata" ]
16081608
16091609
@@ -1617,7 +1617,7 @@ async def test_update_dashboard_field_headers_async():
16171617 # a field header. Set these to a non-empty value.
16181618 request = dashboards_service .UpdateDashboardRequest ()
16191619
1620- request .dashboard .name = "dashboard.name/value "
1620+ request .dashboard .name = "name_value "
16211621
16221622 # Mock the actual call within the gRPC stub, and fake the request.
16231623 with mock .patch .object (type (client .transport .update_dashboard ), "__call__" ) as call :
@@ -1633,7 +1633,7 @@ async def test_update_dashboard_field_headers_async():
16331633 _ , _ , kw = call .mock_calls [0 ]
16341634 assert (
16351635 "x-goog-request-params" ,
1636- "dashboard.name=dashboard.name/value " ,
1636+ "dashboard.name=name_value " ,
16371637 ) in kw ["metadata" ]
16381638
16391639
0 commit comments