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