Ejemplo n.º 1
0
 def test_sets_correct_variables(self):
     obj = candidate.InstallationCandidate(
         "A", "1.0.0", "https://somewhere.com/path/A-1.0.0.tar.gz"
     )
     assert obj.project == "A"
     assert obj.version == parse_version("1.0.0")
     assert obj.link == "https://somewhere.com/path/A-1.0.0.tar.gz"
Ejemplo n.º 2
0
 def test_sets_correct_variables(self) -> None:
     obj = candidate.InstallationCandidate(
         "A", "1.0.0", Link("https://somewhere.com/path/A-1.0.0.tar.gz")
     )
     assert obj.name == "A"
     assert obj.version == parse_version("1.0.0")
     assert obj.link.url == "https://somewhere.com/path/A-1.0.0.tar.gz"
Ejemplo n.º 3
0
 def test_sets_the_right_key(self):
     obj = candidate.InstallationCandidate(
         "A", "1.0.0", "https://somewhere.com/path/A-1.0.0.tar.gz"
     )
     assert obj._compare_key == (obj.project, obj.version, obj.link)