示例#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)
    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
 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
 def view_blame(self):
     """Signal that we should view blame for paths."""
     cmds.do(cmds.BlamePaths, selection.union(selection.selection_model()))