예제 #1
0
 def test_parses_legacy_requirement_invalid(self, requirement):
     with pytest.raises(ValueError):
         pypi._parse_legacy_requirement(requirement)
예제 #2
0
 def test_parses_legacy_requirement_invalid(self, requirement):
     with pytest.raises(ValueError):
         pypi._parse_legacy_requirement(requirement)
예제 #3
0
 def test_parses_legacy_requirement_valid(self, requirement, expected):
     parsed = pypi._parse_legacy_requirement(requirement)
     assert parsed == expected
예제 #4
0
 def test_parses_legacy_requirement_valid(self, requirement, expected):
     parsed = pypi._parse_legacy_requirement(requirement)
     assert parsed == expected