We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca274b1 commit 991ccb3Copy full SHA for 991ccb3
src/ipython_jl/tests/conftest.py
@@ -4,7 +4,7 @@
4
from .. import ipyext
5
6
7
-@pytest.fixture
+@pytest.fixture(scope="session")
8
def Main():
9
""" pytest fixture for providing a Julia `Main` name space. """
10
if core._Main is None:
@@ -13,15 +13,14 @@ def Main():
13
return core._Main
14
15
16
17
def julia(Main):
18
""" pytest fixture for providing a `JuliaAPI` instance. """
19
return core.get_api(Main)
20
21
22
@pytest.fixture(scope="session")
23
-def ipy_with_magic():
24
- Main() # check if Julia API is ready
+def ipy_with_magic(Main):
25
from IPython.testing.globalipapp import get_ipython
26
ip = get_ipython()
27
ipyext.load_ipython_extension(ip)
0 commit comments