MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / validate_version

Function validate_version

tests/conftest.py:48–51  ·  view source on GitHub ↗
(expected, found)

Source from the content-addressed store, hash-verified

46
47
48def validate_version(expected, found):
49 version_depth = expected.count('.') + 1
50 found = '.'.join(found.split('.')[:version_depth])
51 return found == expected
52
53
54@pytest.fixture(scope="session", autouse=True)

Callers 1

check_environmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected