mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +00:00
Fix 'duplicated deps' test case for python 2.6
This commit is contained in:
parent
c3761598ce
commit
def91ce48a
@ -48,7 +48,7 @@ class TestPipreqs(unittest.TestCase):
|
|||||||
imports = pipreqs.get_all_imports(self.project_with_duplicated_deps)
|
imports = pipreqs.get_all_imports(self.project_with_duplicated_deps)
|
||||||
pkgs = pipreqs.get_pkg_names(imports)
|
pkgs = pipreqs.get_pkg_names(imports)
|
||||||
self.assertEqual(len(pkgs), 1)
|
self.assertEqual(len(pkgs), 1)
|
||||||
self.assertIn("pymongo", pkgs)
|
self.assertTrue("pymongo" in pkgs)
|
||||||
|
|
||||||
def test_invalid_python(self):
|
def test_invalid_python(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user