Skip to content

Commit

Permalink
test(api): improve unit test of get_dependencies endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent-laporte-pro committed Sep 4, 2023
1 parent 0424810 commit 5424c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/core/test_version_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_get_dependencies(self) -> None:
assert "fastapi" in dependencies
assert all(
# match at least one number. eg: "pywin32 == 306"
re.fullmatch(r"\d+(?:\.\d+)*", ver)
re.fullmatch(r"\d+(?:\.\d+)*(?:\.post\d+)?", ver)
for ver in dependencies.values()
)

Expand Down

0 comments on commit 5424c4c

Please sign in to comment.