diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-07 23:11:30 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-07 23:11:30 +0200 |
commit | 3277ca777821e76955fb26d80788939a311db9db (patch) | |
tree | bef0749a451464d00e59fb3c685e6eb6d69a8a78 /tests/cassettes/test_polls.yaml | |
parent | 33d1e17e2e75884abd6e0a8a3e4a4da388e97e55 (diff) | |
download | mastodon.py-3277ca777821e76955fb26d80788939a311db9db.tar.gz |
Initial test fixing pass. Four tests still fail.
Diffstat (limited to 'tests/cassettes/test_polls.yaml')
-rw-r--r-- | tests/cassettes/test_polls.yaml | 475 |
1 files changed, 337 insertions, 138 deletions
diff --git a/tests/cassettes/test_polls.yaml b/tests/cassettes/test_polls.yaml index 328e852..e54ad7a 100644 --- a/tests/cassettes/test_polls.yaml +++ b/tests/cassettes/test_polls.yaml | |||
@@ -1,180 +1,379 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: '{"poll": {"hide_totals": false, "multiple": true, "expires_in": 300, "options": | 3 | body: '{"status": "nice", "poll": {"options": ["four twenty", "sixty-nine"], "expires_in": |
4 | ["four twenty", "sixty-nine"]}, "status": "nice"}' | 4 | 300, "multiple": true, "hide_totals": false}}' |
5 | headers: | 5 | headers: |
6 | Accept: ['*/*'] | 6 | Accept: |
7 | Accept-Encoding: ['gzip, deflate'] | 7 | - '*/*' |
8 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] | 8 | Accept-Encoding: |
9 | Connection: [keep-alive] | 9 | - gzip, deflate |
10 | Content-Length: ['129'] | 10 | Authorization: |
11 | Content-Type: [application/json] | 11 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2 |
12 | User-Agent: [python-requests/2.18.4] | 12 | Connection: |
13 | - keep-alive | ||
14 | Content-Length: | ||
15 | - '129' | ||
16 | Content-Type: | ||
17 | - application/json | ||
18 | User-Agent: | ||
19 | - tests/v311 | ||
13 | method: POST | 20 | method: POST |
14 | uri: http://localhost:3000/api/v1/statuses | 21 | uri: http://localhost:3000/api/v1/statuses |
15 | response: | 22 | response: |
16 | body: {string: '{"id":"103704150606384340","created_at":"2020-02-22T19:29:19.045Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704150606384340","url":"http://localhost/@admin/103704150606384340","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003enice\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py | 23 | body: |
17 | test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","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":1,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":{"id":"1","expires_at":"2020-02-22T19:34:19.024Z","expired":false,"multiple":true,"votes_count":0,"voters_count":0,"voted":true,"own_votes":[],"options":[{"title":"four | 24 | string: '{"id":"109304276092288950","created_at":"2022-11-07T19:54:52.528Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/109304276092288950","url":"http://localhost:3000/@admin/109304276092288950","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003enice\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py |
18 | twenty","votes_count":0},{"title":"sixty-nine","votes_count":0}],"emojis":[]}}'} | 25 | test suite","website":null},"account":{"id":"109304268902557892","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":1,"last_status_at":"2022-11-07","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":{"id":"1","expires_at":"2022-11-07T19:59:52.525Z","expired":false,"multiple":true,"votes_count":0,"voters_count":0,"voted":true,"own_votes":[],"options":[{"title":"four |
26 | twenty","votes_count":0},{"title":"sixty-nine","votes_count":0}],"emojis":[]}}' | ||
19 | headers: | 27 | headers: |
20 | Cache-Control: ['no-cache, no-store'] | 28 | Cache-Control: |
21 | Content-Type: [application/json; charset=utf-8] | 29 | - no-store |
22 | Referrer-Policy: [strict-origin-when-cross-origin] | 30 | Content-Security-Policy: |
23 | Transfer-Encoding: [chunked] | 31 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
24 | Vary: ['Accept-Encoding, Origin'] | 32 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
25 | X-Content-Type-Options: [nosniff] | 33 | style-src ''self'' http://localhost:3000 ''nonce-6GJRPkmji/arkGPB38ZAMg==''; |
26 | X-Download-Options: [noopen] | 34 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
27 | X-Frame-Options: [SAMEORIGIN] | 35 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
28 | X-Permitted-Cross-Domain-Policies: [none] | 36 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
29 | X-Request-Id: [252c3b26-6bfd-4ba8-a682-3353779c85e8] | 37 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
30 | X-Runtime: ['0.276535'] | 38 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
31 | X-XSS-Protection: [1; mode=block] | 39 | worker-src ''self'' blob: http://localhost:3000' |
32 | content-length: ['1495'] | 40 | Content-Type: |
33 | status: {code: 200, message: OK} | 41 | - application/json; charset=utf-8 |
42 | ETag: | ||
43 | - W/"c3e67cdd3d241a2249d1a33b4b5ef3a6" | ||
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 | - '296' | ||
62 | X-RateLimit-Reset: | ||
63 | - '2022-11-07T21:00:00.559929Z' | ||
64 | X-Request-Id: | ||
65 | - 21617a66-5dbb-41c5-8c3c-588c59c97ccf | ||
66 | X-Runtime: | ||
67 | - '0.052390' | ||
68 | X-XSS-Protection: | ||
69 | - 1; mode=block | ||
70 | status: | ||
71 | code: 200 | ||
72 | message: OK | ||
34 | - request: | 73 | - request: |
35 | body: choices%5B%5D=1 | 74 | body: choices%5B%5D=1 |
36 | headers: | 75 | headers: |
37 | Accept: ['*/*'] | 76 | Accept: |
38 | Accept-Encoding: ['gzip, deflate'] | 77 | - '*/*' |
39 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 78 | Accept-Encoding: |
40 | Connection: [keep-alive] | 79 | - gzip, deflate |
41 | Content-Length: ['15'] | 80 | Authorization: |
42 | Content-Type: [application/x-www-form-urlencoded] | 81 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN |
43 | User-Agent: [python-requests/2.18.4] | 82 | Connection: |
83 | - keep-alive | ||
84 | Content-Length: | ||
85 | - '15' | ||
86 | Content-Type: | ||
87 | - application/x-www-form-urlencoded | ||
88 | User-Agent: | ||
89 | - tests/v311 | ||
44 | method: POST | 90 | method: POST |
45 | uri: http://localhost:3000/api/v1/polls/1/votes | 91 | uri: http://localhost:3000/api/v1/polls/1/votes |
46 | response: | 92 | response: |
47 | body: {string: '{"id":"1","expires_at":"2020-02-22T19:34:19.024Z","expired":false,"multiple":true,"votes_count":1,"voters_count":1,"voted":true,"own_votes":[1],"options":[{"title":"four | 93 | body: |
48 | twenty","votes_count":0},{"title":"sixty-nine","votes_count":1}],"emojis":[]}'} | 94 | string: '{"id":"1","expires_at":"2022-11-07T19:59:52.525Z","expired":false,"multiple":true,"votes_count":1,"voters_count":1,"voted":true,"own_votes":[1],"options":[{"title":"four |
95 | twenty","votes_count":0},{"title":"sixty-nine","votes_count":1}],"emojis":[]}' | ||
49 | headers: | 96 | headers: |
50 | Cache-Control: ['no-cache, no-store'] | 97 | Cache-Control: |
51 | Content-Type: [application/json; charset=utf-8] | 98 | - no-store |
52 | Referrer-Policy: [strict-origin-when-cross-origin] | 99 | Content-Security-Policy: |
53 | Transfer-Encoding: [chunked] | 100 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
54 | Vary: ['Accept-Encoding, Origin'] | 101 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
55 | X-Content-Type-Options: [nosniff] | 102 | style-src ''self'' http://localhost:3000 ''nonce-gRcXZ4paLfrr7eo71Nu4lA==''; |
56 | X-Download-Options: [noopen] | 103 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
57 | X-Frame-Options: [SAMEORIGIN] | 104 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
58 | X-Permitted-Cross-Domain-Policies: [none] | 105 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
59 | X-Request-Id: [dd18e861-0884-4c31-a968-f0e6a56cf5b1] | 106 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
60 | X-Runtime: ['0.198109'] | 107 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
61 | X-XSS-Protection: [1; mode=block] | 108 | worker-src ''self'' blob: http://localhost:3000' |
62 | content-length: ['247'] | 109 | Content-Type: |
63 | status: {code: 200, message: OK} | 110 | - application/json; charset=utf-8 |
111 | ETag: | ||
112 | - W/"c6095e3ba25210f6eae68531ef2ba40b" | ||
113 | Referrer-Policy: | ||
114 | - strict-origin-when-cross-origin | ||
115 | Transfer-Encoding: | ||
116 | - chunked | ||
117 | Vary: | ||
118 | - Accept, Origin | ||
119 | X-Content-Type-Options: | ||
120 | - nosniff | ||
121 | X-Download-Options: | ||
122 | - noopen | ||
123 | X-Frame-Options: | ||
124 | - SAMEORIGIN | ||
125 | X-Permitted-Cross-Domain-Policies: | ||
126 | - none | ||
127 | X-Request-Id: | ||
128 | - 1fb22fc7-b591-41e2-84c3-8a77ebed2b95 | ||
129 | X-Runtime: | ||
130 | - '0.037502' | ||
131 | X-XSS-Protection: | ||
132 | - 1; mode=block | ||
133 | status: | ||
134 | code: 200 | ||
135 | message: OK | ||
64 | - request: | 136 | - request: |
65 | body: null | 137 | body: null |
66 | headers: | 138 | headers: |
67 | Accept: ['*/*'] | 139 | Accept: |
68 | Accept-Encoding: ['gzip, deflate'] | 140 | - '*/*' |
69 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 141 | Accept-Encoding: |
70 | Connection: [keep-alive] | 142 | - gzip, deflate |
71 | User-Agent: [python-requests/2.18.4] | 143 | Authorization: |
144 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
145 | Connection: | ||
146 | - keep-alive | ||
147 | User-Agent: | ||
148 | - tests/v311 | ||
72 | method: GET | 149 | method: GET |
73 | uri: http://localhost:3000/api/v1/polls/1 | 150 | uri: http://localhost:3000/api/v1/polls/1 |
74 | response: | 151 | response: |
75 | body: {string: '{"id":"1","expires_at":"2020-02-22T19:34:19.024Z","expired":false,"multiple":true,"votes_count":1,"voters_count":1,"voted":true,"own_votes":[1],"options":[{"title":"four | 152 | body: |
76 | twenty","votes_count":0},{"title":"sixty-nine","votes_count":1}],"emojis":[]}'} | 153 | string: '{"id":"1","expires_at":"2022-11-07T19:59:52.525Z","expired":false,"multiple":true,"votes_count":1,"voters_count":1,"voted":true,"own_votes":[1],"options":[{"title":"four |
154 | twenty","votes_count":0},{"title":"sixty-nine","votes_count":1}],"emojis":[]}' | ||
77 | headers: | 155 | headers: |
78 | Cache-Control: ['no-cache, no-store'] | 156 | Cache-Control: |
79 | Content-Type: [application/json; charset=utf-8] | 157 | - no-store |
80 | Referrer-Policy: [strict-origin-when-cross-origin] | 158 | Content-Security-Policy: |
81 | Transfer-Encoding: [chunked] | 159 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
82 | Vary: ['Accept-Encoding, Origin'] | 160 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
83 | X-Content-Type-Options: [nosniff] | 161 | style-src ''self'' http://localhost:3000 ''nonce-XbUIUCIg3gw1sb2kDMruTw==''; |
84 | X-Download-Options: [noopen] | 162 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
85 | X-Frame-Options: [SAMEORIGIN] | 163 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
86 | X-Permitted-Cross-Domain-Policies: [none] | 164 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
87 | X-Request-Id: [637a33a9-2291-4a69-98fb-8a2c4243e009] | 165 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
88 | X-Runtime: ['0.063736'] | 166 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
89 | X-XSS-Protection: [1; mode=block] | 167 | worker-src ''self'' blob: http://localhost:3000' |
90 | content-length: ['247'] | 168 | Content-Type: |
91 | status: {code: 200, message: OK} | 169 | - application/json; charset=utf-8 |
170 | ETag: | ||
171 | - W/"c6095e3ba25210f6eae68531ef2ba40b" | ||
172 | Referrer-Policy: | ||
173 | - strict-origin-when-cross-origin | ||
174 | Transfer-Encoding: | ||
175 | - chunked | ||
176 | Vary: | ||
177 | - Accept, Origin | ||
178 | X-Content-Type-Options: | ||
179 | - nosniff | ||
180 | X-Download-Options: | ||
181 | - noopen | ||
182 | X-Frame-Options: | ||
183 | - SAMEORIGIN | ||
184 | X-Permitted-Cross-Domain-Policies: | ||
185 | - none | ||
186 | X-Request-Id: | ||
187 | - 6b70cede-4c1b-45d7-98b3-810ca48de6ef | ||
188 | X-Runtime: | ||
189 | - '0.021303' | ||
190 | X-XSS-Protection: | ||
191 | - 1; mode=block | ||
192 | status: | ||
193 | code: 200 | ||
194 | message: OK | ||
92 | - request: | 195 | - request: |
93 | body: choices%5B%5D=0 | 196 | body: choices%5B%5D=0 |
94 | headers: | 197 | headers: |
95 | Accept: ['*/*'] | 198 | Accept: |
96 | Accept-Encoding: ['gzip, deflate'] | 199 | - '*/*' |
97 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 200 | Accept-Encoding: |
98 | Connection: [keep-alive] | 201 | - gzip, deflate |
99 | Content-Length: ['15'] | 202 | Authorization: |
100 | Content-Type: [application/x-www-form-urlencoded] | 203 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN |
101 | User-Agent: [python-requests/2.18.4] | 204 | Connection: |
205 | - keep-alive | ||
206 | Content-Length: | ||
207 | - '15' | ||
208 | Content-Type: | ||
209 | - application/x-www-form-urlencoded | ||
210 | User-Agent: | ||
211 | - tests/v311 | ||
102 | method: POST | 212 | method: POST |
103 | uri: http://localhost:3000/api/v1/polls/1/votes | 213 | uri: http://localhost:3000/api/v1/polls/1/votes |
104 | response: | 214 | response: |
105 | body: {string: '{"id":"1","expires_at":"2020-02-22T19:34:19.024Z","expired":false,"multiple":true,"votes_count":2,"voters_count":1,"voted":true,"own_votes":[1,0],"options":[{"title":"four | 215 | body: |
106 | twenty","votes_count":1},{"title":"sixty-nine","votes_count":1}],"emojis":[]}'} | 216 | string: '{"id":"1","expires_at":"2022-11-07T19:59:52.525Z","expired":false,"multiple":true,"votes_count":2,"voters_count":1,"voted":true,"own_votes":[1,0],"options":[{"title":"four |
217 | twenty","votes_count":1},{"title":"sixty-nine","votes_count":1}],"emojis":[]}' | ||
107 | headers: | 218 | headers: |
108 | Cache-Control: ['no-cache, no-store'] | 219 | Cache-Control: |
109 | Content-Type: [application/json; charset=utf-8] | 220 | - no-store |
110 | Referrer-Policy: [strict-origin-when-cross-origin] | 221 | Content-Security-Policy: |
111 | Transfer-Encoding: [chunked] | 222 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
112 | Vary: ['Accept-Encoding, Origin'] | 223 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
113 | X-Content-Type-Options: [nosniff] | 224 | style-src ''self'' http://localhost:3000 ''nonce-+izNadpuPYWahmw6ZyNt/A==''; |
114 | X-Download-Options: [noopen] | 225 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
115 | X-Frame-Options: [SAMEORIGIN] | 226 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
116 | X-Permitted-Cross-Domain-Policies: [none] | 227 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
117 | X-Request-Id: [c0c2d3a3-38a4-41ae-95da-2be7d33abda5] | 228 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
118 | X-Runtime: ['0.067790'] | 229 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
119 | X-XSS-Protection: [1; mode=block] | 230 | worker-src ''self'' blob: http://localhost:3000' |
120 | content-length: ['249'] | 231 | Content-Type: |
121 | status: {code: 200, message: OK} | 232 | - application/json; charset=utf-8 |
233 | ETag: | ||
234 | - W/"84ef4559d6c01ae800e9088524a881f8" | ||
235 | Referrer-Policy: | ||
236 | - strict-origin-when-cross-origin | ||
237 | Transfer-Encoding: | ||
238 | - chunked | ||
239 | Vary: | ||
240 | - Accept, Origin | ||
241 | X-Content-Type-Options: | ||
242 | - nosniff | ||
243 | X-Download-Options: | ||
244 | - noopen | ||
245 | X-Frame-Options: | ||
246 | - SAMEORIGIN | ||
247 | X-Permitted-Cross-Domain-Policies: | ||
248 | - none | ||
249 | X-Request-Id: | ||
250 | - ff003b47-36da-4262-8344-b92a828f9215 | ||
251 | X-Runtime: | ||
252 | - '0.024251' | ||
253 | X-XSS-Protection: | ||
254 | - 1; mode=block | ||
255 | status: | ||
256 | code: 200 | ||
257 | message: OK | ||
122 | - request: | 258 | - request: |
123 | body: null | 259 | body: null |
124 | headers: | 260 | headers: |
125 | Accept: ['*/*'] | 261 | Accept: |
126 | Accept-Encoding: ['gzip, deflate'] | 262 | - '*/*' |
127 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 263 | Accept-Encoding: |
128 | Connection: [keep-alive] | 264 | - gzip, deflate |
129 | User-Agent: [python-requests/2.18.4] | 265 | Authorization: |
266 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
267 | Connection: | ||
268 | - keep-alive | ||
269 | User-Agent: | ||
270 | - tests/v311 | ||
130 | method: GET | 271 | method: GET |
131 | uri: http://localhost:3000/api/v1/polls/1 | 272 | uri: http://localhost:3000/api/v1/polls/1 |
132 | response: | 273 | response: |
133 | body: {string: '{"id":"1","expires_at":"2020-02-22T19:34:19.024Z","expired":false,"multiple":true,"votes_count":2,"voters_count":1,"voted":true,"own_votes":[1,0],"options":[{"title":"four | 274 | body: |
134 | twenty","votes_count":1},{"title":"sixty-nine","votes_count":1}],"emojis":[]}'} | 275 | string: '{"id":"1","expires_at":"2022-11-07T19:59:52.525Z","expired":false,"multiple":true,"votes_count":2,"voters_count":1,"voted":true,"own_votes":[1,0],"options":[{"title":"four |
276 | twenty","votes_count":1},{"title":"sixty-nine","votes_count":1}],"emojis":[]}' | ||
135 | headers: | 277 | headers: |
136 | Cache-Control: ['no-cache, no-store'] | 278 | Cache-Control: |
137 | Content-Type: [application/json; charset=utf-8] | 279 | - no-store |
138 | Referrer-Policy: [strict-origin-when-cross-origin] | 280 | Content-Security-Policy: |
139 | Transfer-Encoding: [chunked] | 281 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
140 | Vary: ['Accept-Encoding, Origin'] | 282 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
141 | X-Content-Type-Options: [nosniff] | 283 | style-src ''self'' http://localhost:3000 ''nonce-d79WunPEs5gFhoxt7jHUrQ==''; |
142 | X-Download-Options: [noopen] | 284 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
143 | X-Frame-Options: [SAMEORIGIN] | 285 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
144 | X-Permitted-Cross-Domain-Policies: [none] | 286 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
145 | X-Request-Id: [cc549c17-839d-4e10-85e8-1d278ea9e17f] | 287 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
146 | X-Runtime: ['0.050189'] | 288 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
147 | X-XSS-Protection: [1; mode=block] | 289 | worker-src ''self'' blob: http://localhost:3000' |
148 | content-length: ['249'] | 290 | Content-Type: |
149 | status: {code: 200, message: OK} | 291 | - application/json; charset=utf-8 |
292 | ETag: | ||
293 | - W/"84ef4559d6c01ae800e9088524a881f8" | ||
294 | Referrer-Policy: | ||
295 | - strict-origin-when-cross-origin | ||
296 | Transfer-Encoding: | ||
297 | - chunked | ||
298 | Vary: | ||
299 | - Accept, Origin | ||
300 | X-Content-Type-Options: | ||
301 | - nosniff | ||
302 | X-Download-Options: | ||
303 | - noopen | ||
304 | X-Frame-Options: | ||
305 | - SAMEORIGIN | ||
306 | X-Permitted-Cross-Domain-Policies: | ||
307 | - none | ||
308 | X-Request-Id: | ||
309 | - 7895d556-0436-4ee9-b820-4405f6800a39 | ||
310 | X-Runtime: | ||
311 | - '0.012169' | ||
312 | X-XSS-Protection: | ||
313 | - 1; mode=block | ||
314 | status: | ||
315 | code: 200 | ||
316 | message: OK | ||
150 | - request: | 317 | - request: |
151 | body: null | 318 | body: null |
152 | headers: | 319 | headers: |
153 | Accept: ['*/*'] | 320 | Accept: |
154 | Accept-Encoding: ['gzip, deflate'] | 321 | - '*/*' |
155 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] | 322 | Accept-Encoding: |
156 | Connection: [keep-alive] | 323 | - gzip, deflate |
157 | Content-Length: ['0'] | 324 | Authorization: |
158 | User-Agent: [python-requests/2.18.4] | 325 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2 |
326 | Connection: | ||
327 | - keep-alive | ||
328 | Content-Length: | ||
329 | - '0' | ||
330 | User-Agent: | ||
331 | - tests/v311 | ||
159 | method: DELETE | 332 | method: DELETE |
160 | uri: http://localhost:3000/api/v1/statuses/103704150606384340 | 333 | uri: http://localhost:3000/api/v1/statuses/109304276092288950 |
161 | response: | 334 | response: |
162 | body: {string: '{"id":"103704150606384340","created_at":"2020-02-22T19:29:19.045Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704150606384340","url":"http://localhost/@admin/103704150606384340","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"nice","reblog":null,"application":{"name":"Mastodon.py | 335 | body: |
163 | test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","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":1,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":{"id":"1","expires_at":"2020-02-22T19:34:19.024Z","expired":false,"multiple":true,"votes_count":2,"voters_count":1,"voted":true,"own_votes":[],"options":[{"title":"four | 336 | string: '{"id":"109304276092288950","created_at":"2022-11-07T19:54:52.528Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/109304276092288950","url":"http://localhost:3000/@admin/109304276092288950","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"nice","filtered":[],"reblog":null,"application":{"name":"Mastodon.py |
164 | twenty","votes_count":1},{"title":"sixty-nine","votes_count":1}],"emojis":[]}}'} | 337 | test suite","website":null},"account":{"id":"109304268902557892","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":"2022-11-07","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":{"id":"1","expires_at":"2022-11-07T19:59:52.525Z","expired":false,"multiple":true,"votes_count":2,"voters_count":1,"voted":true,"own_votes":[],"options":[{"title":"four |
338 | twenty","votes_count":1},{"title":"sixty-nine","votes_count":1}],"emojis":[]}}' | ||
165 | headers: | 339 | headers: |
166 | Cache-Control: ['no-cache, no-store'] | 340 | Cache-Control: |
167 | Content-Type: [application/json; charset=utf-8] | 341 | - no-store |
168 | Referrer-Policy: [strict-origin-when-cross-origin] | 342 | Content-Security-Policy: |
169 | Transfer-Encoding: [chunked] | 343 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
170 | Vary: ['Accept-Encoding, Origin'] | 344 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
171 | X-Content-Type-Options: [nosniff] | 345 | style-src ''self'' http://localhost:3000 ''nonce-BvHSEQQToyPOIGykJ6DZNQ==''; |
172 | X-Download-Options: [noopen] | 346 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
173 | X-Frame-Options: [SAMEORIGIN] | 347 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
174 | X-Permitted-Cross-Domain-Policies: [none] | 348 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
175 | X-Request-Id: [e46de07b-f3a1-42ab-a802-831ae179c8e4] | 349 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
176 | X-Runtime: ['0.168389'] | 350 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
177 | X-XSS-Protection: [1; mode=block] | 351 | worker-src ''self'' blob: http://localhost:3000' |
178 | content-length: ['1465'] | 352 | Content-Type: |
179 | status: {code: 200, message: OK} | 353 | - application/json; charset=utf-8 |
354 | ETag: | ||
355 | - W/"f2668a0dccaa967f2e728c459462edfb" | ||
356 | Referrer-Policy: | ||
357 | - strict-origin-when-cross-origin | ||
358 | Transfer-Encoding: | ||
359 | - chunked | ||
360 | Vary: | ||
361 | - Accept, Origin | ||
362 | X-Content-Type-Options: | ||
363 | - nosniff | ||
364 | X-Download-Options: | ||
365 | - noopen | ||
366 | X-Frame-Options: | ||
367 | - SAMEORIGIN | ||
368 | X-Permitted-Cross-Domain-Policies: | ||
369 | - none | ||
370 | X-Request-Id: | ||
371 | - ca637876-4c8a-4302-a055-004b16e4ad09 | ||
372 | X-Runtime: | ||
373 | - '0.029528' | ||
374 | X-XSS-Protection: | ||
375 | - 1; mode=block | ||
376 | status: | ||
377 | code: 200 | ||
378 | message: OK | ||
180 | version: 1 | 379 | version: 1 |