コード例 #1
0
ファイル: test_shell.py プロジェクト: ewdurbin/warehouse
 def test_plain(self, monkeypatch):
     monkeypatch.setitem(sys.modules, "plain", pretend.stub())
     assert shell.autodetect() == "plain"
コード例 #2
0
ファイル: test_shell.py プロジェクト: ewdurbin/warehouse
 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
ファイル: test_shell.py プロジェクト: JosephBywater/warehouse
 def test_plain(self):
     assert shell.autodetect() == "plain"
コード例 #6
0
ファイル: test_shell.py プロジェクト: wtolson/warehouse
 def test_plain(self, monkeypatch):
     monkeypatch.setitem(sys.modules, "plain", pretend.stub())
     assert shell.autodetect() == "plain"