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