summaryrefslogtreecommitdiff
path: root/docs/gl_objects
diff options
context:
space:
mode:
authorMax Wittig <max.wittig@siemens.com>2019-09-08 16:57:18 +0200
committerGitHub <noreply@github.com>2019-09-08 16:57:18 +0200
commit040894d245709c5c2524d59d2b228a21dd74d1a4 (patch)
treee7788031c43af11a46af359710c00d145ad0d9cb /docs/gl_objects
parentfef085dca35d6b60013d53a3723b4cbf121ab2ae (diff)
parentc9c76a257d2ed3b394f499253d890c2dd9a01e24 (diff)
downloadgitlab-040894d245709c5c2524d59d2b228a21dd74d1a4.tar.gz
Merge pull request #878 from python-gitlab/test/todo-unit-test
Test/todo unit test
Diffstat (limited to 'docs/gl_objects')
-rw-r--r--docs/gl_objects/todos.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/gl_objects/todos.rst b/docs/gl_objects/todos.rst
index a01aa43..24a14c2 100644
--- a/docs/gl_objects/todos.rst
+++ b/docs/gl_objects/todos.rst
@@ -36,10 +36,9 @@ For example::
Mark a todo as done::
- gl.todos.delete(todo_id)
- # or
- todo.delete()
+ todos = gl.todos.list(project_id=1)
+ todos[0].mark_as_done()
Mark all the todos as done::
- nb_of_closed_todos = gl.todos.delete_all()
+ gl.todos.mark_all_as_done()