Skip to content

Commit

Permalink
Removing redundant code in Django tests (#2491)
Browse files Browse the repository at this point in the history
  • Loading branch information
vagi8 authored Nov 8, 2023
1 parent c8154be commit a1bbc9a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/integrations/django/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,14 +972,7 @@ def test_middleware_spans_disabled(sentry_init, client, capture_events):
assert not len(transaction["spans"])


if DJANGO_VERSION >= (1, 10):
EXPECTED_SIGNALS_SPANS = """\
- op="http.server": description=null
- op="event.django": description="django.db.reset_queries"
- op="event.django": description="django.db.close_old_connections"\
"""
else:
EXPECTED_SIGNALS_SPANS = """\
EXPECTED_SIGNALS_SPANS = """\
- op="http.server": description=null
- op="event.django": description="django.db.reset_queries"
- op="event.django": description="django.db.close_old_connections"\
Expand Down

0 comments on commit a1bbc9a

Please sign in to comment.