Skip to content

Commit

Permalink
tests: unit: gomod: test_get_gomod_version: Add a case for micro version
Browse files Browse the repository at this point in the history
We're testing minor version parsing, but not micro version parsing.

Signed-off-by: Erik Skultety <[email protected]>
  • Loading branch information
eskultety committed Jul 22, 2024
1 parent 0424eb5 commit e391f78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/package_managers/test_gomod.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit e391f78

Please sign in to comment.