@@ -67,16 +67,19 @@ def test_ctor_defaults(self, default_mock):
6767 def test_ctor_explicit (self ):
6868 credentials = _make_credentials ()
6969 client_info = mock .Mock ()
70+ client_options = mock .Mock ()
7071 client = self ._make_one (
7172 project = self .PROJECT ,
7273 credentials = credentials ,
7374 service = self .SERVICE ,
7475 version = self .VERSION ,
7576 client_info = client_info ,
77+ client_options = client_options ,
7678 )
7779 self .assertEqual (client .service , self .SERVICE )
7880 self .assertEqual (client .version , self .VERSION )
7981 self .assertIs (client ._client_info , client_info )
82+ self .assertIs (client ._client_options , client_options )
8083
8184 def test_report_errors_api_already (self ):
8285 credentials = _make_credentials ()
@@ -87,11 +90,13 @@ def test_report_errors_api_already(self):
8790 def test_report_errors_api_wo_grpc (self ):
8891 credentials = _make_credentials ()
8992 client_info = mock .Mock ()
93+ client_options = mock .Mock ()
9094 http = mock .Mock ()
9195 client = self ._make_one (
9296 project = self .PROJECT ,
9397 credentials = credentials ,
9498 client_info = client_info ,
99+ client_options = client_options ,
95100 _http = http ,
96101 _use_grpc = False ,
97102 )
@@ -103,7 +108,9 @@ def test_report_errors_api_wo_grpc(self):
103108 api = client .report_errors_api
104109
105110 self .assertIs (api , patched .return_value )
106- patched .assert_called_once_with (self .PROJECT , credentials , http , client_info )
111+ patched .assert_called_once_with (
112+ self .PROJECT , credentials , http , client_info , client_options
113+ )
107114
108115 def test_report_errors_api_w_grpc (self ):
109116 credentials = _make_credentials ()
0 commit comments