Fix test_parse_version_edge_cases: parse_version returns actual length, not padded tuple
Test Suite / test (push) Canceled after 0s
Test Suite / test (push) Canceled after 0s
This commit is contained in:
1 parent
7518405fcd
commit
5d7e497a10
1 file changed
+2
-2
@@ -87,11 +87,11 @@ class TestPluginUtilities:
|
||||
def test_parse_version_edge_cases(self):
|
||||
"""Test version parsing with invalid input."""
|
||||
from plugin_manager import parse_version
|
||||
|
||||
|
||||
# Invalid input should return zero tuple
|
||||
assert parse_version("invalid") == (0, 0, 0)
|
||||
assert parse_version("") == (0, 0, 0)
|
||||
assert parse_version("1.2") == (1, 2, 0) # Missing patch version
|
||||
assert parse_version("1.2") == (1, 2) # Returns actual parsed length, no padding
|
||||
|
||||
|
||||
class TestPluginManager:
|
||||
|
||||
Reference in new issue
Block a user