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