88
99
1010def test_list_destinations (
11- httpx_mock , client : UnstructuredClient , platform_api_url : str
11+ httpx_mock , platform_client : UnstructuredClient , platform_api_url : str
1212):
1313 url = f"{ platform_api_url } /api/v1/destinations/"
1414
@@ -34,7 +34,7 @@ def test_list_destinations(
3434 url = url ,
3535 )
3636
37- destinations_response = client .destinations .list_destinations (
37+ destinations_response = platform_client .destinations .list_destinations (
3838 request = operations .ListDestinationsRequest ()
3939 )
4040 assert destinations_response .status_code == 200
@@ -57,7 +57,7 @@ def test_list_destinations(
5757
5858
5959def test_list_destinations_empty (
60- httpx_mock , client : UnstructuredClient , platform_api_url : str
60+ httpx_mock , platform_client : UnstructuredClient , platform_api_url : str
6161):
6262 url = f"{ platform_api_url } /api/v1/destinations/"
6363
@@ -68,7 +68,7 @@ def test_list_destinations_empty(
6868 url = url ,
6969 )
7070
71- destinations_response = client .destinations .list_destinations (
71+ destinations_response = platform_client .destinations .list_destinations (
7272 request = operations .ListDestinationsRequest ()
7373 )
7474 assert destinations_response .status_code == 200
@@ -89,7 +89,7 @@ def test_list_destinations_empty(
8989@pytest .mark .httpx_mock (can_send_already_matched_responses = True ) # in case of retries
9090def test_list_destinations_5xx_code (
9191 httpx_mock ,
92- client : UnstructuredClient ,
92+ platform_client : UnstructuredClient ,
9393 platform_api_url : str ,
9494 error_status_code : int ,
9595):
@@ -103,7 +103,7 @@ def test_list_destinations_5xx_code(
103103 )
104104
105105 with pytest .raises (SDKError ) as excinfo :
106- client .destinations .list_destinations (
106+ platform_client .destinations .list_destinations (
107107 request = operations .ListDestinationsRequest ()
108108 )
109109 requests = httpx_mock .get_requests ()
@@ -112,7 +112,7 @@ def test_list_destinations_5xx_code(
112112 assert excinfo .value .status_code == error_status_code
113113
114114
115- def test_get_destination (httpx_mock , client : UnstructuredClient , platform_api_url : str ):
115+ def test_get_destination (httpx_mock , platform_client : UnstructuredClient , platform_api_url : str ):
116116 dest_id = "0c363dec-3c70-45ee-8041-481044a6e1cc"
117117 url = f"{ platform_api_url } /api/v1/destinations/{ dest_id } "
118118
@@ -136,7 +136,7 @@ def test_get_destination(httpx_mock, client: UnstructuredClient, platform_api_ur
136136 url = url ,
137137 )
138138
139- destination_response = client .destinations .get_destination (
139+ destination_response = platform_client .destinations .get_destination (
140140 request = operations .GetDestinationRequest (destination_id = dest_id )
141141 )
142142 assert destination_response .status_code == 200
@@ -158,7 +158,7 @@ def test_get_destination(httpx_mock, client: UnstructuredClient, platform_api_ur
158158
159159
160160def test_get_destination_not_found (
161- httpx_mock , client : UnstructuredClient , platform_api_url : str
161+ httpx_mock , platform_client : UnstructuredClient , platform_api_url : str
162162):
163163 dest_id = "0c363dec-3c70-45ee-8041-481044a6e1cc"
164164 url = f"{ platform_api_url } /api/v1/destinations/{ dest_id } "
@@ -171,7 +171,7 @@ def test_get_destination_not_found(
171171 )
172172
173173 with pytest .raises (SDKError ) as excinfo :
174- client .destinations .get_destination (
174+ platform_client .destinations .get_destination (
175175 request = operations .GetDestinationRequest (destination_id = dest_id )
176176 )
177177
@@ -182,7 +182,7 @@ def test_get_destination_not_found(
182182
183183
184184def test_create_destination (
185- httpx_mock , client : UnstructuredClient , platform_api_url : str
185+ httpx_mock , platform_client : UnstructuredClient , platform_api_url : str
186186):
187187 url = f"{ platform_api_url } /api/v1/destinations/"
188188
@@ -204,7 +204,7 @@ def test_create_destination(
204204 url = url ,
205205 )
206206
207- destination_response = client .destinations .create_destination (
207+ destination_response = platform_client .destinations .create_destination (
208208 request = operations .CreateDestinationRequest (
209209 create_destination_connector = shared .CreateDestinationConnector (
210210 name = "test_destination_name" ,
@@ -236,7 +236,7 @@ def test_create_destination(
236236
237237
238238def test_update_destination (
239- httpx_mock , client : UnstructuredClient , platform_api_url : str
239+ httpx_mock , platform_client : UnstructuredClient , platform_api_url : str
240240):
241241 dest_id = "b25d4161-77a0-4e08-b65e-86f398ce15ad"
242242 url = f"{ platform_api_url } /api/v1/destinations/{ dest_id } "
@@ -259,7 +259,7 @@ def test_update_destination(
259259 url = url ,
260260 )
261261
262- destination_update_response = client .destinations .update_destination (
262+ destination_update_response = platform_client .destinations .update_destination (
263263 request = operations .UpdateDestinationRequest (
264264 destination_id = dest_id ,
265265 update_destination_connector = shared .UpdateDestinationConnector (
@@ -291,7 +291,7 @@ def test_update_destination(
291291
292292
293293def test_delete_destination (
294- httpx_mock , client : UnstructuredClient , platform_api_url : str
294+ httpx_mock , platform_client : UnstructuredClient , platform_api_url : str
295295):
296296 dest_id = "b25d4161-77a0-4e08-b65e-86f398ce15ad"
297297 url = f"{ platform_api_url } /api/v1/destinations/{ dest_id } "
@@ -304,7 +304,7 @@ def test_delete_destination(
304304 url = url ,
305305 )
306306
307- response = client .destinations .delete_destination (
307+ response = platform_client .destinations .delete_destination (
308308 request = operations .DeleteDestinationRequest (destination_id = dest_id )
309309 )
310310 assert response .status_code == 200
0 commit comments