Skip to content

Commit 9e3f340

Browse files
committed
fix: copy
1 parent 1cc0ed6 commit 9e3f340

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎posthog/test/test_exception_capture.py‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -489,14 +489,10 @@ def trigger_error():
489489
assert "ZeroDivisionError" in output
490490
assert "code_variables" in output
491491

492-
# Short string should appear as-is
493492
assert "'short_value': 'I am short'" in output
494493

495-
# Long strings should be replaced with the too-long constant
496494
assert "$$_posthog_value_too_long_$$" in output
497495

498-
# Long string whose content contains "password" still gets the too-long constant
499-
# (length check fires before pattern matching)
500496
assert "'long_blob': '$$_posthog_value_too_long_$$'" in output
501497

502498

@@ -542,11 +538,9 @@ def trigger_error():
542538
assert "ZeroDivisionError" in output
543539
assert "code_variables" in output
544540

545-
# Short values survive
546541
assert "short_val" in output
547542
assert "ok" in output
548543

549-
# Long values inside dicts get replaced
550544
assert "$$_posthog_value_too_long_$$" in output
551545
assert "y" * 1000 not in output
552546
assert "z" * 1000 not in output

0 commit comments

Comments
 (0)