This commit is contained in:
@@ -7,7 +7,6 @@ import types
|
|||||||
|
|
||||||
@pytest.fixture(scope="module")
|
@pytest.fixture(scope="module")
|
||||||
def fake_ipython():
|
def fake_ipython():
|
||||||
"""Fixture module-scoped pour simuler IPython"""
|
|
||||||
class FakeIPython:
|
class FakeIPython:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.user_ns = {}
|
self.user_ns = {}
|
||||||
@@ -15,7 +14,6 @@ def fake_ipython():
|
|||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def simulate_ipython(fake_ipython, monkeypatch):
|
def simulate_ipython(fake_ipython, monkeypatch):
|
||||||
"""Configure le mock IPython avant chaque test"""
|
|
||||||
monkeypatch.setattr("slic.utils.ipy.get_ipython", lambda: fake_ipython)
|
monkeypatch.setattr("slic.utils.ipy.get_ipython", lambda: fake_ipython)
|
||||||
return fake_ipython
|
return fake_ipython
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user