diff options
Diffstat (limited to 'tests/cassettes/test_list_add_remove_account.yaml')
-rw-r--r-- | tests/cassettes/test_list_add_remove_account.yaml | 367 |
1 files changed, 367 insertions, 0 deletions
diff --git a/tests/cassettes/test_list_add_remove_account.yaml b/tests/cassettes/test_list_add_remove_account.yaml new file mode 100644 index 0000000..f0b0ba7 --- /dev/null +++ b/tests/cassettes/test_list_add_remove_account.yaml | |||
@@ -0,0 +1,367 @@ | |||
1 | interactions: | ||
2 | - request: | ||
3 | body: title=ham+burglars | ||
4 | headers: | ||
5 | Accept: ['*/*'] | ||
6 | Accept-Encoding: ['gzip, deflate'] | ||
7 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
8 | Connection: [keep-alive] | ||
9 | Content-Length: ['18'] | ||
10 | Content-Type: [application/x-www-form-urlencoded] | ||
11 | User-Agent: [python-requests/2.9.1] | ||
12 | method: POST | ||
13 | uri: http://localhost:3000/api/v1/lists | ||
14 | response: | ||
15 | body: {string: '{"id":"23","title":"ham burglars"}'} | ||
16 | headers: | ||
17 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
18 | Content-Type: [application/json; charset=utf-8] | ||
19 | ETag: [W/"0bcee380026306b4b8a9913243ef8d50"] | ||
20 | Transfer-Encoding: [chunked] | ||
21 | Vary: ['Accept-Encoding, Origin'] | ||
22 | X-Content-Type-Options: [nosniff] | ||
23 | X-Frame-Options: [SAMEORIGIN] | ||
24 | X-Request-Id: [259f3b2e-1a4a-469d-82da-c2c604c4a950] | ||
25 | X-Runtime: ['0.056062'] | ||
26 | X-XSS-Protection: [1; mode=block] | ||
27 | content-length: ['34'] | ||
28 | status: {code: 200, message: OK} | ||
29 | - request: | ||
30 | body: null | ||
31 | headers: | ||
32 | Accept: ['*/*'] | ||
33 | Accept-Encoding: ['gzip, deflate'] | ||
34 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] | ||
35 | Connection: [keep-alive] | ||
36 | User-Agent: [python-requests/2.9.1] | ||
37 | method: GET | ||
38 | uri: http://localhost:3000/api/v1/accounts/verify_credentials | ||
39 | response: | ||
40 | body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-04-17T21:40:55.626Z","note":"\u003cp\u003e\u003c/p\u003e","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":51,"source":{"privacy":"public","sensitive":false,"note":""}}'} | ||
41 | headers: | ||
42 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
43 | Content-Type: [application/json; charset=utf-8] | ||
44 | ETag: [W/"52597edacbe583a8c705f06e18236329"] | ||
45 | Transfer-Encoding: [chunked] | ||
46 | Vary: ['Accept-Encoding, Origin'] | ||
47 | X-Content-Type-Options: [nosniff] | ||
48 | X-Frame-Options: [SAMEORIGIN] | ||
49 | X-Request-Id: [2d436ac6-f2f9-4b2c-882e-8700462f1360] | ||
50 | X-Runtime: ['0.071364'] | ||
51 | X-XSS-Protection: [1; mode=block] | ||
52 | content-length: ['571'] | ||
53 | status: {code: 200, message: OK} | ||
54 | - request: | ||
55 | body: null | ||
56 | headers: | ||
57 | Accept: ['*/*'] | ||
58 | Accept-Encoding: ['gzip, deflate'] | ||
59 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
60 | Connection: [keep-alive] | ||
61 | Content-Length: ['0'] | ||
62 | User-Agent: [python-requests/2.9.1] | ||
63 | method: POST | ||
64 | uri: http://localhost:3000/api/v1/accounts/1/follow | ||
65 | response: | ||
66 | body: {string: '{"id":"1","following":true,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'} | ||
67 | headers: | ||
68 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
69 | Content-Type: [application/json; charset=utf-8] | ||
70 | ETag: [W/"98c147556f83bd7b26490f2eac449592"] | ||
71 | Transfer-Encoding: [chunked] | ||
72 | Vary: ['Accept-Encoding, Origin'] | ||
73 | X-Content-Type-Options: [nosniff] | ||
74 | X-Frame-Options: [SAMEORIGIN] | ||
75 | X-Request-Id: [79ef47dd-e003-4d92-b6ba-dfb51011822f] | ||
76 | X-Runtime: ['0.099480'] | ||
77 | X-XSS-Protection: [1; mode=block] | ||
78 | content-length: ['174'] | ||
79 | status: {code: 200, message: OK} | ||
80 | - request: | ||
81 | body: account_ids%5B%5D=1 | ||
82 | headers: | ||
83 | Accept: ['*/*'] | ||
84 | Accept-Encoding: ['gzip, deflate'] | ||
85 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
86 | Connection: [keep-alive] | ||
87 | Content-Length: ['19'] | ||
88 | Content-Type: [application/x-www-form-urlencoded] | ||
89 | User-Agent: [python-requests/2.9.1] | ||
90 | method: POST | ||
91 | uri: http://localhost:3000/api/v1/lists/23/accounts | ||
92 | response: | ||
93 | body: {string: '{}'} | ||
94 | headers: | ||
95 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
96 | Content-Type: [application/json; charset=utf-8] | ||
97 | ETag: [W/"ee6751ce2dc32e165dd24aca071f6eed"] | ||
98 | Transfer-Encoding: [chunked] | ||
99 | Vary: ['Accept-Encoding, Origin'] | ||
100 | X-Content-Type-Options: [nosniff] | ||
101 | X-Frame-Options: [SAMEORIGIN] | ||
102 | X-Request-Id: [0a67c0e2-3839-4c48-9d71-6a2a2e53f493] | ||
103 | X-Runtime: ['0.064774'] | ||
104 | X-XSS-Protection: [1; mode=block] | ||
105 | content-length: ['2'] | ||
106 | status: {code: 200, message: OK} | ||
107 | - request: | ||
108 | body: null | ||
109 | headers: | ||
110 | Accept: ['*/*'] | ||
111 | Accept-Encoding: ['gzip, deflate'] | ||
112 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
113 | Connection: [keep-alive] | ||
114 | User-Agent: [python-requests/2.9.1] | ||
115 | method: GET | ||
116 | uri: http://localhost:3000/api/v1/lists/23/accounts | ||
117 | response: | ||
118 | body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-04-17T21:40:55.626Z","note":"\u003cp\u003e\u003c/p\u003e","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":1,"following_count":0,"statuses_count":51}]'} | ||
119 | headers: | ||
120 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
121 | Content-Type: [application/json; charset=utf-8] | ||
122 | ETag: [W/"4d3af392a570a5835fef368719dd8061"] | ||
123 | Link: ['<http://localhost:3000/api/v1/lists/23/accounts?since_id=1>; rel="prev"'] | ||
124 | Transfer-Encoding: [chunked] | ||
125 | Vary: ['Accept-Encoding, Origin'] | ||
126 | X-Content-Type-Options: [nosniff] | ||
127 | X-Frame-Options: [SAMEORIGIN] | ||
128 | X-Request-Id: [8fe7676a-8ba8-4eb9-bd43-63889ea9c192] | ||
129 | X-Runtime: ['0.052742'] | ||
130 | X-XSS-Protection: [1; mode=block] | ||
131 | content-length: ['515'] | ||
132 | status: {code: 200, message: OK} | ||
133 | - request: | ||
134 | body: null | ||
135 | headers: | ||
136 | Accept: ['*/*'] | ||
137 | Accept-Encoding: ['gzip, deflate'] | ||
138 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
139 | Connection: [keep-alive] | ||
140 | Content-Length: ['0'] | ||
141 | User-Agent: [python-requests/2.9.1] | ||
142 | method: POST | ||
143 | uri: http://localhost:3000/api/v1/accounts/1/unfollow | ||
144 | response: | ||
145 | body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'} | ||
146 | headers: | ||
147 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
148 | Content-Type: [application/json; charset=utf-8] | ||
149 | ETag: [W/"1e5f6a4b23911d5c2aeb66f774492a0b"] | ||
150 | Transfer-Encoding: [chunked] | ||
151 | Vary: ['Accept-Encoding, Origin'] | ||
152 | X-Content-Type-Options: [nosniff] | ||
153 | X-Frame-Options: [SAMEORIGIN] | ||
154 | X-Request-Id: [f9e46470-cfe8-4d23-bbf8-d909a0c9502a] | ||
155 | X-Runtime: ['0.086559'] | ||
156 | X-XSS-Protection: [1; mode=block] | ||
157 | content-length: ['175'] | ||
158 | status: {code: 200, message: OK} | ||
159 | - request: | ||
160 | body: null | ||
161 | headers: | ||
162 | Accept: ['*/*'] | ||
163 | Accept-Encoding: ['gzip, deflate'] | ||
164 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
165 | Connection: [keep-alive] | ||
166 | User-Agent: [python-requests/2.9.1] | ||
167 | method: GET | ||
168 | uri: http://localhost:3000/api/v1/lists/23/accounts | ||
169 | response: | ||
170 | body: {string: '[]'} | ||
171 | headers: | ||
172 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
173 | Content-Type: [application/json; charset=utf-8] | ||
174 | ETag: [W/"7762a54b770895c411eb3e681494e743"] | ||
175 | Transfer-Encoding: [chunked] | ||
176 | Vary: ['Accept-Encoding, Origin'] | ||
177 | X-Content-Type-Options: [nosniff] | ||
178 | X-Frame-Options: [SAMEORIGIN] | ||
179 | X-Request-Id: [500b6154-3bdb-4cbb-bb99-e87072552943] | ||
180 | X-Runtime: ['0.057220'] | ||
181 | X-XSS-Protection: [1; mode=block] | ||
182 | content-length: ['2'] | ||
183 | status: {code: 200, message: OK} | ||
184 | - request: | ||
185 | body: null | ||
186 | headers: | ||
187 | Accept: ['*/*'] | ||
188 | Accept-Encoding: ['gzip, deflate'] | ||
189 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
190 | Connection: [keep-alive] | ||
191 | Content-Length: ['0'] | ||
192 | User-Agent: [python-requests/2.9.1] | ||
193 | method: POST | ||
194 | uri: http://localhost:3000/api/v1/accounts/1/follow | ||
195 | response: | ||
196 | body: {string: '{"id":"1","following":true,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'} | ||
197 | headers: | ||
198 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
199 | Content-Type: [application/json; charset=utf-8] | ||
200 | ETag: [W/"98c147556f83bd7b26490f2eac449592"] | ||
201 | Transfer-Encoding: [chunked] | ||
202 | Vary: ['Accept-Encoding, Origin'] | ||
203 | X-Content-Type-Options: [nosniff] | ||
204 | X-Frame-Options: [SAMEORIGIN] | ||
205 | X-Request-Id: [1f5d47f3-591f-4e91-bd77-0942c45caedb] | ||
206 | X-Runtime: ['0.081679'] | ||
207 | X-XSS-Protection: [1; mode=block] | ||
208 | content-length: ['174'] | ||
209 | status: {code: 200, message: OK} | ||
210 | - request: | ||
211 | body: account_ids%5B%5D=1 | ||
212 | headers: | ||
213 | Accept: ['*/*'] | ||
214 | Accept-Encoding: ['gzip, deflate'] | ||
215 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
216 | Connection: [keep-alive] | ||
217 | Content-Length: ['19'] | ||
218 | Content-Type: [application/x-www-form-urlencoded] | ||
219 | User-Agent: [python-requests/2.9.1] | ||
220 | method: POST | ||
221 | uri: http://localhost:3000/api/v1/lists/23/accounts | ||
222 | response: | ||
223 | body: {string: '{}'} | ||
224 | headers: | ||
225 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
226 | Content-Type: [application/json; charset=utf-8] | ||
227 | ETag: [W/"ee6751ce2dc32e165dd24aca071f6eed"] | ||
228 | Transfer-Encoding: [chunked] | ||
229 | Vary: ['Accept-Encoding, Origin'] | ||
230 | X-Content-Type-Options: [nosniff] | ||
231 | X-Frame-Options: [SAMEORIGIN] | ||
232 | X-Request-Id: [0f8bc3a7-c8fe-444b-b994-485c98cbda0a] | ||
233 | X-Runtime: ['0.064982'] | ||
234 | X-XSS-Protection: [1; mode=block] | ||
235 | content-length: ['2'] | ||
236 | status: {code: 200, message: OK} | ||
237 | - request: | ||
238 | body: null | ||
239 | headers: | ||
240 | Accept: ['*/*'] | ||
241 | Accept-Encoding: ['gzip, deflate'] | ||
242 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
243 | Connection: [keep-alive] | ||
244 | User-Agent: [python-requests/2.9.1] | ||
245 | method: GET | ||
246 | uri: http://localhost:3000/api/v1/lists/23/accounts | ||
247 | response: | ||
248 | body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-04-17T21:40:55.626Z","note":"\u003cp\u003e\u003c/p\u003e","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":1,"following_count":0,"statuses_count":51}]'} | ||
249 | headers: | ||
250 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
251 | Content-Type: [application/json; charset=utf-8] | ||
252 | ETag: [W/"b9836e2f0226339c225639e9cc22ede9"] | ||
253 | Link: ['<http://localhost:3000/api/v1/lists/23/accounts?since_id=1>; rel="prev"'] | ||
254 | Transfer-Encoding: [chunked] | ||
255 | Vary: ['Accept-Encoding, Origin'] | ||
256 | X-Content-Type-Options: [nosniff] | ||
257 | X-Frame-Options: [SAMEORIGIN] | ||
258 | X-Request-Id: [794c2f5c-3edd-4b24-b8e3-bf9b26c021df] | ||
259 | X-Runtime: ['0.048936'] | ||
260 | X-XSS-Protection: [1; mode=block] | ||
261 | content-length: ['515'] | ||
262 | status: {code: 200, message: OK} | ||
263 | - request: | ||
264 | body: account_ids%5B%5D=1 | ||
265 | headers: | ||
266 | Accept: ['*/*'] | ||
267 | Accept-Encoding: ['gzip, deflate'] | ||
268 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
269 | Connection: [keep-alive] | ||
270 | Content-Length: ['19'] | ||
271 | Content-Type: [application/x-www-form-urlencoded] | ||
272 | User-Agent: [python-requests/2.9.1] | ||
273 | method: DELETE | ||
274 | uri: http://localhost:3000/api/v1/lists/23/accounts | ||
275 | response: | ||
276 | body: {string: '{}'} | ||
277 | headers: | ||
278 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
279 | Content-Type: [application/json; charset=utf-8] | ||
280 | ETag: [W/"7d75201dffe84268b8e3844d4dc96e56"] | ||
281 | Transfer-Encoding: [chunked] | ||
282 | Vary: ['Accept-Encoding, Origin'] | ||
283 | X-Content-Type-Options: [nosniff] | ||
284 | X-Frame-Options: [SAMEORIGIN] | ||
285 | X-Request-Id: [5b9c340c-9df5-4875-a754-9bd36a6398d2] | ||
286 | X-Runtime: ['0.054353'] | ||
287 | X-XSS-Protection: [1; mode=block] | ||
288 | content-length: ['2'] | ||
289 | status: {code: 200, message: OK} | ||
290 | - request: | ||
291 | body: null | ||
292 | headers: | ||
293 | Accept: ['*/*'] | ||
294 | Accept-Encoding: ['gzip, deflate'] | ||
295 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
296 | Connection: [keep-alive] | ||
297 | User-Agent: [python-requests/2.9.1] | ||
298 | method: GET | ||
299 | uri: http://localhost:3000/api/v1/lists/23/accounts | ||
300 | response: | ||
301 | body: {string: '[]'} | ||
302 | headers: | ||
303 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
304 | Content-Type: [application/json; charset=utf-8] | ||
305 | ETag: [W/"d136973c02e6e12b3280a000929bdfab"] | ||
306 | Transfer-Encoding: [chunked] | ||
307 | Vary: ['Accept-Encoding, Origin'] | ||
308 | X-Content-Type-Options: [nosniff] | ||
309 | X-Frame-Options: [SAMEORIGIN] | ||
310 | X-Request-Id: [6cc121cd-cc66-4795-b9cd-8272b89166ff] | ||
311 | X-Runtime: ['0.050224'] | ||
312 | X-XSS-Protection: [1; mode=block] | ||
313 | content-length: ['2'] | ||
314 | status: {code: 200, message: OK} | ||
315 | - request: | ||
316 | body: null | ||
317 | headers: | ||
318 | Accept: ['*/*'] | ||
319 | Accept-Encoding: ['gzip, deflate'] | ||
320 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
321 | Connection: [keep-alive] | ||
322 | Content-Length: ['0'] | ||
323 | User-Agent: [python-requests/2.9.1] | ||
324 | method: POST | ||
325 | uri: http://localhost:3000/api/v1/accounts/1/unfollow | ||
326 | response: | ||
327 | body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'} | ||
328 | headers: | ||
329 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
330 | Content-Type: [application/json; charset=utf-8] | ||
331 | ETag: [W/"b2c35ec6363918f9324f60b9ce18ad00"] | ||
332 | Transfer-Encoding: [chunked] | ||
333 | Vary: ['Accept-Encoding, Origin'] | ||
334 | X-Content-Type-Options: [nosniff] | ||
335 | X-Frame-Options: [SAMEORIGIN] | ||
336 | X-Request-Id: [32c56b5c-a75f-45a3-a7fc-cf048dca9ce2] | ||
337 | X-Runtime: ['0.053228'] | ||
338 | X-XSS-Protection: [1; mode=block] | ||
339 | content-length: ['175'] | ||
340 | status: {code: 200, message: OK} | ||
341 | - request: | ||
342 | body: null | ||
343 | headers: | ||
344 | Accept: ['*/*'] | ||
345 | Accept-Encoding: ['gzip, deflate'] | ||
346 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
347 | Connection: [keep-alive] | ||
348 | Content-Length: ['0'] | ||
349 | User-Agent: [python-requests/2.9.1] | ||
350 | method: DELETE | ||
351 | uri: http://localhost:3000/api/v1/lists/23 | ||
352 | response: | ||
353 | body: {string: '{}'} | ||
354 | headers: | ||
355 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
356 | Content-Type: [application/json; charset=utf-8] | ||
357 | ETag: [W/"7d75201dffe84268b8e3844d4dc96e56"] | ||
358 | Transfer-Encoding: [chunked] | ||
359 | Vary: ['Accept-Encoding, Origin'] | ||
360 | X-Content-Type-Options: [nosniff] | ||
361 | X-Frame-Options: [SAMEORIGIN] | ||
362 | X-Request-Id: [6f82b353-ca11-4c04-bd5c-36c02e050462] | ||
363 | X-Runtime: ['0.032468'] | ||
364 | X-XSS-Protection: [1; mode=block] | ||
365 | content-length: ['2'] | ||
366 | status: {code: 200, message: OK} | ||
367 | version: 1 | ||