From e391f781f8b3350619ef139d677d728b270a5b8f Mon Sep 17 00:00:00 2001 From: Erik Skultety Date: Tue, 16 Jul 2024 14:56:27 +0200 Subject: [PATCH] tests: unit: gomod: test_get_gomod_version: Add a case for micro version We're testing minor version parsing, but not micro version parsing. Signed-off-by: Erik Skultety --- tests/unit/package_managers/test_gomod.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/package_managers/test_gomod.py b/tests/unit/package_managers/test_gomod.py index e11a2dcc8..1cae29f2a 100644 --- a/tests/unit/package_managers/test_gomod.py +++ b/tests/unit/package_managers/test_gomod.py @@ -1928,6 +1928,7 @@ def test_fetch_tags_fail(repo_remote_with_tag: tuple[RootedPath, RootedPath]) -> "go_mod_file, go_mod_version, go_toolchain_version", [ pytest.param("go 1.21", "1.21", None, id="go_minor"), + pytest.param("go 1.21.0", "1.21.0", None, id="go_micro"), pytest.param(" go 1.21.4 ", "1.21.4", None, id="go_spaces"), pytest.param(" toolchain go1.21.4 ", None, "1.21.4", id="toolchain_spaces"), pytest.param("go 1.21\ntoolchain go1.21.6", "1.21", "1.21.6", id="go_and_toolchain"),