@@ -50,10 +50,7 @@ class TestCreateRedactionsIntegration:
5050 @pytest .fixture
5151 def client (self ):
5252 """Create a client with the configured API key."""
53- kwargs = {"api_key" : API_KEY , "timeout" : TIMEOUT }
54- if BASE_URL :
55- kwargs ["base_url" ] = BASE_URL
56- return NutrientClient (** kwargs )
53+ return NutrientClient (api_key = API_KEY , timeout = TIMEOUT )
5754
5855 @pytest .fixture
5956 def sample_pdf_with_sensitive_data (self , tmp_path ):
@@ -120,10 +117,7 @@ class TestOptimizePDFIntegration:
120117 @pytest .fixture
121118 def client (self ):
122119 """Create a client with the configured API key."""
123- kwargs = {"api_key" : API_KEY , "timeout" : TIMEOUT }
124- if BASE_URL :
125- kwargs ["base_url" ] = BASE_URL
126- return NutrientClient (** kwargs )
120+ return NutrientClient (api_key = API_KEY , timeout = TIMEOUT )
127121
128122 @pytest .fixture
129123 def sample_pdf_path (self ):
@@ -185,10 +179,7 @@ class TestPasswordProtectPDFIntegration:
185179 @pytest .fixture
186180 def client (self ):
187181 """Create a client with the configured API key."""
188- kwargs = {"api_key" : API_KEY , "timeout" : TIMEOUT }
189- if BASE_URL :
190- kwargs ["base_url" ] = BASE_URL
191- return NutrientClient (** kwargs )
182+ return NutrientClient (api_key = API_KEY , timeout = TIMEOUT )
192183
193184 @pytest .fixture
194185 def sample_pdf_path (self ):
@@ -253,10 +244,7 @@ class TestSetPDFMetadataIntegration:
253244 @pytest .fixture
254245 def client (self ):
255246 """Create a client with the configured API key."""
256- kwargs = {"api_key" : API_KEY , "timeout" : TIMEOUT }
257- if BASE_URL :
258- kwargs ["base_url" ] = BASE_URL
259- return NutrientClient (** kwargs )
247+ return NutrientClient (api_key = API_KEY , timeout = TIMEOUT )
260248
261249 @pytest .fixture
262250 def sample_pdf_path (self ):
@@ -311,10 +299,7 @@ class TestApplyInstantJSONIntegration:
311299 @pytest .fixture
312300 def client (self ):
313301 """Create a client with the configured API key."""
314- kwargs = {"api_key" : API_KEY , "timeout" : TIMEOUT }
315- if BASE_URL :
316- kwargs ["base_url" ] = BASE_URL
317- return NutrientClient (** kwargs )
302+ return NutrientClient (api_key = API_KEY , timeout = TIMEOUT )
318303
319304 @pytest .fixture
320305 def sample_pdf_path (self ):
@@ -385,10 +370,7 @@ class TestApplyXFDFIntegration:
385370 @pytest .fixture
386371 def client (self ):
387372 """Create a client with the configured API key."""
388- kwargs = {"api_key" : API_KEY , "timeout" : TIMEOUT }
389- if BASE_URL :
390- kwargs ["base_url" ] = BASE_URL
391- return NutrientClient (** kwargs )
373+ return NutrientClient (api_key = API_KEY , timeout = TIMEOUT )
392374
393375 @pytest .fixture
394376 def sample_pdf_path (self ):
0 commit comments