Skip to content

Commit d498362

Browse files
committed
fix test
1 parent 50e27fd commit d498362

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/integrations/django/test_basic.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from sentry_sdk.integrations.django.signals_handlers import _get_receiver_name
3535
from sentry_sdk.integrations.executing import ExecutingIntegration
3636
from sentry_sdk.profiler.utils import get_frame_name
37-
from sentry_sdk.tracing import Span
37+
from sentry_sdk.traces import StreamedSpan
3838
from tests.conftest import unpack_werkzeug_response
3939
from tests.integrations.django.myapp.signals import myapp_custom_signal_silenced
4040
from tests.integrations.django.myapp.wsgi import application
@@ -871,7 +871,9 @@ def get_connection_params(self):
871871
return {}
872872

873873
try:
874-
_set_db_data(Span(), DummyBackend())
874+
_set_db_data(
875+
StreamedSpan(name="name", scope=sentry_sdk.Scope()), DummyBackend()
876+
)
875877
except TypeError:
876878
pytest.fail("A TypeError was raised")
877879

0 commit comments

Comments
 (0)