mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Better scanning for module names, now includes namespace packages and stubs
This commit is contained in:
@@ -178,9 +178,9 @@ def test_hashlib_params(Script, environment):
|
||||
if environment.version_info < (3,):
|
||||
pytest.skip()
|
||||
|
||||
script = Script(source='from hashlib import ', line=1, column=20)
|
||||
c = script.completions()
|
||||
assert c[2].params
|
||||
script = Script(source='from hashlib import sha256')
|
||||
c, = script.completions()
|
||||
assert [p.name for p in c.params] == ['arg']
|
||||
|
||||
|
||||
def test_signature_params(Script):
|
||||
|
||||
Reference in New Issue
Block a user