Increase maximum acceptable version length in regex test for contracts.

pull/2452/head
Kieran Prasch 2020-12-03 16:48:04 -08:00
parent 5972896510
commit e8370513f8
1 changed files with 2 additions and 2 deletions

View File

@ -39,8 +39,8 @@ def test_devdoc_regex_pattern(full_match):
# Max Size
numbers_only = re.sub("[^0-9]", "", full_match)
# I mean really... who has a version with more than 6 numbers (v99.99.99)
assert len(numbers_only) <= 10, 'Version string is too long: "{version_string}"'
# I mean really... who has a version with more than 11 numbers (v9999.9999.9999)
assert len(numbers_only) <= 12, 'Version string is too long: "{version_string}"'
# "v" specifier
version_string = full_match[1:-1]