Skip to content

Commit 3b3dac4

Browse files
committed
fix tests
1 parent f25e4f5 commit 3b3dac4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integrations/django/test_basic.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,6 +1247,7 @@ def test_ensures_spotlight_middleware_when_spotlight_is_enabled(sentry_init, set
12471247
Test that ensures if Spotlight is enabled, relevant SpotlightMiddleware
12481248
is added to middleware list in settings.
12491249
"""
1250+
settings.DEBUG = True
12501251
original_middleware = frozenset(settings.MIDDLEWARE)
12511252

12521253
sentry_init(integrations=[DjangoIntegration()], spotlight=True)
@@ -1263,6 +1264,7 @@ def test_ensures_no_spotlight_middleware_when_env_killswitch_is_false(
12631264
Test that ensures if Spotlight is enabled, but is set to a falsy value
12641265
the relevant SpotlightMiddleware is NOT added to middleware list in settings.
12651266
"""
1267+
settings.DEBUG = True
12661268
monkeypatch.setenv("SENTRY_SPOTLIGHT_ON_ERROR", "no")
12671269

12681270
original_middleware = frozenset(settings.MIDDLEWARE)
@@ -1281,6 +1283,8 @@ def test_ensures_no_spotlight_middleware_when_no_spotlight(
12811283
Test that ensures if Spotlight is not enabled
12821284
the relevant SpotlightMiddleware is NOT added to middleware list in settings.
12831285
"""
1286+
settings.DEBUG = True
1287+
12841288
# We should NOT have the middleware even if the env var is truthy if Spotlight is off
12851289
monkeypatch.setenv("SENTRY_SPOTLIGHT_ON_ERROR", "1")
12861290

0 commit comments

Comments
 (0)