Exemple #1
0
 def test_ignore_urls(self):
     assert get_package_versions(["https://www.google.com"]) == {}
Exemple #2
0
 def test_ignore_includes(self):
     assert get_package_versions(["-r example.txt"]) == {}
Exemple #3
0
 def test_ignore_comments(self):
     assert get_package_versions(["# Comment"]) == {}
Exemple #4
0
 def test_ignore_empty(self):
     assert get_package_versions([""]) == {}
Exemple #5
0
 def test_version(self):
     assert get_package_versions(["package1==1.0", "package2==1.1"]) == {
         "package1": "1.0",
         "package2": "1.1",
     }
 def test_version(self):
     assert get_package_versions(['package1==1.0', 'package2==1.1']) == {'package1': '1.0', 'package2': '1.1'}