@@ -71,7 +71,9 @@ def request_timeout() -> int:
7171
7272@pytest .fixture
7373async def thick_client (request_timeout : int ) -> AsyncIterable [FakeThickClient ]:
74- async with FakeThickClient (total_retry_interval = request_timeout ) as client :
74+ async with FakeThickClient (
75+ total_retry_interval = request_timeout , tracing_settings = None
76+ ) as client :
7577 yield client
7678
7779
@@ -95,7 +97,9 @@ async def test_retry_on_errors(
9597 test_url : AnyHttpUrl ,
9698 caplog_info_level : pytest .LogCaptureFixture ,
9799) -> None :
98- client = FakeThickClient (total_retry_interval = request_timeout )
100+ client = FakeThickClient (
101+ total_retry_interval = request_timeout , tracing_settings = None
102+ )
99103
100104 with pytest .raises (ClientHttpError ):
101105 await client .get_provided_url (test_url )
@@ -119,7 +123,7 @@ async def raises_request_error(self) -> Response:
119123 request = Request (method = "GET" , url = test_url ),
120124 )
121125
122- client = ATestClient (total_retry_interval = request_timeout )
126+ client = ATestClient (total_retry_interval = request_timeout , tracing_settings = None )
123127
124128 with pytest .raises (ClientHttpError ):
125129 await client .raises_request_error ()
@@ -145,7 +149,7 @@ async def raises_http_error(self) -> Response:
145149 msg = "mock_http_error"
146150 raise HTTPError (msg )
147151
148- client = ATestClient (total_retry_interval = request_timeout )
152+ client = ATestClient (total_retry_interval = request_timeout , tracing_settings = None )
149153
150154 with pytest .raises (ClientHttpError ):
151155 await client .raises_http_error ()
@@ -159,21 +163,25 @@ async def public_method_ok(self) -> Response: # type: ignore
159163 """this method will be ok even if no code is used"""
160164
161165 # OK
162- OKTestClient (total_retry_interval = request_timeout )
166+ OKTestClient (total_retry_interval = request_timeout , tracing_settings = None )
163167
164168 class FailWrongAnnotationTestClient (BaseThinClient ):
165169 async def public_method_wrong_annotation (self ) -> None :
166170 """this method will raise an error"""
167171
168172 with pytest .raises (AssertionError , match = "should return an instance" ):
169- FailWrongAnnotationTestClient (total_retry_interval = request_timeout )
173+ FailWrongAnnotationTestClient (
174+ total_retry_interval = request_timeout , tracing_settings = None
175+ )
170176
171177 class FailNoAnnotationTestClient (BaseThinClient ):
172178 async def public_method_no_annotation (self ):
173179 """this method will raise an error"""
174180
175181 with pytest .raises (AssertionError , match = "should return an instance" ):
176- FailNoAnnotationTestClient (total_retry_interval = request_timeout )
182+ FailNoAnnotationTestClient (
183+ total_retry_interval = request_timeout , tracing_settings = None
184+ )
177185
178186
179187async def test_expect_state_decorator (
@@ -197,7 +205,9 @@ async def get_wrong_state(self) -> Response:
197205 respx_mock .get (url_get_200_ok ).mock (return_value = Response (codes .OK ))
198206 respx_mock .get (get_wrong_state ).mock (return_value = Response (codes .OK ))
199207
200- test_client = ATestClient (total_retry_interval = request_timeout )
208+ test_client = ATestClient (
209+ total_retry_interval = request_timeout , tracing_settings = None
210+ )
201211
202212 # OK
203213 response = await test_client .get_200_ok ()
@@ -218,7 +228,9 @@ async def test_retry_timeout_overwrite(
218228 request_timeout : int ,
219229 caplog_info_level : pytest .LogCaptureFixture ,
220230) -> None :
221- client = FakeThickClient (total_retry_interval = request_timeout )
231+ client = FakeThickClient (
232+ total_retry_interval = request_timeout , tracing_settings = None
233+ )
222234
223235 caplog_info_level .clear ()
224236 start = arrow .utcnow ()
0 commit comments