10000 Removing redundant code in Django tests (#2491) · getsentry/sentry-python@a1bbc9a · GitHub
[go: up one dir, main page]

Skip to content

Commit a1bbc9a

Browse files
authored
Removing redundant code in Django tests (#2491)
1 parent c8154be commit a1bbc9a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tests/integrations/django/test_basic.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -972,14 +972,7 @@ def test_middleware_spans_disabled(sentry_init, client, capture_events):
972972
assert not len(transaction["spans"])
973973

974974

975-
if DJANGO_VERSION >= (1, 10):
976-
EXPECTED_SIGNALS_SPANS = """\
977-
- op="http.server": description=null
978-
- op="event.django": description="django.db.reset_queries"
979-
- op="event.django": description="django.db.close_old_connections"\
980-
"""
981-
else:
982-
EXPECTED_SIGNALS_SPANS = """\
975+
EXPECTED_SIGNALS_SPANS = """\
983976
- op="http.server": description=null
984977
- op="event.django": description="django.db.reset_queries"
985978
- op="event.django": description="django.db.close_old_connections"\

0 commit comments

Comments
 (0)
0