Skip to content

Commit de7f398

Browse files
committed
Add test to show that there is now no way to opt out of sending PII to spotlight.
1 parent 15cf625 commit de7f398

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_scope.py

+7
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,13 @@ def test_should_send_default_pii_true_without_dsn_and_spotlight(sentry_init):
829829
assert should_send_default_pii() is True
830830

831831

832+
def test_should_send_default_pii_false_without_dsn_and_spotlight(sentry_init):
833+
sentry_init(spotlight=True, send_default_pii=False)
834+
835+
# There is now now way to opt out of sending PII to spotlight
836+
assert should_send_default_pii() is True
837+
838+
832839
def test_set_tags():
833840
scope = Scope()
834841
scope.set_tags({"tag1": "value1", "tag2": "value2"})

0 commit comments

Comments
 (0)