We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c87cdef commit a4082c8Copy full SHA for a4082c8
1 file changed
tests/test_identifiers.py
@@ -31,6 +31,7 @@ def test_git_hash_valid(self):
31
cases = [
32
("abc1234", "abc1234"),
33
("a" * 40, "a" * 40),
34
+ ("a" * 60, "a" * 60),
35
("aBcDeF1", "aBcDeF1"),
36
("deadbeef1234", "deadbeef1234"),
37
(" abc1234 ", "abc1234"), # strip_whitespace=True strips before validation
@@ -44,7 +45,7 @@ def test_git_hash_invalid(self):
44
45
"""Invalid git hashes raise ValidationError"""
46
47
"abc123", # too short (6 chars)
- "a" * 41, # too long (41 chars)
48
+ "a" * 61, # too long (61 chars)
49
"xyz12345", # non-hex characters
50
]
51
for git_hash in cases:
0 commit comments