Beispiel #1
0
 def test_plain(self, monkeypatch):
     monkeypatch.setitem(sys.modules, "plain", pretend.stub())
     assert shell.autodetect() == "plain"
Beispiel #2
0
 def test_ipython(self, monkeypatch):
     monkeypatch.setitem(sys.modules, "IPython", pretend.stub())
     assert shell.autodetect() == "ipython"
Beispiel #3
0
 def test_plain(self):
     assert shell.autodetect() == "plain"
Beispiel #4
0
 def test_ipython(self, monkeypatch):
     monkeypatch.setitem(sys.modules, "IPython", pretend.stub())
     assert shell.autodetect() == "ipython"
Beispiel #5
0
 def test_plain(self):
     assert shell.autodetect() == "plain"
Beispiel #6
0
 def test_plain(self, monkeypatch):
     monkeypatch.setitem(sys.modules, "plain", pretend.stub())
     assert shell.autodetect() == "plain"