This commit is contained in:
@@ -14,7 +14,7 @@ def fake_ipython():
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def simulate_ipython(fake_ipython, monkeypatch):
|
||||
monkeypatch.setattr("slic.core.device.device.get_ipython", lambda: fake_ipython)
|
||||
monkeypatch.setattr("slic.utils.ipy.get_ipython", lambda: fake_ipython)
|
||||
return fake_ipython
|
||||
|
||||
def test_devices_repr_fallback_and_ignore(simulate_ipython):
|
||||
|
||||
Reference in New Issue
Block a user