mirror of https://github.com/pyodide/pyodide.git
12 lines
378 B
Python
12 lines
378 B
Python
|
def test_jedi(selenium_standalone):
|
||
|
selenium_standalone.load_package("jedi")
|
||
|
result = selenium_standalone.run(
|
||
|
"""
|
||
|
import jedi
|
||
|
script = jedi.Script("import json\\njson.lo", path='example.py')
|
||
|
completions = script.complete(2, len('json.lo'))
|
||
|
[el.name for el in completions]
|
||
|
"""
|
||
|
)
|
||
|
assert result == ["load", "loads"]
|