fix(api): allow single digit version for legacy schema
This commit is contained in:
parent
4ada25a3ff
commit
3d124eba7e
2 changed files with 8 additions and 1 deletions
|
@ -14,6 +14,8 @@ from ...migrations._version import parse_version
|
|||
("3.0.0-beta.10", (3, 0, 0, -1, 10, 0)),
|
||||
("2.5.2", (2, 5, 2, 0, 0, 0)),
|
||||
("3.0.0", (3, 0, 0, 0, 0, 0)),
|
||||
("3.0", (3, 0, 0, 0, 0, 0)),
|
||||
("3", (3, 0, 0, 0, 0, 0)),
|
||||
# fmt: on
|
||||
],
|
||||
)
|
||||
|
@ -35,6 +37,8 @@ def test_parse_version(version: str, expected):
|
|||
("3.0.0", "4.0.0"),
|
||||
("2.5.3", "3.0.0"),
|
||||
("3.0.0", "3.0.0"),
|
||||
("3.0", "3.1"),
|
||||
("3", "4"),
|
||||
# fmt: on
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue