Skip to content

Commit

Permalink
chore: add context to assert
Browse files Browse the repository at this point in the history
  • Loading branch information
gg-mmill committed Dec 5, 2024
1 parent cc18eaf commit 8bb3b15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ggshield/verticals/secret/extended_match.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ def from_match(
lines_with_secret = lines[span.line_index_start : span.line_index_end + 1]

match_split_lines = match.match.splitlines()
assert len(match_split_lines) == len(lines_with_secret)
assert len(match_split_lines) == len(lines_with_secret), (
match.match,
lines_with_secret,
)
return cls(
match=match.match,
index_start=match.index_start,
Expand Down

0 comments on commit 8bb3b15

Please sign in to comment.