aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-07 23:11:30 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-07 23:11:30 +0200
commit3277ca777821e76955fb26d80788939a311db9db (patch)
treebef0749a451464d00e59fb3c685e6eb6d69a8a78 /tests/cassettes/test_account_pin_unpin.yaml
parent33d1e17e2e75884abd6e0a8a3e4a4da388e97e55 (diff)
downloadmastodon.py-3277ca777821e76955fb26d80788939a311db9db.tar.gz
Initial test fixing pass. Four tests still fail.
Diffstat (limited to 'tests/cassettes/test_account_pin_unpin.yaml')
-rw-r--r--tests/cassettes/test_account_pin_unpin.yaml625
1 files changed, 443 insertions, 182 deletions
diff --git a/tests/cassettes/test_account_pin_unpin.yaml b/tests/cassettes/test_account_pin_unpin.yaml
index f0893d8..85e10f1 100644
--- a/tests/cassettes/test_account_pin_unpin.yaml
+++ b/tests/cassettes/test_account_pin_unpin.yaml
@@ -2,224 +2,485 @@ interactions:
2- request: 2- request:
3 body: null 3 body: null
4 headers: 4 headers:
5 Accept: ['*/*'] 5 Accept:
6 Accept-Encoding: ['gzip, deflate'] 6 - '*/*'
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] 7 Accept-Encoding:
8 Connection: [keep-alive] 8 - gzip, deflate
9 User-Agent: [python-requests/2.18.4] 9 Authorization:
10 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2
11 Connection:
12 - keep-alive
13 User-Agent:
14 - tests/v311
10 method: GET 15 method: GET
11 uri: http://localhost:3000/api/v1/accounts/verify_credentials 16 uri: http://localhost:3000/api/v1/accounts/verify_credentials
12 response: 17 response:
13 body: {string: '{"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":0,"last_status_at":null,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[]}'} 18 body:
14 headers: 19 string: '{"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":null,"noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}'
15 Cache-Control: ['no-cache, no-store'] 20 headers:
16 Content-Type: [application/json; charset=utf-8] 21 Cache-Control:
17 Referrer-Policy: [strict-origin-when-cross-origin] 22 - no-store
18 Transfer-Encoding: [chunked] 23 Content-Security-Policy:
19 Vary: ['Accept-Encoding, Origin'] 24 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
20 X-Content-Type-Options: [nosniff] 25 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
21 X-Download-Options: [noopen] 26 style-src ''self'' http://localhost:3000 ''nonce-N6/TvMWNk+BHdyhPWnKQiQ=='';
22 X-Frame-Options: [SAMEORIGIN] 27 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
23 X-Permitted-Cross-Domain-Policies: [none] 28 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
24 X-Request-Id: [1759aeac-c7c9-44e8-a945-3d4224bc572d] 29 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
25 X-Runtime: ['0.070126'] 30 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
26 X-XSS-Protection: [1; mode=block] 31 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
27 content-length: ['691'] 32 worker-src ''self'' blob: http://localhost:3000'
28 status: {code: 200, message: OK} 33 Content-Type:
34 - application/json; charset=utf-8
35 ETag:
36 - W/"2806d276d8ca861b8ad4afe38233637f"
37 Referrer-Policy:
38 - strict-origin-when-cross-origin
39 Transfer-Encoding:
40 - chunked
41 Vary:
42 - Accept, Origin
43 X-Content-Type-Options:
44 - nosniff
45 X-Download-Options:
46 - noopen
47 X-Frame-Options:
48 - SAMEORIGIN
49 X-Permitted-Cross-Domain-Policies:
50 - none
51 X-Request-Id:
52 - 3d3ad8f8-d333-4cd7-befa-4a1a93e1bc69
53 X-Runtime:
54 - '0.020527'
55 X-XSS-Protection:
56 - 1; mode=block
57 status:
58 code: 200
59 message: OK
29- request: 60- request:
30 body: reblogs=1&id=1 61 body: id=109304268902557892&reblogs=1
31 headers: 62 headers:
32 Accept: ['*/*'] 63 Accept:
33 Accept-Encoding: ['gzip, deflate'] 64 - '*/*'
34 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 65 Accept-Encoding:
35 Connection: [keep-alive] 66 - gzip, deflate
36 Content-Length: ['14'] 67 Authorization:
37 Content-Type: [application/x-www-form-urlencoded] 68 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
38 User-Agent: [python-requests/2.18.4] 69 Connection:
70 - keep-alive
71 Content-Length:
72 - '31'
73 Content-Type:
74 - application/x-www-form-urlencoded
75 User-Agent:
76 - tests/v311
39 method: POST 77 method: POST
40 uri: http://localhost:3000/api/v1/accounts/1/follow 78 uri: http://localhost:3000/api/v1/accounts/109304268902557892/follow
41 response: 79 response:
42 body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'} 80 body:
43 headers: 81 string: '{"id":"109304268902557892","following":true,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}'
44 Cache-Control: ['no-cache, no-store'] 82 headers:
45 Content-Type: [application/json; charset=utf-8] 83 Cache-Control:
46 Referrer-Policy: [strict-origin-when-cross-origin] 84 - no-store
47 Transfer-Encoding: [chunked] 85 Content-Security-Policy:
48 Vary: ['Accept-Encoding, Origin'] 86 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
49 X-Content-Type-Options: [nosniff] 87 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
50 X-Download-Options: [noopen] 88 style-src ''self'' http://localhost:3000 ''nonce-9NoJtItuzoGmniDSY75JYQ=='';
51 X-Frame-Options: [SAMEORIGIN] 89 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
52 X-Permitted-Cross-Domain-Policies: [none] 90 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
53 X-Request-Id: [0b379cc5-182b-424b-9a8f-429e38b71e25] 91 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
54 X-Runtime: ['0.089844'] 92 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
55 X-XSS-Protection: [1; mode=block] 93 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
56 content-length: ['209'] 94 worker-src ''self'' blob: http://localhost:3000'
57 status: {code: 200, message: OK} 95 Content-Type:
96 - application/json; charset=utf-8
97 ETag:
98 - W/"328aa28d0debfcbfaef3df0c7630cbd8"
99 Referrer-Policy:
100 - strict-origin-when-cross-origin
101 Transfer-Encoding:
102 - chunked
103 Vary:
104 - Accept, Origin
105 X-Content-Type-Options:
106 - nosniff
107 X-Download-Options:
108 - noopen
109 X-Frame-Options:
110 - SAMEORIGIN
111 X-Permitted-Cross-Domain-Policies:
112 - none
113 X-RateLimit-Limit:
114 - '400'
115 X-RateLimit-Remaining:
116 - '397'
117 X-RateLimit-Reset:
118 - '2022-11-08T00:00:00.650878Z'
119 X-Request-Id:
120 - 0e7baeb8-bd2d-4657-a32c-179c783fc7c2
121 X-Runtime:
122 - '0.021584'
123 X-XSS-Protection:
124 - 1; mode=block
125 status:
126 code: 200
127 message: OK
58- request: 128- request:
59 body: null 129 body: null
60 headers: 130 headers:
61 Accept: ['*/*'] 131 Accept:
62 Accept-Encoding: ['gzip, deflate'] 132 - '*/*'
63 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 133 Accept-Encoding:
64 Connection: [keep-alive] 134 - gzip, deflate
65 Content-Length: ['0'] 135 Authorization:
66 User-Agent: [python-requests/2.18.4] 136 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
137 Connection:
138 - keep-alive
139 Content-Length:
140 - '0'
141 User-Agent:
142 - tests/v311
67 method: POST 143 method: POST
68 uri: http://localhost:3000/api/v1/accounts/1/unpin 144 uri: http://localhost:3000/api/v1/accounts/109304268902557892/unpin
69 response: 145 response:
70 body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'} 146 body:
71 headers: 147 string: '{"id":"109304268902557892","following":true,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}'
72 Cache-Control: ['no-cache, no-store'] 148 headers:
73 Content-Type: [application/json; charset=utf-8] 149 Cache-Control:
74 Referrer-Policy: [strict-origin-when-cross-origin] 150 - no-store
75 Transfer-Encoding: [chunked] 151 Content-Security-Policy:
76 Vary: ['Accept-Encoding, Origin'] 152 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
77 X-Content-Type-Options: [nosniff] 153 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
78 X-Download-Options: [noopen] 154 style-src ''self'' http://localhost:3000 ''nonce-j+YOJ7CK2GWU1Sv/5zoTjA=='';
79 X-Frame-Options: [SAMEORIGIN] 155 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
80 X-Permitted-Cross-Domain-Policies: [none] 156 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
81 X-Request-Id: [3df005da-d105-4b15-8376-47abdb7829b3] 157 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
82 X-Runtime: ['0.098275'] 158 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
83 X-XSS-Protection: [1; mode=block] 159 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
84 content-length: ['209'] 160 worker-src ''self'' blob: http://localhost:3000'
85 status: {code: 200, message: OK} 161 Content-Type:
162 - application/json; charset=utf-8
163 ETag:
164 - W/"328aa28d0debfcbfaef3df0c7630cbd8"
165 Referrer-Policy:
166 - strict-origin-when-cross-origin
167 Transfer-Encoding:
168 - chunked
169 Vary:
170 - Accept, Origin
171 X-Content-Type-Options:
172 - nosniff
173 X-Download-Options:
174 - noopen
175 X-Frame-Options:
176 - SAMEORIGIN
177 X-Permitted-Cross-Domain-Policies:
178 - none
179 X-Request-Id:
180 - a018e317-f0e0-47a3-b902-eb0b7d3313d8
181 X-Runtime:
182 - '0.013292'
183 X-XSS-Protection:
184 - 1; mode=block
185 status:
186 code: 200
187 message: OK
86- request: 188- request:
87 body: null 189 body: null
88 headers: 190 headers:
89 Accept: ['*/*'] 191 Accept:
90 Accept-Encoding: ['gzip, deflate'] 192 - '*/*'
91 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 193 Accept-Encoding:
92 Connection: [keep-alive] 194 - gzip, deflate
93 Content-Length: ['0'] 195 Authorization:
94 User-Agent: [python-requests/2.18.4] 196 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
197 Connection:
198 - keep-alive
199 Content-Length:
200 - '0'
201 User-Agent:
202 - tests/v311
95 method: POST 203 method: POST
96 uri: http://localhost:3000/api/v1/accounts/1/pin 204 uri: http://localhost:3000/api/v1/accounts/109304268902557892/pin
97 response: 205 response:
98 body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":true}'} 206 body:
99 headers: 207 string: '{"id":"109304268902557892","following":true,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":true,"note":""}'
100 Cache-Control: ['no-cache, no-store'] 208 headers:
101 Content-Type: [application/json; charset=utf-8] 209 Cache-Control:
102 Referrer-Policy: [strict-origin-when-cross-origin] 210 - no-store
103 Transfer-Encoding: [chunked] 211 Content-Security-Policy:
104 Vary: ['Accept-Encoding, Origin'] 212 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
105 X-Content-Type-Options: [nosniff] 213 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
106 X-Download-Options: [noopen] 214 style-src ''self'' http://localhost:3000 ''nonce-TvAbYEMkpE4Sr20jqGoi/A=='';
107 X-Frame-Options: [SAMEORIGIN] 215 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
108 X-Permitted-Cross-Domain-Policies: [none] 216 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
109 X-Request-Id: [81b184bc-ec1c-41c7-b48d-0f073381fa2d] 217 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
110 X-Runtime: ['0.056627'] 218 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
111 X-XSS-Protection: [1; mode=block] 219 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
112 content-length: ['208'] 220 worker-src ''self'' blob: http://localhost:3000'
113 status: {code: 200, message: OK} 221 Content-Type:
222 - application/json; charset=utf-8
223 ETag:
224 - W/"f48874e2fd96b9bad6a6f1c14c17a01b"
225 Referrer-Policy:
226 - strict-origin-when-cross-origin
227 Transfer-Encoding:
228 - chunked
229 Vary:
230 - Accept, Origin
231 X-Content-Type-Options:
232 - nosniff
233 X-Download-Options:
234 - noopen
235 X-Frame-Options:
236 - SAMEORIGIN
237 X-Permitted-Cross-Domain-Policies:
238 - none
239 X-Request-Id:
240 - 82d0f70b-e45b-4837-ad3c-bc6d500651d5
241 X-Runtime:
242 - '0.015320'
243 X-XSS-Protection:
244 - 1; mode=block
245 status:
246 code: 200
247 message: OK
114- request: 248- request:
115 body: null 249 body: null
116 headers: 250 headers:
117 Accept: ['*/*'] 251 Accept:
118 Accept-Encoding: ['gzip, deflate'] 252 - '*/*'
119 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 253 Accept-Encoding:
120 Connection: [keep-alive] 254 - gzip, deflate
121 User-Agent: [python-requests/2.18.4] 255 Authorization:
256 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
257 Connection:
258 - keep-alive
259 User-Agent:
260 - tests/v311
122 method: GET 261 method: GET
123 uri: http://localhost:3000/api/v1/endorsements 262 uri: http://localhost:3000/api/v1/endorsements
124 response: 263 response:
125 body: {string: '[{"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":1,"following_count":0,"statuses_count":0,"last_status_at":null,"emojis":[],"fields":[]}]'} 264 body:
126 headers: 265 string: '[{"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":1,"following_count":0,"statuses_count":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]}]'
127 Cache-Control: ['no-cache, no-store'] 266 headers:
128 Content-Type: [application/json; charset=utf-8] 267 Cache-Control:
129 Link: ['<http://localhost:3000/api/v1/endorsements?since_id=1>; rel="prev"'] 268 - no-store
130 Referrer-Policy: [strict-origin-when-cross-origin] 269 Content-Security-Policy:
131 Transfer-Encoding: [chunked] 270 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
132 Vary: ['Accept-Encoding, Origin'] 271 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
133 X-Content-Type-Options: [nosniff] 272 style-src ''self'' http://localhost:3000 ''nonce-NNrf8oVgZUxvY+9FZ1rUQQ=='';
134 X-Download-Options: [noopen] 273 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
135 X-Frame-Options: [SAMEORIGIN] 274 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
136 X-Permitted-Cross-Domain-Policies: [none] 275 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
137 X-Request-Id: [f8e2d655-3cb0-4bbc-8c34-c0bb7fb91b7e] 276 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
138 X-Runtime: ['0.053483'] 277 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
139 X-XSS-Protection: [1; mode=block] 278 worker-src ''self'' blob: http://localhost:3000'
140 content-length: ['581'] 279 Content-Type:
141 status: {code: 200, message: OK} 280 - application/json; charset=utf-8
281 ETag:
282 - W/"556f11080e4d8472f8e5c4076996220f"
283 Link:
284 - <http://localhost:3000/api/v1/endorsements?since_id=109304268902557892>; rel="prev"
285 Referrer-Policy:
286 - strict-origin-when-cross-origin
287 Transfer-Encoding:
288 - chunked
289 Vary:
290 - Accept, Origin
291 X-Content-Type-Options:
292 - nosniff
293 X-Download-Options:
294 - noopen
295 X-Frame-Options:
296 - SAMEORIGIN
297 X-Permitted-Cross-Domain-Policies:
298 - none
299 X-Request-Id:
300 - 5849680a-06f9-4886-b4ce-8bfd69613285
301 X-Runtime:
302 - '0.013298'
303 X-XSS-Protection:
304 - 1; mode=block
305 status:
306 code: 200
307 message: OK
142- request: 308- request:
143 body: null 309 body: null
144 headers: 310 headers:
145 Accept: ['*/*'] 311 Accept:
146 Accept-Encoding: ['gzip, deflate'] 312 - '*/*'
147 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 313 Accept-Encoding:
148 Connection: [keep-alive] 314 - gzip, deflate
149 Content-Length: ['0'] 315 Authorization:
150 User-Agent: [python-requests/2.18.4] 316 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
317 Connection:
318 - keep-alive
319 Content-Length:
320 - '0'
321 User-Agent:
322 - tests/v311
151 method: POST 323 method: POST
152 uri: http://localhost:3000/api/v1/accounts/1/unpin 324 uri: http://localhost:3000/api/v1/accounts/109304268902557892/unpin
153 response: 325 response:
154 body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'} 326 body:
155 headers: 327 string: '{"id":"109304268902557892","following":true,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}'
156 Cache-Control: ['no-cache, no-store'] 328 headers:
157 Content-Type: [application/json; charset=utf-8] 329 Cache-Control:
158 Referrer-Policy: [strict-origin-when-cross-origin] 330 - no-store
159 Transfer-Encoding: [chunked] 331 Content-Security-Policy:
160 Vary: ['Accept-Encoding, Origin'] 332 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
161 X-Content-Type-Options: [nosniff] 333 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
162 X-Download-Options: [noopen] 334 style-src ''self'' http://localhost:3000 ''nonce-+EnllbPkEKp6NZviFhVMwQ=='';
163 X-Frame-Options: [SAMEORIGIN] 335 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
164 X-Permitted-Cross-Domain-Policies: [none] 336 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
165 X-Request-Id: [fdd28069-66c1-4417-aff3-8056cc04c4c4] 337 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
166 X-Runtime: ['0.042610'] 338 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
167 X-XSS-Protection: [1; mode=block] 339 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
168 content-length: ['209'] 340 worker-src ''self'' blob: http://localhost:3000'
169 status: {code: 200, message: OK} 341 Content-Type:
342 - application/json; charset=utf-8
343 ETag:
344 - W/"328aa28d0debfcbfaef3df0c7630cbd8"
345 Referrer-Policy:
346 - strict-origin-when-cross-origin
347 Transfer-Encoding:
348 - chunked
349 Vary:
350 - Accept, Origin
351 X-Content-Type-Options:
352 - nosniff
353 X-Download-Options:
354 - noopen
355 X-Frame-Options:
356 - SAMEORIGIN
357 X-Permitted-Cross-Domain-Policies:
358 - none
359 X-Request-Id:
360 - d9104e32-b972-447e-a712-dc44cccb0ef0
361 X-Runtime:
362 - '0.012262'
363 X-XSS-Protection:
364 - 1; mode=block
365 status:
366 code: 200
367 message: OK
170- request: 368- request:
171 body: null 369 body: null
172 headers: 370 headers:
173 Accept: ['*/*'] 371 Accept:
174 Accept-Encoding: ['gzip, deflate'] 372 - '*/*'
175 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 373 Accept-Encoding:
176 Connection: [keep-alive] 374 - gzip, deflate
177 User-Agent: [python-requests/2.18.4] 375 Authorization:
376 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
377 Connection:
378 - keep-alive
379 User-Agent:
380 - tests/v311
178 method: GET 381 method: GET
179 uri: http://localhost:3000/api/v1/endorsements 382 uri: http://localhost:3000/api/v1/endorsements
180 response: 383 response:
181 body: {string: '[]'} 384 body:
182 headers: 385 string: '[]'
183 Cache-Control: ['no-cache, no-store'] 386 headers:
184 Content-Type: [application/json; charset=utf-8] 387 Cache-Control:
185 Referrer-Policy: [strict-origin-when-cross-origin] 388 - no-store
186 Transfer-Encoding: [chunked] 389 Content-Security-Policy:
187 Vary: ['Accept-Encoding, Origin'] 390 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
188 X-Content-Type-Options: [nosniff] 391 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
189 X-Download-Options: [noopen] 392 style-src ''self'' http://localhost:3000 ''nonce-kAn0b4rZfa2UGuBQPJPkTA=='';
190 X-Frame-Options: [SAMEORIGIN] 393 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
191 X-Permitted-Cross-Domain-Policies: [none] 394 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
192 X-Request-Id: [f7f28d03-c2e7-417b-a12f-e23a35a3df57] 395 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
193 X-Runtime: ['0.029372'] 396 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
194 X-XSS-Protection: [1; mode=block] 397 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
195 content-length: ['2'] 398 worker-src ''self'' blob: http://localhost:3000'
196 status: {code: 200, message: OK} 399 Content-Type:
400 - application/json; charset=utf-8
401 ETag:
402 - W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"
403 Referrer-Policy:
404 - strict-origin-when-cross-origin
405 Transfer-Encoding:
406 - chunked
407 Vary:
408 - Accept, Origin
409 X-Content-Type-Options:
410 - nosniff
411 X-Download-Options:
412 - noopen
413 X-Frame-Options:
414 - SAMEORIGIN
415 X-Permitted-Cross-Domain-Policies:
416 - none
417 X-Request-Id:
418 - ad3b7aba-7537-4752-a780-4f3585f1cfbe
419 X-Runtime:
420 - '0.006849'
421 X-XSS-Protection:
422 - 1; mode=block
423 status:
424 code: 200
425 message: OK
197- request: 426- request:
198 body: null 427 body: null
199 headers: 428 headers:
200 Accept: ['*/*'] 429 Accept:
201 Accept-Encoding: ['gzip, deflate'] 430 - '*/*'
202 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 431 Accept-Encoding:
203 Connection: [keep-alive] 432 - gzip, deflate
204 Content-Length: ['0'] 433 Authorization:
205 User-Agent: [python-requests/2.18.4] 434 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
435 Connection:
436 - keep-alive
437 Content-Length:
438 - '0'
439 User-Agent:
440 - tests/v311
206 method: POST 441 method: POST
207 uri: http://localhost:3000/api/v1/accounts/1/unfollow 442 uri: http://localhost:3000/api/v1/accounts/109304268902557892/unfollow
208 response: 443 response:
209 body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'} 444 body:
210 headers: 445 string: '{"id":"109304268902557892","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}'
211 Cache-Control: ['no-cache, no-store'] 446 headers:
212 Content-Type: [application/json; charset=utf-8] 447 Cache-Control:
213 Referrer-Policy: [strict-origin-when-cross-origin] 448 - no-store
214 Transfer-Encoding: [chunked] 449 Content-Security-Policy:
215 Vary: ['Accept-Encoding, Origin'] 450 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
216 X-Content-Type-Options: [nosniff] 451 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
217 X-Download-Options: [noopen] 452 style-src ''self'' http://localhost:3000 ''nonce-bAGUyGXC9nPaVWf0oPyd+w=='';
218 X-Frame-Options: [SAMEORIGIN] 453 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
219 X-Permitted-Cross-Domain-Policies: [none] 454 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
220 X-Request-Id: [c8beb628-90be-458a-a8a3-097153d6befd] 455 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
221 X-Runtime: ['0.074431'] 456 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
222 X-XSS-Protection: [1; mode=block] 457 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
223 content-length: ['211'] 458 worker-src ''self'' blob: http://localhost:3000'
224 status: {code: 200, message: OK} 459 Content-Type:
460 - application/json; charset=utf-8
461 ETag:
462 - W/"8d8caa68e50963507d45a12d820e86b0"
463 Referrer-Policy:
464 - strict-origin-when-cross-origin
465 Transfer-Encoding:
466 - chunked
467 Vary:
468 - Accept, Origin
469 X-Content-Type-Options:
470 - nosniff
471 X-Download-Options:
472 - noopen
473 X-Frame-Options:
474 - SAMEORIGIN
475 X-Permitted-Cross-Domain-Policies:
476 - none
477 X-Request-Id:
478 - a67ef265-9f7e-44e9-98c6-0eb4d47c4c3a
479 X-Runtime:
480 - '0.019740'
481 X-XSS-Protection:
482 - 1; mode=block
483 status:
484 code: 200
485 message: OK
225version: 1 486version: 1
Powered by cgit v1.2.3 (git 2.41.0)