update tests

This commit is contained in:
lilydjwg 2024-07-14 16:40:25 +08:00
parent 61ca3c95d0
commit 5a3ca69c1c
2 changed files with 5 additions and 3 deletions

View File

@ -19,10 +19,12 @@ pytestmark = [
async def test_go(get_version): async def test_go(get_version):
assert await get_version("one version", { ver = await get_version("one version", {
"source": "go", "source": "go",
"go": "github.com/caddyserver/replace-response", "go": "github.com/caddyserver/replace-response",
}) == "v0.0.0-20231221003037-a85d4ddc11d6" })
assert ver.startswith("v0.0.0-")
assert await get_version("multiple version", { assert await get_version("multiple version", {
"source": "go", "source": "go",

View File

@ -25,7 +25,7 @@ async def test_pypi_list(get_version):
assert await get_version("urllib3", { assert await get_version("urllib3", {
"source": "pypi", "source": "pypi",
"include_regex": "^1\\..*", "include_regex": "^1\\..*",
}) == "1.26.18" }) == "1.26.19"
async def test_pypi_invalid_version(get_version): async def test_pypi_invalid_version(get_version):
await get_version("sympy", { await get_version("sympy", {