update tests
This commit is contained in:
parent
61ca3c95d0
commit
5a3ca69c1c
|
@ -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",
|
||||||
|
|
|
@ -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", {
|
||||||
|
|
Loading…
Reference in New Issue