コード例 #1
0
    def test_union(self):
        t = T()
        t.staged = ['a']
        t.unmerged = ['a', 'b']
        t.modified = ['b', 'a', 'c']
        t.untracked = ['d']

        expect = ['a', 'b', 'c', 'd']
        actual = selection.union(t)
        self.assertEqual(expect, actual)
コード例 #2
0
    def test_union(self):
        t = T()
        t.staged = ['a']
        t.unmerged = ['a', 'b']
        t.modified = ['b', 'a', 'c']
        t.untracked = ['d']

        expect = ['a', 'b', 'c', 'd']
        actual = selection.union(t)
        self.assertEqual(expect, actual)
コード例 #3
0
def test_union():
    t = Mock()
    t.staged = ['a']
    t.unmerged = ['a', 'b']
    t.modified = ['b', 'a', 'c']
    t.untracked = ['d']

    expect = ['a', 'b', 'c', 'd']
    actual = selection.union(t)
    assert expect == actual
コード例 #4
0
ファイル: status.py プロジェクト: djhaskin987/git-cola
 def view_history(self):
     """Signal that we should view history for paths."""
     cmds.do(cmds.VisualizePaths,
             selection.union(selection.selection_model()))
コード例 #5
0
ファイル: status.py プロジェクト: gwood/git-cola
 def view_history(self):
     """Signal that we should view history for paths."""
     cmds.do(cmds.VisualizePaths,
             selection.union(selection.selection_model()))
コード例 #6
0
ファイル: status.py プロジェクト: gwood/git-cola
 def view_blame(self):
     """Signal that we should view blame for paths."""
     cmds.do(cmds.BlamePaths, selection.union(selection.selection_model()))
コード例 #7
0
ファイル: status.py プロジェクト: ttimz1313/git-cola
 def view_blame(self):
     """Signal that we should view blame for paths."""
     cmds.do(cmds.BlamePaths, selection.union(selection.selection_model()))