diff options
Diffstat (limited to 'tests/cassettes/test_status_context.yaml')
-rw-r--r-- | tests/cassettes/test_status_context.yaml | 240 |
1 files changed, 173 insertions, 67 deletions
diff --git a/tests/cassettes/test_status_context.yaml b/tests/cassettes/test_status_context.yaml index 05ad7c2..8e19011 100644 --- a/tests/cassettes/test_status_context.yaml +++ b/tests/cassettes/test_status_context.yaml | |||
@@ -2,87 +2,193 @@ interactions: | |||
2 | - request: | 2 | - request: |
3 | body: status=Toot%21 | 3 | body: status=Toot%21 |
4 | headers: | 4 | headers: |
5 | Accept: ['*/*'] | 5 | Accept: |
6 | Accept-Encoding: ['gzip, deflate'] | 6 | - '*/*' |
7 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 7 | Accept-Encoding: |
8 | Connection: [keep-alive] | 8 | - gzip, deflate |
9 | Content-Length: ['14'] | 9 | Authorization: |
10 | Content-Type: [application/x-www-form-urlencoded] | 10 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN |
11 | User-Agent: [python-requests/2.18.4] | 11 | Connection: |
12 | - keep-alive | ||
13 | Content-Length: | ||
14 | - '14' | ||
15 | Content-Type: | ||
16 | - application/x-www-form-urlencoded | ||
17 | User-Agent: | ||
18 | - tests/v311 | ||
12 | method: POST | 19 | method: POST |
13 | uri: http://localhost:3000/api/v1/statuses | 20 | uri: http://localhost:3000/api/v1/statuses |
14 | response: | 21 | response: |
15 | body: {string: '{"id":"103704151745623810","created_at":"2020-02-22T19:29:36.401Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/103704151745623810","url":"http://localhost/@mastodonpy_test/103704151745623810","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py | 22 | body: |
16 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} | 23 | string: '{"id":"109304277013555335","created_at":"2022-11-07T19:55:06.589Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109304277013555335","url":"http://localhost:3000/@mastodonpy_test/109304277013555335","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py |
24 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
25 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI | ||
26 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2022-11-07","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' | ||
17 | headers: | 27 | headers: |
18 | Cache-Control: ['no-cache, no-store'] | 28 | Cache-Control: |
19 | Content-Type: [application/json; charset=utf-8] | 29 | - no-store |
20 | Referrer-Policy: [strict-origin-when-cross-origin] | 30 | Content-Security-Policy: |
21 | Transfer-Encoding: [chunked] | 31 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
22 | Vary: ['Accept-Encoding, Origin'] | 32 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
23 | X-Content-Type-Options: [nosniff] | 33 | style-src ''self'' http://localhost:3000 ''nonce-GNAIWMhK6vckB0v4da/KBQ==''; |
24 | X-Download-Options: [noopen] | 34 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
25 | X-Frame-Options: [SAMEORIGIN] | 35 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
26 | X-Permitted-Cross-Domain-Policies: [none] | 36 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
27 | X-Request-Id: [a503d616-1c7e-4bf7-a0fa-c19c5711d0f0] | 37 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
28 | X-Runtime: ['0.176801'] | 38 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
29 | X-XSS-Protection: [1; mode=block] | 39 | worker-src ''self'' blob: http://localhost:3000' |
30 | content-length: ['1320'] | 40 | Content-Type: |
31 | status: {code: 200, message: OK} | 41 | - application/json; charset=utf-8 |
42 | ETag: | ||
43 | - W/"72be7489fe16a1627678f047c0de1c74" | ||
44 | Referrer-Policy: | ||
45 | - strict-origin-when-cross-origin | ||
46 | Transfer-Encoding: | ||
47 | - chunked | ||
48 | Vary: | ||
49 | - Accept, Origin | ||
50 | X-Content-Type-Options: | ||
51 | - nosniff | ||
52 | X-Download-Options: | ||
53 | - noopen | ||
54 | X-Frame-Options: | ||
55 | - SAMEORIGIN | ||
56 | X-Permitted-Cross-Domain-Policies: | ||
57 | - none | ||
58 | X-RateLimit-Limit: | ||
59 | - '300' | ||
60 | X-RateLimit-Remaining: | ||
61 | - '220' | ||
62 | X-RateLimit-Reset: | ||
63 | - '2022-11-07T21:00:00.630397Z' | ||
64 | X-Request-Id: | ||
65 | - 50d76f60-9650-4df2-a257-3f6661d9d74b | ||
66 | X-Runtime: | ||
67 | - '0.114352' | ||
68 | X-XSS-Protection: | ||
69 | - 1; mode=block | ||
70 | status: | ||
71 | code: 200 | ||
72 | message: OK | ||
32 | - request: | 73 | - request: |
33 | body: null | 74 | body: null |
34 | headers: | 75 | headers: |
35 | Accept: ['*/*'] | 76 | Accept: |
36 | Accept-Encoding: ['gzip, deflate'] | 77 | - '*/*' |
37 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 78 | Accept-Encoding: |
38 | Connection: [keep-alive] | 79 | - gzip, deflate |
39 | User-Agent: [python-requests/2.18.4] | 80 | Authorization: |
81 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
82 | Connection: | ||
83 | - keep-alive | ||
84 | User-Agent: | ||
85 | - tests/v311 | ||
40 | method: GET | 86 | method: GET |
41 | uri: http://localhost:3000/api/v1/statuses/103704151745623810/context | 87 | uri: http://localhost:3000/api/v1/statuses/109304277013555335/context |
42 | response: | 88 | response: |
43 | body: {string: '{"ancestors":[],"descendants":[]}'} | 89 | body: |
90 | string: '{"ancestors":[],"descendants":[]}' | ||
44 | headers: | 91 | headers: |
45 | Cache-Control: ['no-cache, no-store'] | 92 | Cache-Control: |
46 | Content-Type: [application/json; charset=utf-8] | 93 | - no-store |
47 | Referrer-Policy: [strict-origin-when-cross-origin] | 94 | Content-Security-Policy: |
48 | Transfer-Encoding: [chunked] | 95 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
49 | Vary: ['Accept-Encoding, Origin'] | 96 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
50 | X-Content-Type-Options: [nosniff] | 97 | style-src ''self'' http://localhost:3000 ''nonce-nBtqhdPx4pabLkpDbwC2FQ==''; |
51 | X-Download-Options: [noopen] | 98 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
52 | X-Frame-Options: [SAMEORIGIN] | 99 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
53 | X-Permitted-Cross-Domain-Policies: [none] | 100 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
54 | X-Request-Id: [a8e3f68d-6afa-436d-af3e-848e177833b7] | 101 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
55 | X-Runtime: ['0.083103'] | 102 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
56 | X-XSS-Protection: [1; mode=block] | 103 | worker-src ''self'' blob: http://localhost:3000' |
57 | content-length: ['33'] | 104 | Content-Type: |
58 | status: {code: 200, message: OK} | 105 | - application/json; charset=utf-8 |
106 | ETag: | ||
107 | - W/"9f63c6e481d078468cc8e85b74a1e710" | ||
108 | Referrer-Policy: | ||
109 | - strict-origin-when-cross-origin | ||
110 | Transfer-Encoding: | ||
111 | - chunked | ||
112 | Vary: | ||
113 | - Accept, Origin | ||
114 | X-Content-Type-Options: | ||
115 | - nosniff | ||
116 | X-Download-Options: | ||
117 | - noopen | ||
118 | X-Frame-Options: | ||
119 | - SAMEORIGIN | ||
120 | X-Permitted-Cross-Domain-Policies: | ||
121 | - none | ||
122 | X-Request-Id: | ||
123 | - 2927a065-ea11-45d1-b66c-e65525789237 | ||
124 | X-Runtime: | ||
125 | - '0.020702' | ||
126 | X-XSS-Protection: | ||
127 | - 1; mode=block | ||
128 | status: | ||
129 | code: 200 | ||
130 | message: OK | ||
59 | - request: | 131 | - request: |
60 | body: null | 132 | body: null |
61 | headers: | 133 | headers: |
62 | Accept: ['*/*'] | 134 | Accept: |
63 | Accept-Encoding: ['gzip, deflate'] | 135 | - '*/*' |
64 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 136 | Accept-Encoding: |
65 | Connection: [keep-alive] | 137 | - gzip, deflate |
66 | Content-Length: ['0'] | 138 | Authorization: |
67 | User-Agent: [python-requests/2.18.4] | 139 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN |
140 | Connection: | ||
141 | - keep-alive | ||
142 | Content-Length: | ||
143 | - '0' | ||
144 | User-Agent: | ||
145 | - tests/v311 | ||
68 | method: DELETE | 146 | method: DELETE |
69 | uri: http://localhost:3000/api/v1/statuses/103704151745623810 | 147 | uri: http://localhost:3000/api/v1/statuses/109304277013555335 |
70 | response: | 148 | response: |
71 | body: {string: '{"id":"103704151745623810","created_at":"2020-02-22T19:29:36.401Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/103704151745623810","url":"http://localhost/@mastodonpy_test/103704151745623810","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","reblog":null,"application":{"name":"Mastodon.py | 149 | body: |
72 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} | 150 | string: '{"id":"109304277013555335","created_at":"2022-11-07T19:55:06.589Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109304277013555335","url":"http://localhost:3000/@mastodonpy_test/109304277013555335","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py |
151 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
152 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI | ||
153 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":0,"statuses_count":1,"last_status_at":"2022-11-07","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' | ||
73 | headers: | 154 | headers: |
74 | Cache-Control: ['no-cache, no-store'] | 155 | Cache-Control: |
75 | Content-Type: [application/json; charset=utf-8] | 156 | - no-store |
76 | Referrer-Policy: [strict-origin-when-cross-origin] | 157 | Content-Security-Policy: |
77 | Transfer-Encoding: [chunked] | 158 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
78 | Vary: ['Accept-Encoding, Origin'] | 159 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
79 | X-Content-Type-Options: [nosniff] | 160 | style-src ''self'' http://localhost:3000 ''nonce-C/A6k3pDgkbmx4vPugt/dQ==''; |
80 | X-Download-Options: [noopen] | 161 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
81 | X-Frame-Options: [SAMEORIGIN] | 162 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
82 | X-Permitted-Cross-Domain-Policies: [none] | 163 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
83 | X-Request-Id: [89a91f35-cd4d-4c66-8387-13cf6fd50fe7] | 164 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
84 | X-Runtime: ['0.158974'] | 165 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
85 | X-XSS-Protection: [1; mode=block] | 166 | worker-src ''self'' blob: http://localhost:3000' |
86 | content-length: ['1290'] | 167 | Content-Type: |
87 | status: {code: 200, message: OK} | 168 | - application/json; charset=utf-8 |
169 | ETag: | ||
170 | - W/"e2561d193965fec303f06e3bec4372be" | ||
171 | Referrer-Policy: | ||
172 | - strict-origin-when-cross-origin | ||
173 | Transfer-Encoding: | ||
174 | - chunked | ||
175 | Vary: | ||
176 | - Accept, Origin | ||
177 | X-Content-Type-Options: | ||
178 | - nosniff | ||
179 | X-Download-Options: | ||
180 | - noopen | ||
181 | X-Frame-Options: | ||
182 | - SAMEORIGIN | ||
183 | X-Permitted-Cross-Domain-Policies: | ||
184 | - none | ||
185 | X-Request-Id: | ||
186 | - a40ffaa0-4b2e-425b-a3c3-df63fd1cd2bb | ||
187 | X-Runtime: | ||
188 | - '0.029277' | ||
189 | X-XSS-Protection: | ||
190 | - 1; mode=block | ||
191 | status: | ||
192 | code: 200 | ||
193 | message: OK | ||
88 | version: 1 | 194 | version: 1 |