MCPcopy Create free account
hub / github.com/bloomberg/pystack / test_version_detection

Function test_version_detection

tests/unit/test_process.py:95–104  ·  view source on GitHub ↗
(text, version)

Source from the content-addressed store, hash-verified

93 ],
94)
95def test_version_detection(text, version):
96 # GIVEN / WHEN
97 result = VERSION_REGEXP.match(text)
98
99 # THEN
100 assert result
101
102 major, minor = version
103 assert int(result.group("major")) == major
104 assert int(result.group("minor")) == minor
105
106
107def test_get_python_version_for_process_fallback_bss():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected