mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +00:00
add test for get_pkg_names change
This commit is contained in:
parent
712879a7be
commit
4571740919
@ -69,6 +69,12 @@ class TestPipreqs(unittest.TestCase):
|
||||
item['name'].lower() in self.modules,
|
||||
"Import item appears to be missing " + item['name'])
|
||||
|
||||
def test_get_pkg_names(self):
|
||||
pkgs = ['jury', 'Japan', 'camel', 'Caroline']
|
||||
actual_output = pipreqs.get_pkg_names(pkgs)
|
||||
expected_output = ['camel', 'Caroline', 'Japan', 'jury']
|
||||
self.assertEqual(actual_output, expected_output)
|
||||
|
||||
def test_get_use_local_only(self):
|
||||
"""
|
||||
Test without checking PyPI, check to see if names of local imports matches what we expect
|
||||
|
Loading…
x
Reference in New Issue
Block a user