mirror of https://github.com/pyodide/pyodide.git
11 lines
322 B
Python
11 lines
322 B
Python
from pyodide_build.testing import run_in_pyodide
|
|
|
|
|
|
@run_in_pyodide(standalone=True, packages=["jedi"])
|
|
def test_jedi():
|
|
import jedi
|
|
|
|
script = jedi.Script("import json\njson.lo", path="example.py")
|
|
completions = script.complete(2, len("json.lo"))
|
|
assert [el.name for el in completions] == ["load", "loads"]
|