Skip to content

Commit a4082c8

Browse files
committed
Update tests to reflect longer hashes
1 parent c87cdef commit a4082c8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_identifiers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def test_git_hash_valid(self):
3131
cases = [
3232
("abc1234", "abc1234"),
3333
("a" * 40, "a" * 40),
34+
("a" * 60, "a" * 60),
3435
("aBcDeF1", "aBcDeF1"),
3536
("deadbeef1234", "deadbeef1234"),
3637
(" abc1234 ", "abc1234"), # strip_whitespace=True strips before validation
@@ -44,7 +45,7 @@ def test_git_hash_invalid(self):
4445
"""Invalid git hashes raise ValidationError"""
4546
cases = [
4647
"abc123", # too short (6 chars)
47-
"a" * 41, # too long (41 chars)
48+
"a" * 61, # too long (61 chars)
4849
"xyz12345", # non-hex characters
4950
]
5051
for git_hash in cases:

0 commit comments

Comments
 (0)