MCPcopy Index your code
hub / github.com/pex-tool/pex / assert_python_requirement_applies

Function assert_python_requirement_applies

tests/test_targets.py:95–104  ·  view source on GitHub ↗
(
    expected_result,  # type: bool
    target,  # type: Target
    python_requirement,  # type: str
    source=None,  # type: Optional[Requirement]
)

Source from the content-addressed store, hash-verified

93
94
95def assert_python_requirement_applies(
96 expected_result, # type: bool
97 target, # type: Target
98 python_requirement, # type: str
99 source=None, # type: Optional[Requirement]
100):
101 # type: (...) -> None
102 assert expected_result == target.requires_python_applies(
103 SpecifierSet(python_requirement), source=source or Requirement.parse("foo")
104 )
105
106
107def test_requires_python_current():

Callers 1

assert_requires_pythonFunction · 0.85

Calls 2

parseMethod · 0.45

Tested by

no test coverage detected