Skip to content

Commit 766f4c5

Browse files
committed
Fix leftover starlette tests
1 parent afd8cc5 commit 766f4c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/integrations/starlette/test_starlette.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,6 +1244,7 @@ def test_transaction_http_method_default(sentry_init, capture_events):
12441244
"""
12451245
sentry_init(
12461246
traces_sample_rate=1.0,
1247+
auto_enabling_integrations=False, # Make sure that httpx integration is not added, because it adds tracing information to the starlette test clients request.
12471248
integrations=[StarletteIntegration()],
12481249
)
12491250
events = capture_events()
@@ -1269,6 +1270,7 @@ def test_transaction_http_method_default(sentry_init, capture_events):
12691270
def test_transaction_http_method_custom(sentry_init, capture_events):
12701271
sentry_init(
12711272
traces_sample_rate=1.0,
1273+
auto_enabling_integrations=False, # Make sure that httpx integration is not added, because it adds tracing information to the starlette test clients request.
12721274
integrations=[
12731275
StarletteIntegration(
12741276
http_methods_to_capture=(

0 commit comments

Comments
 (0)