@@ -2074,7 +2074,7 @@ def test_streaming_create_message_api_error(
20742074 if span_streaming :
20752075 items = capture_items ("transaction" , "span" )
20762076
2077- with pytest .raises (APIStatusError ), mock .patch .object (
2077+ with pytest .raises (APIStatusError ), mock .patch .object ( # noqa: PT012
20782078 client ._client ,
20792079 "send" ,
20802080 return_value = response ,
@@ -2121,7 +2121,7 @@ def test_streaming_create_message_api_error(
21212121 elif stream_gen_ai_spans :
21222122 items = capture_items ("transaction" , "span" )
21232123
2124- with pytest .raises (APIStatusError ), mock .patch .object (
2124+ with pytest .raises (APIStatusError ), mock .patch .object ( # noqa: PT012
21252125 client ._client ,
21262126 "send" ,
21272127 return_value = response ,
@@ -2169,7 +2169,7 @@ def test_streaming_create_message_api_error(
21692169 else :
21702170 events = capture_events ()
21712171
2172- with pytest .raises (APIStatusError ), mock .patch .object (
2172+ with pytest .raises (APIStatusError ), mock .patch .object ( # noqa: PT012
21732173 client ._client ,
21742174 "send" ,
21752175 return_value = response ,
@@ -3617,7 +3617,7 @@ async def test_streaming_create_message_async_api_error(
36173617 if span_streaming :
36183618 items = capture_items ("transaction" , "span" )
36193619
3620- with pytest .raises (APIStatusError ), mock .patch .object (
3620+ with pytest .raises (APIStatusError ), mock .patch .object ( # noqa: PT012
36213621 client ._client ,
36223622 "send" ,
36233623 return_value = response ,
@@ -3664,7 +3664,7 @@ async def test_streaming_create_message_async_api_error(
36643664 elif stream_gen_ai_spans :
36653665 items = capture_items ("transaction" , "span" )
36663666
3667- with pytest .raises (APIStatusError ), mock .patch .object (
3667+ with pytest .raises (APIStatusError ), mock .patch .object ( # noqa: PT012
36683668 client ._client ,
36693669 "send" ,
36703670 return_value = response ,
@@ -3713,7 +3713,7 @@ async def test_streaming_create_message_async_api_error(
37133713 else :
37143714 events = capture_events ()
37153715
3716- with pytest .raises (APIStatusError ), mock .patch .object (
3716+ with pytest .raises (APIStatusError ), mock .patch .object ( # noqa: PT012
37173717 client ._client ,
37183718 "send" ,
37193719 return_value = response ,
@@ -4206,7 +4206,7 @@ async def test_stream_messages_async_api_error(
42064206 if span_streaming :
42074207 items = capture_items ("transaction" , "span" )
42084208
4209- with pytest .raises (APIStatusError ), mock .patch .object (
4209+ with pytest .raises (APIStatusError ), mock .patch .object ( # noqa: PT012
42104210 client ._client ,
42114211 "send" ,
42124212 return_value = response ,
@@ -4253,7 +4253,7 @@ async def test_stream_messages_async_api_error(
42534253 elif stream_gen_ai_spans :
42544254 items = capture_items ("transaction" , "span" )
42554255
4256- with pytest .raises (APIStatusError ), mock .patch .object (
4256+ with pytest .raises (APIStatusError ), mock .patch .object ( # noqa: PT012
42574257 client ._client ,
42584258 "send" ,
42594259 return_value = response ,
@@ -4299,7 +4299,7 @@ async def test_stream_messages_async_api_error(
42994299 else :
43004300 events = capture_events ()
43014301
4302- with pytest .raises (APIStatusError ), mock .patch .object (
4302+ with pytest .raises (APIStatusError ), mock .patch .object ( # noqa: PT012
43034303 client ._client ,
43044304 "send" ,
43054305 return_value = response ,
0 commit comments