Skip to content

Commit 991ccb3

Browse files
committed
Make all fixtures session-scoped (they should be)
1 parent ca274b1 commit 991ccb3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/ipython_jl/tests/conftest.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from .. import ipyext
55

66

7-
@pytest.fixture
7+
@pytest.fixture(scope="session")
88
def Main():
99
""" pytest fixture for providing a Julia `Main` name space. """
1010
if core._Main is None:
@@ -13,15 +13,14 @@ def Main():
1313
return core._Main
1414

1515

16-
@pytest.fixture
16+
@pytest.fixture(scope="session")
1717
def julia(Main):
1818
""" pytest fixture for providing a `JuliaAPI` instance. """
1919
return core.get_api(Main)
2020

2121

2222
@pytest.fixture(scope="session")
23-
def ipy_with_magic():
24-
Main() # check if Julia API is ready
23+
def ipy_with_magic(Main):
2524
from IPython.testing.globalipapp import get_ipython
2625
ip = get_ipython()
2726
ipyext.load_ipython_extension(ip)

0 commit comments

Comments
 (0)