コード例 #1
0
def test_vcs_tool():
    if not os.name == 'nt':
        with pytest.raises(ActionToolNotFound):
            run_vcs_tool(osp.dirname(__file__), 'browse')
    else:
        assert run_vcs_tool(osp.dirname(__file__), 'browse')
        assert run_vcs_tool(osp.dirname(__file__), 'commit')
コード例 #2
0
ファイル: test_vcs.py プロジェクト: zhatin/spyder
def test_vcs_tool():
    if sys.platform.startswith('linux'):
        with pytest.raises(ActionToolNotFound):
            run_vcs_tool(osp.dirname(__file__), 'browse')
    else:
        assert run_vcs_tool(osp.dirname(__file__), 'browse')
        assert run_vcs_tool(osp.dirname(__file__), 'commit')
コード例 #3
0
ファイル: test_vcs.py プロジェクト: burrbull/spyder
def test_vcs_tool():
    if sys.platform.startswith('linux'):
        with pytest.raises(ActionToolNotFound):
            run_vcs_tool(osp.dirname(__file__), 'browse')
    else:
        assert run_vcs_tool(osp.dirname(__file__), 'browse')
        assert run_vcs_tool(osp.dirname(__file__), 'commit')
コード例 #4
0
ファイル: explorer.py プロジェクト: ShenggaoZhu/spyder
 def vcs_command(self, fnames, action):
     """VCS action (commit, browse)"""
     try:
         for path in sorted(fnames):
             vcs.run_vcs_tool(path, action)
     except vcs.ActionToolNotFound as error:
         msg = _("For %s support, please install one of the<br/> "
                 "following tools:<br/><br/>  %s")\
                     % (error.vcsname, ', '.join(error.tools))
         QMessageBox.critical(self, _("Error"),
             _("""<b>Unable to find external program.</b><br><br>%s""")
                 % to_text_string(msg))
コード例 #5
0
ファイル: explorer.py プロジェクト: sduhxjun/spyder
 def vcs_command(self, fnames, action):
     """VCS action (commit, browse)"""
     try:
         for path in sorted(fnames):
             vcs.run_vcs_tool(path, action)
     except vcs.ActionToolNotFound as error:
         msg = _("For %s support, please install one of the<br/> "
                 "following tools:<br/><br/>  %s")\
                     % (error.vcsname, ', '.join(error.tools))
         QMessageBox.critical(
             self, _("Error"),
             _("""<b>Unable to find external program.</b><br><br>%s""") %
             to_text_string(msg))