Beispiel #1
0
 def test_undo_history(self):
     self.assertEqual(
         len(history.undo_history(self.proj)), 0)
     rename(self.proj, self.task_state,
            'Llama',
            'basic/foo.py',
            8)
     self.assertEqual(
         len(history.undo_history(self.proj)), 1)
Beispiel #2
0
def undo_history_view():
    from traad.rope.history import undo_history
    return {
        'result': 'success',
        'history': undo_history(project)
    }