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