MCPcopy Index your code
hub / github.com/saltstack/salt / test_string_old_version

Function test_string_old_version

tests/pytests/unit/test_version.py:218–228  ·  view source on GitHub ↗

Validate string property method using old versioning scheme alongside minor version

()

Source from the content-addressed store, hash-verified

216
217
218def test_string_old_version():
219 """
220 Validate string property method
221 using old versioning scheme alongside
222 minor version
223 """
224 maj_ver = "2019"
225 min_ver = "2"
226 ver = SaltStackVersion(major=maj_ver, minor=min_ver)
227 assert ver.bugfix == 0
228 assert ver.string == f"{maj_ver}.{min_ver}.0"
229
230
231@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

SaltStackVersionClass · 0.90

Tested by

no test coverage detected