diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-13 15:33:10 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-13 15:33:10 +0200 |
commit | b1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2 (patch) | |
tree | 3ecf530456b311057658b3b2e749ad017074455b /tests/cassettes/test_follow_request_authorize.yaml | |
parent | a17b20cfa142469019cd5982ba200510afc1f884 (diff) | |
download | mastodon.py-b1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2.tar.gz |
Add support for timed mutes, fix tests to actually pass with new setup
Diffstat (limited to 'tests/cassettes/test_follow_request_authorize.yaml')
-rw-r--r-- | tests/cassettes/test_follow_request_authorize.yaml | 114 |
1 files changed, 88 insertions, 26 deletions
diff --git a/tests/cassettes/test_follow_request_authorize.yaml b/tests/cassettes/test_follow_request_authorize.yaml index 49f21ff..5132df3 100644 --- a/tests/cassettes/test_follow_request_authorize.yaml +++ b/tests/cassettes/test_follow_request_authorize.yaml | |||
@@ -1,6 +1,67 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: id=1234567890123456&reblogs=1 | 3 | body: null |
4 | headers: | ||
5 | Accept: | ||
6 | - '*/*' | ||
7 | Accept-Encoding: | ||
8 | - gzip, deflate | ||
9 | Authorization: | ||
10 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
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":"109336623311102204","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
20 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI | ||
21 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/336/623/311/102/204/original/8f758332953652da.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/336/623/311/102/204/original/8f758332953652da.jpg","header":"http://localhost:3000/system/accounts/headers/109/336/623/311/102/204/original/c7470bf076df1e55.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/336/623/311/102/204/original/c7470bf076df1e55.jpg","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":"I | ||
22 | walk funny","fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}],"follow_requests_count":0},"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}],"role":{"id":"-99","name":"","permissions":"65536","color":"","highlighted":false}}' | ||
23 | headers: | ||
24 | Cache-Control: | ||
25 | - no-store | ||
26 | Content-Security-Policy: | ||
27 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | ||
28 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | ||
29 | style-src ''self'' http://localhost:3000 ''nonce-EUfZLN36HZsXieP5oeFpiQ==''; | ||
30 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | ||
31 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | ||
32 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | ||
33 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' | ||
34 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; | ||
35 | worker-src ''self'' blob: http://localhost:3000' | ||
36 | Content-Type: | ||
37 | - application/json; charset=utf-8 | ||
38 | ETag: | ||
39 | - W/"dce7c9745705c468836e3126d8118b03" | ||
40 | Referrer-Policy: | ||
41 | - strict-origin-when-cross-origin | ||
42 | Transfer-Encoding: | ||
43 | - chunked | ||
44 | Vary: | ||
45 | - Accept, Origin | ||
46 | X-Content-Type-Options: | ||
47 | - nosniff | ||
48 | X-Download-Options: | ||
49 | - noopen | ||
50 | X-Frame-Options: | ||
51 | - SAMEORIGIN | ||
52 | X-Permitted-Cross-Domain-Policies: | ||
53 | - none | ||
54 | X-Request-Id: | ||
55 | - 92b9a179-db48-4777-a1d6-2fa92da100fa | ||
56 | X-Runtime: | ||
57 | - '0.011536' | ||
58 | X-XSS-Protection: | ||
59 | - 1; mode=block | ||
60 | status: | ||
61 | code: 200 | ||
62 | message: OK | ||
63 | - request: | ||
64 | body: id=109336623311102204&reblogs=1 | ||
4 | headers: | 65 | headers: |
5 | Accept: | 66 | Accept: |
6 | - '*/*' | 67 | - '*/*' |
@@ -11,23 +72,23 @@ interactions: | |||
11 | Connection: | 72 | Connection: |
12 | - keep-alive | 73 | - keep-alive |
13 | Content-Length: | 74 | Content-Length: |
14 | - '29' | 75 | - '31' |
15 | Content-Type: | 76 | Content-Type: |
16 | - application/x-www-form-urlencoded | 77 | - application/x-www-form-urlencoded |
17 | User-Agent: | 78 | User-Agent: |
18 | - tests/v311 | 79 | - tests/v311 |
19 | method: POST | 80 | method: POST |
20 | uri: http://localhost:3000/api/v1/accounts/1234567890123456/follow | 81 | uri: http://localhost:3000/api/v1/accounts/109336623311102204/follow |
21 | response: | 82 | response: |
22 | body: | 83 | body: |
23 | string: '{"id":"1234567890123456","following":false,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":true,"domain_blocking":false,"endorsed":false,"note":""}' | 84 | string: '{"id":"109336623311102204","following":false,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":true,"domain_blocking":false,"endorsed":false,"note":""}' |
24 | headers: | 85 | headers: |
25 | Cache-Control: | 86 | Cache-Control: |
26 | - no-store | 87 | - no-store |
27 | Content-Security-Policy: | 88 | Content-Security-Policy: |
28 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 89 | - '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; | 90 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
30 | style-src ''self'' http://localhost:3000 ''nonce-eBcnVRxXTD6sc1jLLNEIpQ==''; | 91 | style-src ''self'' http://localhost:3000 ''nonce-m1MpF8FL9yqDaH2JL6SpHA==''; |
31 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 92 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
32 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 93 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
33 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 94 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -37,7 +98,7 @@ interactions: | |||
37 | Content-Type: | 98 | Content-Type: |
38 | - application/json; charset=utf-8 | 99 | - application/json; charset=utf-8 |
39 | ETag: | 100 | ETag: |
40 | - W/"acf0f73e9e8c6d95924890c1315db0fd" | 101 | - W/"c9017603ea01c27c666346fa4fcf6163" |
41 | Referrer-Policy: | 102 | Referrer-Policy: |
42 | - strict-origin-when-cross-origin | 103 | - strict-origin-when-cross-origin |
43 | Transfer-Encoding: | 104 | Transfer-Encoding: |
@@ -57,11 +118,11 @@ interactions: | |||
57 | X-RateLimit-Remaining: | 118 | X-RateLimit-Remaining: |
58 | - '399' | 119 | - '399' |
59 | X-RateLimit-Reset: | 120 | X-RateLimit-Reset: |
60 | - '2022-11-08T00:00:00.545038Z' | 121 | - '2022-11-14T00:00:00.616180Z' |
61 | X-Request-Id: | 122 | X-Request-Id: |
62 | - f3d6ccfb-2179-4e8c-bcb5-fb46c0870edd | 123 | - 15da12cb-1d26-48e9-9bb1-a848203394d2 |
63 | X-Runtime: | 124 | X-Runtime: |
64 | - '0.028249' | 125 | - '0.022842' |
65 | X-XSS-Protection: | 126 | X-XSS-Protection: |
66 | - 1; mode=block | 127 | - 1; mode=block |
67 | status: | 128 | status: |
@@ -84,14 +145,14 @@ interactions: | |||
84 | uri: http://localhost:3000/api/v1/follow_requests | 145 | uri: http://localhost:3000/api/v1/follow_requests |
85 | response: | 146 | response: |
86 | body: | 147 | body: |
87 | 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":3,"last_status_at":"2022-11-07","noindex":false,"emojis":[],"fields":[]}]' | 148 | 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,"emojis":[],"fields":[]}]' |
88 | headers: | 149 | headers: |
89 | Cache-Control: | 150 | Cache-Control: |
90 | - no-store | 151 | - no-store |
91 | Content-Security-Policy: | 152 | Content-Security-Policy: |
92 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 153 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
93 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 154 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
94 | style-src ''self'' http://localhost:3000 ''nonce-Pc83BwT56SW0tYznMK8o3w==''; | 155 | style-src ''self'' http://localhost:3000 ''nonce-jecWbkAS0SeQ/TAG2RYOgg==''; |
95 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 156 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
96 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 157 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
97 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 158 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -101,7 +162,7 @@ interactions: | |||
101 | Content-Type: | 162 | Content-Type: |
102 | - application/json; charset=utf-8 | 163 | - application/json; charset=utf-8 |
103 | ETag: | 164 | ETag: |
104 | - W/"e614b4039f2a8a9f7ac18423d5f529e5" | 165 | - W/"8643b7b02e183007a55f69f8f0544767" |
105 | Link: | 166 | Link: |
106 | - <http://localhost:3000/api/v1/follow_requests?since_id=1>; rel="prev" | 167 | - <http://localhost:3000/api/v1/follow_requests?since_id=1>; rel="prev" |
107 | Referrer-Policy: | 168 | Referrer-Policy: |
@@ -119,9 +180,9 @@ interactions: | |||
119 | X-Permitted-Cross-Domain-Policies: | 180 | X-Permitted-Cross-Domain-Policies: |
120 | - none | 181 | - none |
121 | X-Request-Id: | 182 | X-Request-Id: |
122 | - aa42e402-bb45-4fff-9987-aadf53bd87d7 | 183 | - 86c71a9e-5e46-4765-8dc1-75916939ff1d |
123 | X-Runtime: | 184 | X-Runtime: |
124 | - '0.014011' | 185 | - '0.018126' |
125 | X-XSS-Protection: | 186 | X-XSS-Protection: |
126 | - 1; mode=block | 187 | - 1; mode=block |
127 | status: | 188 | status: |
@@ -143,17 +204,18 @@ interactions: | |||
143 | User-Agent: | 204 | User-Agent: |
144 | - tests/v311 | 205 | - tests/v311 |
145 | method: POST | 206 | method: POST |
146 | uri: http://localhost:3000/api/v1/follow_requests/109304268902557892/authorize | 207 | uri: http://localhost:3000/api/v1/follow_requests/109336623096259500/authorize |
147 | response: | 208 | response: |
148 | body: | 209 | body: |
149 | string: '{"id":"109304268902557892","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":true,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}' | 210 | string: '{"id":"109336623096259500","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":true,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":"top |
211 | ebayer gerne wieder"}' | ||
150 | headers: | 212 | headers: |
151 | Cache-Control: | 213 | Cache-Control: |
152 | - no-store | 214 | - no-store |
153 | Content-Security-Policy: | 215 | Content-Security-Policy: |
154 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 216 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
155 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 217 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
156 | style-src ''self'' http://localhost:3000 ''nonce-ZgTAOj25y6zVTtehXme3Mg==''; | 218 | style-src ''self'' http://localhost:3000 ''nonce-5r9m6dN+Y1GGSrYUG/POTg==''; |
157 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 219 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
158 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 220 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
159 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 221 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -163,7 +225,7 @@ interactions: | |||
163 | Content-Type: | 225 | Content-Type: |
164 | - application/json; charset=utf-8 | 226 | - application/json; charset=utf-8 |
165 | ETag: | 227 | ETag: |
166 | - W/"12e2c3c81681c48d46a2a0676a657912" | 228 | - W/"d0da81e547fdcc929f449a2becd10e15" |
167 | Referrer-Policy: | 229 | Referrer-Policy: |
168 | - strict-origin-when-cross-origin | 230 | - strict-origin-when-cross-origin |
169 | Transfer-Encoding: | 231 | Transfer-Encoding: |
@@ -179,9 +241,9 @@ interactions: | |||
179 | X-Permitted-Cross-Domain-Policies: | 241 | X-Permitted-Cross-Domain-Policies: |
180 | - none | 242 | - none |
181 | X-Request-Id: | 243 | X-Request-Id: |
182 | - a92fadab-ead2-44d0-9875-4aa38e0f7df0 | 244 | - cac89e94-8297-4bdd-ae6a-ea536e0f9203 |
183 | X-Runtime: | 245 | X-Runtime: |
184 | - '0.040226' | 246 | - '0.786460' |
185 | X-XSS-Protection: | 247 | X-XSS-Protection: |
186 | - 1; mode=block | 248 | - 1; mode=block |
187 | status: | 249 | status: |
@@ -203,17 +265,17 @@ interactions: | |||
203 | User-Agent: | 265 | User-Agent: |
204 | - tests/v311 | 266 | - tests/v311 |
205 | method: POST | 267 | method: POST |
206 | uri: http://localhost:3000/api/v1/accounts/1234567890123456/unfollow | 268 | uri: http://localhost:3000/api/v1/accounts/109336623311102204/unfollow |
207 | response: | 269 | response: |
208 | body: | 270 | body: |
209 | string: '{"id":"1234567890123456","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":""}' | 271 | string: '{"id":"109336623311102204","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":""}' |
210 | headers: | 272 | headers: |
211 | Cache-Control: | 273 | Cache-Control: |
212 | - no-store | 274 | - no-store |
213 | Content-Security-Policy: | 275 | Content-Security-Policy: |
214 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 276 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
215 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 277 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
216 | style-src ''self'' http://localhost:3000 ''nonce-qiwxjL86uSlsu74vn0vJSQ==''; | 278 | style-src ''self'' http://localhost:3000 ''nonce-RoPciRMRRWGGMvDduMnOAA==''; |
217 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 279 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
218 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 280 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
219 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 281 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -223,7 +285,7 @@ interactions: | |||
223 | Content-Type: | 285 | Content-Type: |
224 | - application/json; charset=utf-8 | 286 | - application/json; charset=utf-8 |
225 | ETag: | 287 | ETag: |
226 | - W/"76448d2d20dfa7540764936ef5dbc7a9" | 288 | - W/"1edce98ad5974b5dd819e31494ac5177" |
227 | Referrer-Policy: | 289 | Referrer-Policy: |
228 | - strict-origin-when-cross-origin | 290 | - strict-origin-when-cross-origin |
229 | Transfer-Encoding: | 291 | Transfer-Encoding: |
@@ -239,9 +301,9 @@ interactions: | |||
239 | X-Permitted-Cross-Domain-Policies: | 301 | X-Permitted-Cross-Domain-Policies: |
240 | - none | 302 | - none |
241 | X-Request-Id: | 303 | X-Request-Id: |
242 | - c8fce5ec-8931-48e1-97ab-dbcda98dfb82 | 304 | - 090c7974-c4fa-4591-86f0-e7bb438182ab |
243 | X-Runtime: | 305 | X-Runtime: |
244 | - '0.018480' | 306 | - '0.016746' |
245 | X-XSS-Protection: | 307 | X-XSS-Protection: |
246 | - 1; mode=block | 308 | - 1; mode=block |
247 | status: | 309 | status: |