Пример #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"