Add Google Tasks create and update for todo platform (#102754)
* Add Google Tasks create and update for todo platform * Update comments * Update comments
This commit is contained in:
parent
ffed1e8274
commit
7f7064ce59
5 changed files with 279 additions and 10 deletions
37
tests/components/google_tasks/snapshots/test_todo.ambr
Normal file
37
tests/components/google_tasks/snapshots/test_todo.ambr
Normal file
|
@ -0,0 +1,37 @@
|
|||
# serializer version: 1
|
||||
# name: test_create_todo_list_item[api_responses0]
|
||||
tuple(
|
||||
'https://tasks.googleapis.com/tasks/v1/lists/task-list-id-1/tasks?alt=json',
|
||||
'POST',
|
||||
)
|
||||
# ---
|
||||
# name: test_create_todo_list_item[api_responses0].1
|
||||
'{"title": "Soda", "status": "needsAction"}'
|
||||
# ---
|
||||
# name: test_partial_update_status[api_responses0]
|
||||
tuple(
|
||||
'https://tasks.googleapis.com/tasks/v1/lists/task-list-id-1/tasks/some-task-id?alt=json',
|
||||
'PATCH',
|
||||
)
|
||||
# ---
|
||||
# name: test_partial_update_status[api_responses0].1
|
||||
'{"status": "needsAction"}'
|
||||
# ---
|
||||
# name: test_partial_update_title[api_responses0]
|
||||
tuple(
|
||||
'https://tasks.googleapis.com/tasks/v1/lists/task-list-id-1/tasks/some-task-id?alt=json',
|
||||
'PATCH',
|
||||
)
|
||||
# ---
|
||||
# name: test_partial_update_title[api_responses0].1
|
||||
'{"title": "Soda"}'
|
||||
# ---
|
||||
# name: test_update_todo_list_item[api_responses0]
|
||||
tuple(
|
||||
'https://tasks.googleapis.com/tasks/v1/lists/task-list-id-1/tasks/some-task-id?alt=json',
|
||||
'PATCH',
|
||||
)
|
||||
# ---
|
||||
# name: test_update_todo_list_item[api_responses0].1
|
||||
'{"title": "Soda", "status": "completed"}'
|
||||
# ---
|
Loading…
Add table
Add a link
Reference in a new issue