Skip to content

Commit

Permalink
Update cassettes
Browse files Browse the repository at this point in the history
  • Loading branch information
ramnes committed Aug 17, 2023
1 parent dc7577e commit 1a8bdd4
Show file tree
Hide file tree
Showing 37 changed files with 743 additions and 354 deletions.
24 changes: 0 additions & 24 deletions tests/cassettes/test_api_http_response_error.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions tests/cassettes/test_api_response_error.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ interactions:
- '*/*'
accept-encoding:
- gzip, deflate
authorization:
- secret_...
connection:
- keep-alive
host:
Expand Down
2 changes: 2 additions & 0 deletions tests/cassettes/test_async_api_response_error.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ interactions:
- '*/*'
accept-encoding:
- gzip, deflate
authorization:
- secret_...
connection:
- keep-alive
host:
Expand Down
5 changes: 2 additions & 3 deletions tests/cassettes/test_async_client_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ interactions:
method: GET
uri: https://api.notion.com/v1/users
response:
content: '{"object":"list","results":[{"object":"user","id":"04db0808-966a-4668-9a27-8be05465b9c9","name":"Notion
Testing Account","avatar_url":null,"type":"person","person":{}},{"object":"user","id":"823cf07b-34df-4ae6-9fbc-dbc600a815c6","name":"Testing","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"Notion
Testing Account''s Notion"}}],"next_cursor":null,"has_more":false,"type":"user","user":{}}'
content: '{"object":"list","results":[{"object":"user","id":"a4f789cc-7bc8-4cf0-82b9-a8ba7d985ecf","name":"Guillaume
Gelin","avatar_url":"https://s3-us-west-2.amazonaws.com/public.notion-static.com/1cddf30d-ef25-4372-a8bd-b510a11e26e8/avatar.jpeg","type":"person","person":{"email":"[email protected]"}},{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"}}],"next_cursor":null,"has_more":false,"type":"user","user":{}}'
headers: {}
http_version: HTTP/1.1
status_code: 200
Expand Down
5 changes: 2 additions & 3 deletions tests/cassettes/test_async_client_request_auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ interactions:
method: GET
uri: https://api.notion.com/v1/users
response:
content: '{"object":"list","results":[{"object":"user","id":"04db0808-966a-4668-9a27-8be05465b9c9","name":"Notion
Testing Account","avatar_url":null,"type":"person","person":{}},{"object":"user","id":"823cf07b-34df-4ae6-9fbc-dbc600a815c6","name":"Testing","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"Notion
Testing Account''s Notion"}}],"next_cursor":null,"has_more":false,"type":"user","user":{}}'
content: '{"object":"list","results":[{"object":"user","id":"a4f789cc-7bc8-4cf0-82b9-a8ba7d985ecf","name":"Guillaume
Gelin","avatar_url":"https://s3-us-west-2.amazonaws.com/public.notion-static.com/1cddf30d-ef25-4372-a8bd-b510a11e26e8/avatar.jpeg","type":"person","person":{"email":"[email protected]"}},{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78","name":"notion-sdk-py","avatar_url":null,"type":"bot","bot":{"owner":{"type":"workspace","workspace":true},"workspace_name":"notion-sdk-py"}}],"next_cursor":null,"has_more":false,"type":"user","user":{}}'
headers: {}
http_version: HTTP/1.1
status_code: 200
Expand Down
105 changes: 102 additions & 3 deletions tests/cassettes/test_async_collect_paginated_api.yaml

Large diffs are not rendered by default.

