Skip to content

Commit

Permalink
Add test to show that there is now no way to opt out of sending PII t…
Browse files Browse the repository at this point in the history
…o spotlight.
  • Loading branch information
antonpirker committed Nov 21, 2024
1 parent 15cf625 commit de7f398
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,13 @@ def test_should_send_default_pii_true_without_dsn_and_spotlight(sentry_init):
assert should_send_default_pii() is True


def test_should_send_default_pii_false_without_dsn_and_spotlight(sentry_init):
sentry_init(spotlight=True, send_default_pii=False)

# There is now now way to opt out of sending PII to spotlight
assert should_send_default_pii() is True


def test_set_tags():
scope = Scope()
scope.set_tags({"tag1": "value1", "tag2": "value2"})
Expand Down

0 comments on commit de7f398

Please sign in to comment.