File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments