a *Na@sdZddlZddlZddlZddlZddlmZeej e dd"Z e Z ee ZWdn1sn0YejddZejdd Zd d Zd d ZdS)z7 GitLab API: https://docs.gitlab.com/ce/api/todos.html N)Todoz/../data/todo.jsonrccsftjddF}|jtjdtddd|jtjdtdddd|VWdn1sX0YdS) NF)Zassert_all_requests_are_firedzhttp://localhost/api/v4/todosapplication/jsonmethodurljson content_typestatusz.http://localhost/api/v4/todos/102/mark_as_doner) responses RequestsMockaddGET json_contentPOSTZrspsrx/private/var/folders/js/6pj4vh5d4zd0k6bxv74qrbhr0000gr/T/pip-target-22xwyzbs/lib/python/tests/unit/objects/test_todos.py resp_todos rccsHt,}|jtjdiddd|VWdn1s:0YdS)Nz*http://localhost/api/v4/todos/mark_as_donerr)r r rrrrrrresp_mark_all_as_done&s rcCsZ|jd}t|tsJ|jdks*J|jdks8J|jdddksNJ|dS)NrfZ MergeRequestZassigneeusernameroot)todoslist isinstanceridZ target_typetargetZ mark_as_done)glrtodorrr test_todo3s r"cCs|jdS)N)rZmark_all_as_done)r rrrrtest_todo_mark_all_as_done=sr#)__doc__r osZpytestr Zgitlab.v4.objectsropenpathdirname__file__Z json_filereadZ todo_contentloadsrZfixturerrr"r#rrrrs (