MCPcopy Create free account
hub / github.com/conda/constructor / test_version_invalid

Function test_version_invalid

tests/test_briefcase.py:108–116  ·  view source on GitHub ↗
(version_in, caplog)

Source from the content-addressed store, hash-verified

106
107@pytest.mark.parametrize("version_in", ["x", ".", " ", "hello"])
108def test_version_invalid(version_in, caplog):
109 name_actual, version_actual = get_name_version(
110 {"name": "Miniconda3", "version": version_in},
111 )
112 assert name_actual == f"Miniconda3 {version_in}"
113 assert version_actual == "0.0.1"
114 assert caplog.messages == [
115 f"Version {version_in!r} contains no valid version numbers; defaulting to 0.0.1"
116 ]
117
118
119@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

get_name_versionFunction · 0.90

Tested by

no test coverage detected