diff --git a/tests/test_go.py b/tests/test_go.py index 9b9b348..9151de4 100644 --- a/tests/test_go.py +++ b/tests/test_go.py @@ -19,10 +19,12 @@ pytestmark = [ async def test_go(get_version): - assert await get_version("one version", { + ver = await get_version("one version", { "source": "go", "go": "github.com/caddyserver/replace-response", - }) == "v0.0.0-20231221003037-a85d4ddc11d6" + }) + + assert ver.startswith("v0.0.0-") assert await get_version("multiple version", { "source": "go", diff --git a/tests/test_pypi.py b/tests/test_pypi.py index 4ae01a8..b5531a7 100644 --- a/tests/test_pypi.py +++ b/tests/test_pypi.py @@ -25,7 +25,7 @@ async def test_pypi_list(get_version): assert await get_version("urllib3", { "source": "pypi", "include_regex": "^1\\..*", - }) == "1.26.18" + }) == "1.26.19" async def test_pypi_invalid_version(get_version): await get_version("sympy", {