aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-13 15:33:10 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-13 15:33:10 +0200
commitb1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2 (patch)
tree3ecf530456b311057658b3b2e749ad017074455b /tests/cassettes/test_account_mute_unmute.yaml
parenta17b20cfa142469019cd5982ba200510afc1f884 (diff)
downloadmastodon.py-b1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2.tar.gz
Add support for timed mutes, fix tests to actually pass with new setup
Diffstat (limited to 'tests/cassettes/test_account_mute_unmute.yaml')
-rw-r--r--tests/cassettes/test_account_mute_unmute.yaml206
1 files changed, 194 insertions, 12 deletions
diff --git a/tests/cassettes/test_account_mute_unmute.yaml b/tests/cassettes/test_account_mute_unmute.yaml
index 12fd919..367df9f 100644
--- a/tests/cassettes/test_account_mute_unmute.yaml
+++ b/tests/cassettes/test_account_mute_unmute.yaml
@@ -1,5 +1,63 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: null
4 headers:
5 Accept:
6 - '*/*'
7 Accept-Encoding:
8 - gzip, deflate
9 Authorization:
10 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2
11 Connection:
12 - keep-alive
13 User-Agent:
14 - tests/v311
15 method: GET
16 uri: http://localhost:3000/api/v1/accounts/verify_credentials
17 response:
18 body:
19 string: '{"id":"109336623096259500","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00: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":3,"last_status_at":"2022-11-13","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}}'
20 headers:
21 Cache-Control:
22 - no-store
23 Content-Security-Policy:
24 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
25 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
26 style-src ''self'' http://localhost:3000 ''nonce-Q56EkUsqZSY9zBV4LxnnIw=='';
27 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
28 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
29 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
30 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
31 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
32 worker-src ''self'' blob: http://localhost:3000'
33 Content-Type:
34 - application/json; charset=utf-8
35 ETag:
36 - W/"80d63625bd23e8fc4a88c4c4a0159382"
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 - 86cfed31-61ff-45b7-a7d7-e96debf43eaa
53 X-Runtime:
54 - '0.012205'
55 X-XSS-Protection:
56 - 1; mode=block
57 status:
58 code: 200
59 message: OK
60- request:
3 body: notifications=1 61 body: notifications=1
4 headers: 62 headers:
5 Accept: 63 Accept:
@@ -17,17 +75,18 @@ interactions:
17 User-Agent: 75 User-Agent:
18 - tests/v311 76 - tests/v311
19 method: POST 77 method: POST
20 uri: http://localhost:3000/api/v1/accounts/1234567890123457/mute 78 uri: http://localhost:3000/api/v1/accounts/109336623096259500/mute
21 response: 79 response:
22 body: 80 body:
23 string: '{"id":"1234567890123457","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":true,"muting_notifications":true,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}' 81 string: '{"id":"109336623096259500","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":true,"muting_notifications":true,"requested":false,"domain_blocking":false,"endorsed":false,"note":"top
82 ebayer gerne wieder"}'
24 headers: 83 headers:
25 Cache-Control: 84 Cache-Control:
26 - no-store 85 - no-store
27 Content-Security-Policy: 86 Content-Security-Policy:
28 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 87 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
29 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 88 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
30 style-src ''self'' http://localhost:3000 ''nonce-kRuUFNBUP6nsamzoP5n1cQ==''; 89 style-src ''self'' http://localhost:3000 ''nonce-HoZ3g1XFgO5ckiXUyMUFIA=='';
31 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 90 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
32 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 91 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
33 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 92 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -37,7 +96,7 @@ interactions:
37 Content-Type: 96 Content-Type:
38 - application/json; charset=utf-8 97 - application/json; charset=utf-8
39 ETag: 98 ETag:
40 - W/"5b5f68b612064b5a0b16d8640f9945e5" 99 - W/"a8000ce3ba487d15194daa652517ab8c"
41 Referrer-Policy: 100 Referrer-Policy:
42 - strict-origin-when-cross-origin 101 - strict-origin-when-cross-origin
43 Transfer-Encoding: 102 Transfer-Encoding:
@@ -53,9 +112,9 @@ interactions:
53 X-Permitted-Cross-Domain-Policies: 112 X-Permitted-Cross-Domain-Policies:
54 - none 113 - none
55 X-Request-Id: 114 X-Request-Id:
56 - 0cb4e62e-0fc5-49c3-81bd-d30f4f773b17 115 - 170b51ba-f1e2-4abf-98ec-06e9304a42a2
57 X-Runtime: 116 X-Runtime:
58 - '0.024410' 117 - '0.024812'
59 X-XSS-Protection: 118 X-XSS-Protection:
60 - 1; mode=block 119 - 1; mode=block
61 status: 120 status:
@@ -77,17 +136,140 @@ interactions:
77 User-Agent: 136 User-Agent:
78 - tests/v311 137 - tests/v311
79 method: POST 138 method: POST
80 uri: http://localhost:3000/api/v1/accounts/1234567890123457/unmute 139 uri: http://localhost:3000/api/v1/accounts/109336623096259500/unmute
140 response:
141 body:
142 string: '{"id":"109336623096259500","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":"top
143 ebayer gerne wieder"}'
144 headers:
145 Cache-Control:
146 - no-store
147 Content-Security-Policy:
148 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
149 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
150 style-src ''self'' http://localhost:3000 ''nonce-trgxItZOBuI/lh7d7b66Lw=='';
151 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
152 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
153 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
154 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
155 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
156 worker-src ''self'' blob: http://localhost:3000'
157 Content-Type:
158 - application/json; charset=utf-8
159 ETag:
160 - W/"fc5fa4da9317772baa3b6968b8c31a68"
161 Referrer-Policy:
162 - strict-origin-when-cross-origin
163 Transfer-Encoding:
164 - chunked
165 Vary:
166 - Accept, Origin
167 X-Content-Type-Options:
168 - nosniff
169 X-Download-Options:
170 - noopen
171 X-Frame-Options:
172 - SAMEORIGIN
173 X-Permitted-Cross-Domain-Policies:
174 - none
175 X-Request-Id:
176 - 85ada05a-7d79-47b8-8cf0-8de2a49016d9
177 X-Runtime:
178 - '0.014327'
179 X-XSS-Protection:
180 - 1; mode=block
181 status:
182 code: 200
183 message: OK
184- request:
185 body: notifications=1&duration=3
186 headers:
187 Accept:
188 - '*/*'
189 Accept-Encoding:
190 - gzip, deflate
191 Authorization:
192 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
193 Connection:
194 - keep-alive
195 Content-Length:
196 - '26'
197 Content-Type:
198 - application/x-www-form-urlencoded
199 User-Agent:
200 - tests/v311
201 method: POST
202 uri: http://localhost:3000/api/v1/accounts/109336623096259500/mute
203 response:
204 body:
205 string: '{"id":"109336623096259500","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":true,"muting_notifications":true,"requested":false,"domain_blocking":false,"endorsed":false,"note":"top
206 ebayer gerne wieder"}'
207 headers:
208 Cache-Control:
209 - no-store
210 Content-Security-Policy:
211 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
212 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
213 style-src ''self'' http://localhost:3000 ''nonce-ulKAN35tFR8w47vwDv+M+g=='';
214 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
215 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
216 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
217 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
218 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
219 worker-src ''self'' blob: http://localhost:3000'
220 Content-Type:
221 - application/json; charset=utf-8
222 ETag:
223 - W/"a8000ce3ba487d15194daa652517ab8c"
224 Referrer-Policy:
225 - strict-origin-when-cross-origin
226 Transfer-Encoding:
227 - chunked
228 Vary:
229 - Accept, Origin
230 X-Content-Type-Options:
231 - nosniff
232 X-Download-Options:
233 - noopen
234 X-Frame-Options:
235 - SAMEORIGIN
236 X-Permitted-Cross-Domain-Policies:
237 - none
238 X-Request-Id:
239 - def180f2-31d5-4143-8269-e67a60a673f6
240 X-Runtime:
241 - '0.014845'
242 X-XSS-Protection:
243 - 1; mode=block
244 status:
245 code: 200
246 message: OK
247- request:
248 body: null
249 headers:
250 Accept:
251 - '*/*'
252 Accept-Encoding:
253 - gzip, deflate
254 Authorization:
255 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
256 Connection:
257 - keep-alive
258 User-Agent:
259 - tests/v311
260 method: GET
261 uri: http://localhost:3000/api/v1/accounts/relationships?id=109336623096259500
81 response: 262 response:
82 body: 263 body:
83 string: '{"id":"1234567890123457","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":""}' 264 string: '[{"id":"109336623096259500","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":"top
265 ebayer gerne wieder"}]'
84 headers: 266 headers:
85 Cache-Control: 267 Cache-Control:
86 - no-store 268 - no-store
87 Content-Security-Policy: 269 Content-Security-Policy:
88 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 270 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
89 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 271 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
90 style-src ''self'' http://localhost:3000 ''nonce-RMC81XA1B7bj9LHMZ8X13A==''; 272 style-src ''self'' http://localhost:3000 ''nonce-pmSOPUJBqwKiXv/slHjKaw=='';
91 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 273 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
92 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 274 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
93 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 275 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -97,7 +279,7 @@ interactions:
97 Content-Type: 279 Content-Type:
98 - application/json; charset=utf-8 280 - application/json; charset=utf-8
99 ETag: 281 ETag:
100 - W/"25b4d9d745f6bc92c8314562f7461bc8" 282 - W/"12de70d09cb081f282f9744599b401c5"
101 Referrer-Policy: 283 Referrer-Policy:
102 - strict-origin-when-cross-origin 284 - strict-origin-when-cross-origin
103 Transfer-Encoding: 285 Transfer-Encoding:
@@ -113,9 +295,9 @@ interactions:
113 X-Permitted-Cross-Domain-Policies: 295 X-Permitted-Cross-Domain-Policies:
114 - none 296 - none
115 X-Request-Id: 297 X-Request-Id:
116 - 19824469-7a36-4850-b52a-8497e4c40c77 298 - fd9a7f4d-42bf-496f-aed2-ed6517bd6754
117 X-Runtime: 299 X-Runtime:
118 - '0.021933' 300 - '0.010676'
119 X-XSS-Protection: 301 X-XSS-Protection:
120 - 1; mode=block 302 - 1; mode=block
121 status: 303 status:
Powered by cgit v1.2.3 (git 2.41.0)