Skip to content

Commit 2112384

Browse files
committed
More cleanup
1 parent ba91010 commit 2112384

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

sentry_sdk/integrations/feature_flags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
def add_feature_flag(flag, result):
55
# type: (str, bool) -> None
66
"""
7-
Records a flag and its value to be sent on subsequent error events by FeatureFlagsIntegration.
7+
Records a flag and its value to be sent on subsequent error events.
88
We recommend you do this on flag evaluations. Flags are buffered per Sentry scope.
99
"""
1010
flags = sentry_sdk.get_current_scope().flags

tests/integrations/feature_flags/test_feature_flags.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@
44
import pytest
55

66
import sentry_sdk
7-
from sentry_sdk.integrations.feature_flags import (
8-
FeatureFlagsIntegration,
9-
add_feature_flag,
10-
)
7+
from sentry_sdk.integrations.feature_flags import add_feature_flag
118

129

1310
def test_featureflags_integration(sentry_init, capture_events, uninstall_integration):
14-
uninstall_integration(FeatureFlagsIntegration.identifier)
15-
sentry_init(integrations=[FeatureFlagsIntegration()])
11+
sentry_init()
1612

1713
add_feature_flag("hello", False)
1814
add_feature_flag("world", True)
@@ -34,8 +30,7 @@ def test_featureflags_integration(sentry_init, capture_events, uninstall_integra
3430
def test_featureflags_integration_threaded(
3531
sentry_init, capture_events, uninstall_integration
3632
):
37-
uninstall_integration(FeatureFlagsIntegration.identifier)
38-
sentry_init(integrations=[FeatureFlagsIntegration()])
33+
sentry_init()
3934
events = capture_events()
4035

4136
# Capture an eval before we split isolation scopes.
@@ -86,8 +81,7 @@ def test_featureflags_integration_asyncio(
8681
):
8782
asyncio = pytest.importorskip("asyncio")
8883

89-
uninstall_integration(FeatureFlagsIntegration.identifier)
90-
sentry_init(integrations=[FeatureFlagsIntegration()])
84+
sentry_init()
9185
events = capture_events()
9286

9387
# Capture an eval before we split isolation scopes.

0 commit comments

Comments
 (0)