Exemplo n.º 1
0
 def test_plain(self):
     assert shell.autodetect() == 'plain'
Exemplo n.º 2
0
 def test_ipython(self, monkeypatch):
     monkeypatch.setitem(sys.modules, 'IPython', mock.sentinel.bpython)
     assert shell.autodetect() == 'ipython'
Exemplo n.º 3
0
 def test_bpython(self, monkeypatch):
     monkeypatch.setitem(sys.modules, "bpython", mock.sentinel.bpython)
     assert shell.autodetect() == "bpython"
Exemplo n.º 4
0
 def test_plain(self):
     assert shell.autodetect() == "plain"
Exemplo n.º 5
0
 def test_bpython_over_ipython(self, monkeypatch):
     monkeypatch.setitem(sys.modules, "bpython", mock.sentinel.bpython)
     monkeypatch.setitem(sys.modules, "IPython", mock.sentinel.bpython)
     assert shell.autodetect() == "bpython"
Exemplo n.º 6
0
 def test_ipython(self, monkeypatch):
     monkeypatch.setitem(sys.modules, 'IPython', mock.sentinel.bpython)
     assert shell.autodetect() == 'ipython'