From 6b651d0c68eafb8b6af0486a88b1009bfe3eb2ab Mon Sep 17 00:00:00 2001 From: Vadim Kravcenko Date: Wed, 22 Apr 2015 20:32:05 +0200 Subject: [PATCH] fix test --- tests/test_pipreqs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_pipreqs.py b/tests/test_pipreqs.py index 42442b6..f6bfe5b 100755 --- a/tests/test_pipreqs.py +++ b/tests/test_pipreqs.py @@ -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")