105 changes: 102 additions & 3 deletions tests/cassettes/test_async_iterate_paginated_api.yaml

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions tests/cassettes/test_blocks_children_create.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interactions:
- request:
body: '{"parent": {"page_id": "f691a0f9-da72-43bd-94ef-365793610746"}, "properties":
{"title": [{"text": {"content": "Test 2022-11-16 16:44:42.205196"}}]}, "children":
body: '{"parent": {"page_id": "95ba011667764c199e4554e77415f03b"}, "properties":
{"title": [{"text": {"content": "Test 2023-06-29 15:05:11.488795"}}]}, "children":
[]}'
headers:
accept:
Expand All @@ -13,7 +13,7 @@ interactions:
connection:
- keep-alive
content-length:
- '164'
- '160'
content-type:
- application/json
host:
Expand All @@ -23,9 +23,9 @@ interactions:
method: POST
uri: https://api.notion.com/v1/pages
response:
content: '{"object":"page","id":"a98292b5-9e3b-4991-bf9f-9128654ce484","created_time":"2022-11-16T15:44:00.000Z","last_edited_time":"2022-11-16T15:44:00.000Z","created_by":{"object":"user","id":"823cf07b-34df-4ae6-9fbc-dbc600a815c6"},"last_edited_by":{"object":"user","id":"823cf07b-34df-4ae6-9fbc-dbc600a815c6"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"f691a0f9-da72-43bd-94ef-365793610746"},"archived":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test
2022-11-16 16:44:42.205196","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test
2022-11-16 16:44:42.205196","href":null}]}},"url":"https://www.notion.so/Test-2022-11-16-16-44-42-205196-a98292b59e3b4991bf9f9128654ce484"}'
content: '{"object":"page","id":"8ac2f100-1fb4-4a8c-ba21-d92816dd0473","created_time":"2023-06-29T13:05:00.000Z","last_edited_time":"2023-06-29T13:05:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test
2023-06-29 15:05:11.488795","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test
2023-06-29 15:05:11.488795","href":null}]}},"url":"https://www.notion.so/Test-2023-06-29-15-05-11-488795-8ac2f1001fb44a8cba21d92816dd0473","public_url":null}'
headers: {}
http_version: HTTP/1.1
status_code: 200
Expand All @@ -50,9 +50,9 @@ interactions:
notion-version:
- '2022-06-28'
method: PATCH
uri: https://api.notion.com/v1/blocks/a98292b5-9e3b-4991-bf9f-9128654ce484/children
uri: https://api.notion.com/v1/blocks/8ac2f100-1fb4-4a8c-ba21-d92816dd0473/children
response:
content: '{"object":"list","results":[{"object":"block","id":"0306c3e5-cd3f-47bf-8902-f612566ea3c7","parent":{"type":"page_id","page_id":"a98292b5-9e3b-4991-bf9f-9128654ce484"},"created_time":"2022-11-16T15:44:00.000Z","last_edited_time":"2022-11-16T15:44:00.000Z","created_by":{"object":"user","id":"823cf07b-34df-4ae6-9fbc-dbc600a815c6"},"last_edited_by":{"object":"user","id":"823cf07b-34df-4ae6-9fbc-dbc600a815c6"},"has_children":false,"archived":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m
content: '{"object":"list","results":[{"object":"block","id":"7ce6af57-86a2-4366-ae58-6bba5cd0d7dd","parent":{"type":"page_id","page_id":"8ac2f100-1fb4-4a8c-ba21-d92816dd0473"},"created_time":"2023-06-29T13:05:00.000Z","last_edited_time":"2023-06-29T13:05:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":false,"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"I''m
a paragraph.","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"I''m
a paragraph.","href":null}],"color":"default"}}],"next_cursor":null,"has_more":false,"type":"block","block":{}}'
headers: {}
Expand All @@ -74,10 +74,10 @@ interactions:
notion-version:
- '2022-06-28'
method: DELETE
uri: https://api.notion.com/v1/blocks/a98292b5-9e3b-4991-bf9f-9128654ce484
uri: https://api.notion.com/v1/blocks/8ac2f100-1fb4-4a8c-ba21-d92816dd0473
response:
content: '{"object":"block","id":"a98292b5-9e3b-4991-bf9f-9128654ce484","parent":{"type":"page_id","page_id":"f691a0f9-da72-43bd-94ef-365793610746"},"created_time":"2022-11-16T15:44:00.000Z","last_edited_time":"2022-11-16T15:44:00.000Z","created_by":{"object":"user","id":"823cf07b-34df-4ae6-9fbc-dbc600a815c6"},"last_edited_by":{"object":"user","id":"823cf07b-34df-4ae6-9fbc-dbc600a815c6"},"has_children":true,"archived":true,"type":"child_page","child_page":{"title":"Test
2022-11-16 16:44:42.205196"}}'
content: '{"object":"block","id":"8ac2f100-1fb4-4a8c-ba21-d92816dd0473","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2023-06-29T13:05:00.000Z","last_edited_time":"2023-06-29T13:05:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":true,"archived":true,"type":"child_page","child_page":{"title":"Test
2023-06-29 15:05:11.488795"}}'
headers: {}
http_version: HTTP/1.1
status_code: 200
Expand Down
20 changes: 10 additions & 10 deletions tests/cassettes/test_blocks_children_list.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interactions:
- request:
body: '{"parent": {"page_id": "f691a0f9-da72-43bd-94ef-365793610746"}, "properties":
{"title": [{"text": {"content": "Test 2022-11-16 16:44:43.487374"}}]}, "children":
body: '{"parent": {"page_id": "95ba011667764c199e4554e77415f03b"}, "properties":
{"title": [{"text": {"content": "Test 2023-06-29 15:05:39.376099"}}]}, "children":
[]}'
headers:
accept:
Expand All @@ -13,7 +13,7 @@ interactions:
connection:
- keep-alive
content-length:
- '164'
- '160'
content-type:
- application/json
host:
Expand All @@ -23,9 +23,9 @@ interactions:
method: POST
uri: https://api.notion.com/v1/pages
response:
content: '{"object":"page","id":"dee1f195-e034-4d2c-9ea0-0a75f87145b9","created_time":"2022-11-16T15:44:00.000Z","last_edited_time":"2022-11-16T15:44:00.000Z","created_by":{"object":"user","id":"823cf07b-34df-4ae6-9fbc-dbc600a815c6"},"last_edited_by":{"object":"user","id":"823cf07b-34df-4ae6-9fbc-dbc600a815c6"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"f691a0f9-da72-43bd-94ef-365793610746"},"archived":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test
2022-11-16 16:44:43.487374","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test
2022-11-16 16:44:43.487374","href":null}]}},"url":"https://www.notion.so/Test-2022-11-16-16-44-43-487374-dee1f195e0344d2c9ea00a75f87145b9"}'
content: '{"object":"page","id":"54449eb7-a430-446e-a983-a36bc55ea846","created_time":"2023-06-29T13:05:00.000Z","last_edited_time":"2023-06-29T13:05:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"cover":null,"icon":null,"parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"archived":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Test
2023-06-29 15:05:39.376099","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Test
2023-06-29 15:05:39.376099","href":null}]}},"url":"https://www.notion.so/Test-2023-06-29-15-05-39-376099-54449eb7a430446ea983a36bc55ea846","public_url":null}'
headers: {}
http_version: HTTP/1.1
status_code: 200
Expand All @@ -45,7 +45,7 @@ interactions:
notion-version:
- '2022-06-28'
method: GET
uri: https://api.notion.com/v1/blocks/dee1f195-e034-4d2c-9ea0-0a75f87145b9/children
uri: https://api.notion.com/v1/blocks/54449eb7-a430-446e-a983-a36bc55ea846/children
response:
content: '{"object":"list","results":[],"next_cursor":null,"has_more":false,"type":"block","block":{}}'
headers: {}
Expand All @@ -67,10 +67,10 @@ interactions:
notion-version:
- '2022-06-28'
method: DELETE
uri: https://api.notion.com/v1/blocks/dee1f195-e034-4d2c-9ea0-0a75f87145b9
uri: https://api.notion.com/v1/blocks/54449eb7-a430-446e-a983-a36bc55ea846
response:
content: '{"object":"block","id":"dee1f195-e034-4d2c-9ea0-0a75f87145b9","parent":{"type":"page_id","page_id":"f691a0f9-da72-43bd-94ef-365793610746"},"created_time":"2022-11-16T15:44:00.000Z","last_edited_time":"2022-11-16T15:44:00.000Z","created_by":{"object":"user","id":"823cf07b-34df-4ae6-9fbc-dbc600a815c6"},"last_edited_by":{"object":"user","id":"823cf07b-34df-4ae6-9fbc-dbc600a815c6"},"has_children":false,"archived":true,"type":"child_page","child_page":{"title":"Test
2022-11-16 16:44:43.487374"}}'
content: '{"object":"block","id":"54449eb7-a430-446e-a983-a36bc55ea846","parent":{"type":"page_id","page_id":"95ba0116-6776-4c19-9e45-54e77415f03b"},"created_time":"2023-06-29T13:05:00.000Z","last_edited_time":"2023-06-29T13:05:00.000Z","created_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"last_edited_by":{"object":"user","id":"7775f3a3-893f-43fa-b625-460c61094c78"},"has_children":false,"archived":true,"type":"child_page","child_page":{"title":"Test
2023-06-29 15:05:39.376099"}}'
headers: {}
http_version: HTTP/1.1
status_code: 200
Expand Down
Loading

0 comments on commit 1a8bdd4

Please sign in to comment.