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