From a1bbc9a522e52aff6d4193be490af500085ff1e8 Mon Sep 17 00:00:00 2001 From: Vageeshan Mankala Date: Wed, 8 Nov 2023 05:43:27 -0800 Subject: [PATCH] Removing redundant code in Django tests (#2491) --- tests/integrations/django/test_basic.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/integrations/django/test_basic.py b/tests/integrations/django/test_basic.py index 08fdf37eaf..a323d8c922 100644 --- a/tests/integrations/django/test_basic.py +++ b/tests/integrations/django/test_basic.py @@ -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"\