mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +00:00
fix test
This commit is contained in:
parent
781f12c048
commit
6b651d0c68
@ -22,7 +22,8 @@ class TestPipreqs(unittest.TestCase):
|
||||
path = os.path.join(os.path.dirname(__file__),"_data")
|
||||
imports = pipreqs.get_all_imports(path)
|
||||
self.assertEqual(len(imports),4, "Incorrect Imports array length")
|
||||
self.assertEqual(imports, self.modules, "Imports array is wrong")
|
||||
for item in imports:
|
||||
self.assertTrue(item in self.modules, "Import is missing")
|
||||
|
||||
def test_get_imports_info(self):
|
||||
path = os.path.join(os.path.dirname(__file__),"_data")
|
||||
|
Loading…
x
Reference in New Issue
Block a user