MCPcopy Index your code
hub / github.com/docker/docker-py / requires_api_version

Function requires_api_version

tests/helpers.py:63–71  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

61 return fn
62
63def requires_api_version(version):
64 test_version = os.environ.get(
65 'DOCKER_TEST_API_VERSION', docker.constants.DEFAULT_DOCKER_API_VERSION
66 )
67
68 return pytest.mark.skipif(
69 docker.utils.version_lt(test_version, version),
70 reason=f"API version is too low (< {version})"
71 )
72
73
74def requires_experimental(until=None):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected