mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
test for #417
This commit is contained in:
@@ -227,6 +227,23 @@ def test_no_signature():
|
|||||||
assert len(Script(s, column=2).call_signatures()) == 1
|
assert len(Script(s, column=2).call_signatures()) == 1
|
||||||
|
|
||||||
|
|
||||||
|
def test_dicts():
|
||||||
|
source = """\
|
||||||
|
import json
|
||||||
|
|
||||||
|
def foo():
|
||||||
|
json.loads(
|
||||||
|
|
||||||
|
json.load.return_value = {'foo': [],
|
||||||
|
'bar': True}
|
||||||
|
|
||||||
|
c = Foo()
|
||||||
|
"""
|
||||||
|
|
||||||
|
script = Script(dedent(source), line=4, column=15)
|
||||||
|
assert script.call_signatures()
|
||||||
|
|
||||||
|
|
||||||
def test_completion_interference():
|
def test_completion_interference():
|
||||||
"""Seems to cause problems, see also #396."""
|
"""Seems to cause problems, see also #396."""
|
||||||
cache.parser_cache.pop(None, None)
|
cache.parser_cache.pop(None, None)
|
||||||
|
|||||||
Reference in New Issue
Block a user