mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
use memoize_default instead of strange underscore_decorators in api classes
This commit is contained in:
@@ -126,16 +126,16 @@ def test_completion_documentation():
|
||||
|
||||
|
||||
def test_signature_params():
|
||||
def check(defs):
|
||||
params = defs[0].params
|
||||
assert len(params) == 1
|
||||
assert params[0].name == 'bar'
|
||||
|
||||
s = dedent('''
|
||||
def foo(bar):
|
||||
pass
|
||||
foo''')
|
||||
|
||||
defs = Script(s).goto_definitions()
|
||||
params = defs[0].params
|
||||
assert len(params) == 1
|
||||
assert params[0].name == 'bar'
|
||||
check(Script(s).goto_definitions())
|
||||
|
||||
defs = Script(s).goto_assignments()
|
||||
with pytest.raises(AttributeError):
|
||||
params = defs[0].params
|
||||
check(Script(s).goto_assignments())
|
||||
|
||||
Reference in New Issue
Block a user