mirror of
https://github.com/davidhalter/jedi.git
synced 2026-11-04 07:52:51 +08:00
A lot more fixes - fix all evaluate integration tests.
This commit is contained in:
1 parent
ee1f077014
commit
6940900c58
10 files changed
+91
-53
No files matched your search
@@ -49,16 +49,16 @@ def test_namespace_package():
|
||||
for c in script_with_path(source + '; x.').completions():
|
||||
if c.name == 'foo':
|
||||
completion = c
|
||||
solution = "statement: foo = '%s'" % solution
|
||||
solution = "foo = '%s'" % solution
|
||||
assert completion.description == solution
|
||||
|
||||
|
||||
def test_nested_namespace_package():
|
||||
CODE = 'from nested_namespaces.namespace.pkg import CONST'
|
||||
code = 'from nested_namespaces.namespace.pkg import CONST'
|
||||
|
||||
sys_path = [dirname(__file__)]
|
||||
|
||||
script = jedi.Script(sys_path=sys_path, source=CODE, line=1, column=45)
|
||||
script = jedi.Script(sys_path=sys_path, source=code, line=1, column=45)
|
||||
|
||||
result = script.goto_definitions()
|
||||
|
||||
|
||||
Reference in new issue
Block a user