diff --git a/src/julia/tests/test_magic.py b/src/julia/tests/test_magic.py index f2ffe5fe..6fd7c279 100644 --- a/src/julia/tests/test_magic.py +++ b/src/julia/tests/test_magic.py @@ -173,11 +173,11 @@ def throw(): @pytest.mark.skipif(sys.version_info[0] < 3, reason="Python 2 not supported") -def test_completions(): +def test_completions(julia): from IPython.core.completer import provisionalcompleter from julia.ipy.monkeypatch_completer import JuliaCompleter - jc = JuliaCompleter() + jc = JuliaCompleter(julia) t = "%julia Base.si" with provisionalcompleter(): completions = jc.julia_completions(t, len(t)) diff --git a/src/julia/tests/test_plugin.py b/src/julia/tests/test_plugin.py index aebb8f3f..2b82029a 100644 --- a/src/julia/tests/test_plugin.py +++ b/src/julia/tests/test_plugin.py @@ -48,7 +48,7 @@ def test(): @pytest.mark.skipif( is_windows, reason="cannot run on Windows; symlink is used inside test" ) -def test_undo_no_julia(testdir, request): +def test_undo_no_julia(testdir, request, julia): if request.config.getoption("runpytest") != "subprocess": raise ValueError("Need `-p pytester --runpytest=subprocess` options.")