Example #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)
Example #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
Example #4
0
 def view_history(self):
     """Signal that we should view history for paths."""
     cmds.do(cmds.VisualizePaths,
             selection.union(selection.selection_model()))
Example #5
0
 def view_history(self):
     """Signal that we should view history for paths."""
     cmds.do(cmds.VisualizePaths,
             selection.union(selection.selection_model()))
Example #6
0
 def view_blame(self):
     """Signal that we should view blame for paths."""
     cmds.do(cmds.BlamePaths, selection.union(selection.selection_model()))
Example #7
0
 def view_blame(self):
     """Signal that we should view blame for paths."""
     cmds.do(cmds.BlamePaths, selection.union(selection.selection_model()))