Esempio n. 1
0
 def test_plain(self):
     assert shell.autodetect() == 'plain'
Esempio n. 2
0
 def test_ipython(self, monkeypatch):
     monkeypatch.setitem(sys.modules, 'IPython', mock.sentinel.bpython)
     assert shell.autodetect() == 'ipython'
Esempio n. 3
0
 def test_bpython(self, monkeypatch):
     monkeypatch.setitem(sys.modules, "bpython", mock.sentinel.bpython)
     assert shell.autodetect() == "bpython"
Esempio n. 4
0
 def test_plain(self):
     assert shell.autodetect() == "plain"
Esempio 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"
Esempio n. 6
0
 def test_ipython(self, monkeypatch):
     monkeypatch.setitem(sys.modules, 'IPython', mock.sentinel.bpython)
     assert shell.autodetect() == 'ipython'