diff options
Diffstat (limited to 'tests/cassettes/test_notifications_dismiss.yaml')
-rw-r--r-- | tests/cassettes/test_notifications_dismiss.yaml | 401 |
1 files changed, 282 insertions, 119 deletions
diff --git a/tests/cassettes/test_notifications_dismiss.yaml b/tests/cassettes/test_notifications_dismiss.yaml index 430ee74..0d597af 100644 --- a/tests/cassettes/test_notifications_dismiss.yaml +++ b/tests/cassettes/test_notifications_dismiss.yaml | |||
@@ -2,153 +2,316 @@ interactions: | |||
2 | - request: | 2 | - request: |
3 | body: status=%40mastodonpy_test+hello%21 | 3 | body: status=%40mastodonpy_test+hello%21 |
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 | Content-Length: ['34'] | 9 | Authorization: |
10 | Content-Type: [application/x-www-form-urlencoded] | 10 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2 |
11 | User-Agent: [python-requests/2.18.4] | 11 | Connection: |
12 | - keep-alive | ||
13 | Content-Length: | ||
14 | - '34' | ||
15 | Content-Type: | ||
16 | - application/x-www-form-urlencoded | ||
17 | User-Agent: | ||
18 | - tests/v311 | ||
12 | method: POST | 19 | method: POST |
13 | uri: http://localhost:3000/api/v1/statuses | 20 | uri: http://localhost:3000/api/v1/statuses |
14 | response: | 21 | response: |
15 | body: {string: '{"id":"103704148750011021","created_at":"2020-02-22T19:28:50.704Z","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/103704148750011021","url":"http://localhost/@admin/103704148750011021","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003e\u003cspan | 22 | body: |
16 | class=\"h-card\"\u003e\u003ca href=\"http://localhost/@mastodonpy_test\" class=\"u-url | 23 | string: '{"id":"109304275739881636","created_at":"2022-11-07T19:54:47.146Z","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/109304275739881636","url":"http://localhost:3000/@admin/109304275739881636","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003e\u003cspan |
17 | mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | 24 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" |
18 | hello!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py test | 25 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e |
19 | 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":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'} | 26 | hello!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py |
27 | 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":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}' | ||
20 | headers: | 28 | headers: |
21 | Cache-Control: ['no-cache, no-store'] | 29 | Cache-Control: |
22 | Content-Type: [application/json; charset=utf-8] | 30 | - no-store |
23 | Referrer-Policy: [strict-origin-when-cross-origin] | 31 | Content-Security-Policy: |
24 | Transfer-Encoding: [chunked] | 32 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
25 | Vary: ['Accept-Encoding, Origin'] | 33 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
26 | X-Content-Type-Options: [nosniff] | 34 | style-src ''self'' http://localhost:3000 ''nonce-Ood1uft1M+AF/X5YjwwWYQ==''; |
27 | X-Download-Options: [noopen] | 35 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
28 | X-Frame-Options: [SAMEORIGIN] | 36 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
29 | X-Permitted-Cross-Domain-Policies: [none] | 37 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
30 | X-Request-Id: [5649c829-21c1-4093-9313-e8eef53105d3] | 38 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
31 | X-Runtime: ['0.310315'] | 39 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
32 | X-XSS-Protection: [1; mode=block] | 40 | worker-src ''self'' blob: http://localhost:3000' |
33 | content-length: ['1570'] | 41 | Content-Type: |
34 | status: {code: 200, message: OK} | 42 | - application/json; charset=utf-8 |
43 | ETag: | ||
44 | - W/"c85dbe58cf9dfbbaa5df16dc6606153b" | ||
45 | Referrer-Policy: | ||
46 | - strict-origin-when-cross-origin | ||
47 | Transfer-Encoding: | ||
48 | - chunked | ||
49 | Vary: | ||
50 | - Accept, Origin | ||
51 | X-Content-Type-Options: | ||
52 | - nosniff | ||
53 | X-Download-Options: | ||
54 | - noopen | ||
55 | X-Frame-Options: | ||
56 | - SAMEORIGIN | ||
57 | X-Permitted-Cross-Domain-Policies: | ||
58 | - none | ||
59 | X-RateLimit-Limit: | ||
60 | - '300' | ||
61 | X-RateLimit-Remaining: | ||
62 | - '297' | ||
63 | X-RateLimit-Reset: | ||
64 | - '2022-11-07T21:00:00.172285Z' | ||
65 | X-Request-Id: | ||
66 | - 0f21f001-b16a-47a6-bbc0-f81e61bf28ed | ||
67 | X-Runtime: | ||
68 | - '0.039049' | ||
69 | X-XSS-Protection: | ||
70 | - 1; mode=block | ||
71 | status: | ||
72 | code: 200 | ||
73 | message: OK | ||
35 | - request: | 74 | - request: |
36 | body: null | 75 | body: null |
37 | headers: | 76 | headers: |
38 | Accept: ['*/*'] | 77 | Accept: |
39 | Accept-Encoding: ['gzip, deflate'] | 78 | - '*/*' |
40 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 79 | Accept-Encoding: |
41 | Connection: [keep-alive] | 80 | - gzip, deflate |
42 | User-Agent: [python-requests/2.18.4] | 81 | Authorization: |
82 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
83 | Connection: | ||
84 | - keep-alive | ||
85 | User-Agent: | ||
86 | - tests/v311 | ||
43 | method: GET | 87 | method: GET |
44 | uri: http://localhost:3000/api/v1/notifications | 88 | uri: http://localhost:3000/api/v1/notifications |
45 | response: | 89 | response: |
46 | body: {string: '[{"id":"12","type":"mention","created_at":"2020-02-22T19:28:50.897Z","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":[]},"status":{"id":"103704148750011021","created_at":"2020-02-22T19:28:50.704Z","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/103704148750011021","url":"http://localhost/@admin/103704148750011021","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan | 90 | body: |
47 | class=\"h-card\"\u003e\u003ca href=\"http://localhost/@mastodonpy_test\" class=\"u-url | 91 | string: '[{"id":"6","type":"follow_request","created_at":"2022-11-07T19:54:38.477Z","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":[]}}]' |
48 | mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
49 | hello!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py test | ||
50 | 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":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}}]'} | ||
51 | headers: | 92 | headers: |
52 | Cache-Control: ['no-cache, no-store'] | 93 | Cache-Control: |
53 | Content-Type: [application/json; charset=utf-8] | 94 | - no-store |
54 | Link: ['<http://localhost:3000/api/v1/notifications?max_id=12>; rel="next", | 95 | Content-Security-Policy: |
55 | <http://localhost:3000/api/v1/notifications?min_id=12>; rel="prev"'] | 96 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
56 | Referrer-Policy: [strict-origin-when-cross-origin] | 97 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
57 | Transfer-Encoding: [chunked] | 98 | style-src ''self'' http://localhost:3000 ''nonce-GLe/BRxMb/4ukIpP+ySz6w==''; |
58 | Vary: ['Accept-Encoding, Origin'] | 99 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
59 | X-Content-Type-Options: [nosniff] | 100 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
60 | X-Download-Options: [noopen] | 101 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
61 | X-Frame-Options: [SAMEORIGIN] | 102 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
62 | X-Permitted-Cross-Domain-Policies: [none] | 103 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
63 | X-Request-Id: [7421ab40-ee1d-4d69-8c40-7c34f317db22] | 104 | worker-src ''self'' blob: http://localhost:3000' |
64 | X-Runtime: ['0.211879'] | 105 | Content-Type: |
65 | X-XSS-Protection: [1; mode=block] | 106 | - application/json; charset=utf-8 |
66 | content-length: ['2233'] | 107 | ETag: |
67 | status: {code: 200, message: OK} | 108 | - W/"7ba0277d54c9ec55fa8e206c94e7e7c5" |
109 | Link: | ||
110 | - <http://localhost:3000/api/v1/notifications?max_id=6>; rel="next", <http://localhost:3000/api/v1/notifications?min_id=6>; | ||
111 | rel="prev" | ||
112 | Referrer-Policy: | ||
113 | - strict-origin-when-cross-origin | ||
114 | Transfer-Encoding: | ||
115 | - chunked | ||
116 | Vary: | ||
117 | - Accept, Origin | ||
118 | X-Content-Type-Options: | ||
119 | - nosniff | ||
120 | X-Download-Options: | ||
121 | - noopen | ||
122 | X-Frame-Options: | ||
123 | - SAMEORIGIN | ||
124 | X-Permitted-Cross-Domain-Policies: | ||
125 | - none | ||
126 | X-Request-Id: | ||
127 | - 74be2b71-76f2-4f2c-8817-7f45a17bd654 | ||
128 | X-Runtime: | ||
129 | - '0.019147' | ||
130 | X-XSS-Protection: | ||
131 | - 1; mode=block | ||
132 | status: | ||
133 | code: 200 | ||
134 | message: OK | ||
68 | - request: | 135 | - request: |
69 | body: null | 136 | body: null |
70 | headers: | 137 | headers: |
71 | Accept: ['*/*'] | 138 | Accept: |
72 | Accept-Encoding: ['gzip, deflate'] | 139 | - '*/*' |
73 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 140 | Accept-Encoding: |
74 | Connection: [keep-alive] | 141 | - gzip, deflate |
75 | User-Agent: [python-requests/2.18.4] | 142 | Authorization: |
143 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
144 | Connection: | ||
145 | - keep-alive | ||
146 | User-Agent: | ||
147 | - tests/v311 | ||
76 | method: GET | 148 | method: GET |
77 | uri: http://localhost:3000/api/v1/instance/ | 149 | uri: http://localhost:3000/api/v1/instance/ |
78 | response: | 150 | response: |
79 | body: {string: '{"uri":"localhost","title":"Mastodon","short_description":"","description":"","email":"","version":"3.1.1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":3,"status_count":2,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"approval_required":false,"contact_account":null}'} | 151 | body: |
152 | string: '{"uri":"localhost:3000","title":"Mastodon","short_description":"","description":"","email":"","version":"4.0.0rc1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":4,"status_count":1,"domain_count":0},"thumbnail":"http://localhost:3000/packs/media/images/preview-6399aebd96ccf025654e2977454f168f.png","languages":["en"],"registrations":true,"approval_required":false,"invites_enabled":true,"configuration":{"accounts":{"max_featured_tags":10},"statuses":{"max_characters":500,"max_media_attachments":4,"characters_reserved_per_url":23},"media_attachments":{"supported_mime_types":["image/jpeg","image/png","image/gif","image/heic","image/heif","image/webp","image/avif","video/webm","video/mp4","video/quicktime","video/ogg","audio/wave","audio/wav","audio/x-wav","audio/x-pn-wave","audio/vnd.wave","audio/ogg","audio/vorbis","audio/mpeg","audio/mp3","audio/webm","audio/flac","audio/aac","audio/m4a","audio/x-m4a","audio/mp4","audio/3gpp","video/x-ms-asf"],"image_size_limit":10485760,"image_matrix_limit":16777216,"video_size_limit":41943040,"video_frame_rate_limit":60,"video_matrix_limit":2304000},"polls":{"max_options":4,"max_characters_per_option":50,"min_expiration":300,"max_expiration":2629746}},"contact_account":null,"rules":[]}' | ||
80 | headers: | 153 | headers: |
81 | Cache-Control: ['max-age=180, public'] | 154 | Cache-Control: |
82 | Content-Type: [application/json; charset=utf-8] | 155 | - max-age=180, public |
83 | Date: ['Sat, 22 Feb 2020 19:28:51 GMT'] | 156 | Content-Security-Policy: |
84 | ETag: [W/"b6077860f369838a5d8bc6ddb54355bc"] | 157 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
85 | Referrer-Policy: [strict-origin-when-cross-origin] | 158 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
86 | Transfer-Encoding: [chunked] | 159 | style-src ''self'' http://localhost:3000 ''nonce-YW16mj5VvnRtGyT5WYZLVg==''; |
87 | Vary: ['Accept-Encoding, Origin'] | 160 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
88 | X-Content-Type-Options: [nosniff] | 161 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
89 | X-Download-Options: [noopen] | 162 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
90 | X-Frame-Options: [SAMEORIGIN] | 163 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
91 | X-Permitted-Cross-Domain-Policies: [none] | 164 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
92 | X-Request-Id: [befc2d31-cf01-4163-af8d-cf3f232ca15f] | 165 | worker-src ''self'' blob: http://localhost:3000' |
93 | X-Runtime: ['0.063934'] | 166 | Content-Type: |
94 | X-XSS-Protection: [1; mode=block] | 167 | - application/json; charset=utf-8 |
95 | content-length: ['397'] | 168 | Date: |
96 | status: {code: 200, message: OK} | 169 | - Mon, 07 Nov 2022 19:54:47 GMT |
170 | ETag: | ||
171 | - W/"a17de89b698f0c42f267e69340e11e47" | ||
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 | - 38ffba67-56c0-4b67-a214-28bc43f86639 | ||
188 | X-Runtime: | ||
189 | - '0.013739' | ||
190 | X-XSS-Protection: | ||
191 | - 1; mode=block | ||
192 | status: | ||
193 | code: 200 | ||
194 | message: OK | ||
97 | - request: | 195 | - request: |
98 | body: null | 196 | body: null |
99 | headers: | 197 | headers: |
100 | Accept: ['*/*'] | 198 | Accept: |
101 | Accept-Encoding: ['gzip, deflate'] | 199 | - '*/*' |
102 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 200 | Accept-Encoding: |
103 | Connection: [keep-alive] | 201 | - gzip, deflate |
104 | Content-Length: ['0'] | 202 | Authorization: |
105 | User-Agent: [python-requests/2.18.4] | 203 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN |
204 | Connection: | ||
205 | - keep-alive | ||
206 | Content-Length: | ||
207 | - '0' | ||
208 | User-Agent: | ||
209 | - tests/v311 | ||
106 | method: POST | 210 | method: POST |
107 | uri: http://localhost:3000/api/v1/notifications/12/dismiss | 211 | uri: http://localhost:3000/api/v1/notifications/6/dismiss |
108 | response: | 212 | response: |
109 | body: {string: '{}'} | 213 | body: |
214 | string: '{}' | ||
110 | headers: | 215 | headers: |
111 | Cache-Control: ['no-cache, no-store'] | 216 | Cache-Control: |
112 | Content-Type: [application/json; charset=utf-8] | 217 | - no-store |
113 | Referrer-Policy: [strict-origin-when-cross-origin] | 218 | Content-Security-Policy: |
114 | Transfer-Encoding: [chunked] | 219 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
115 | Vary: ['Accept-Encoding, Origin'] | 220 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
116 | X-Content-Type-Options: [nosniff] | 221 | style-src ''self'' http://localhost:3000 ''nonce-S8/BS4+NES5M1jWFmsp4ng==''; |
117 | X-Download-Options: [noopen] | 222 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
118 | X-Frame-Options: [SAMEORIGIN] | 223 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
119 | X-Permitted-Cross-Domain-Policies: [none] | 224 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
120 | X-Request-Id: [57da8d7c-867c-4288-bcab-d6c936e858d3] | 225 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
121 | X-Runtime: ['0.043769'] | 226 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
122 | X-XSS-Protection: [1; mode=block] | 227 | worker-src ''self'' blob: http://localhost:3000' |
123 | content-length: ['2'] | 228 | Content-Type: |
124 | status: {code: 200, message: OK} | 229 | - application/json; charset=utf-8 |
230 | ETag: | ||
231 | - W/"44136fa355b3678a1146ad16f7e8649e" | ||
232 | Referrer-Policy: | ||
233 | - strict-origin-when-cross-origin | ||
234 | Transfer-Encoding: | ||
235 | - chunked | ||
236 | Vary: | ||
237 | - Accept, Origin | ||
238 | X-Content-Type-Options: | ||
239 | - nosniff | ||
240 | X-Download-Options: | ||
241 | - noopen | ||
242 | X-Frame-Options: | ||
243 | - SAMEORIGIN | ||
244 | X-Permitted-Cross-Domain-Policies: | ||
245 | - none | ||
246 | X-Request-Id: | ||
247 | - 4b947742-ab8d-40c1-9b93-261fec9ea293 | ||
248 | X-Runtime: | ||
249 | - '0.010901' | ||
250 | X-XSS-Protection: | ||
251 | - 1; mode=block | ||
252 | status: | ||
253 | code: 200 | ||
254 | message: OK | ||
125 | - request: | 255 | - request: |
126 | body: null | 256 | body: null |
127 | headers: | 257 | headers: |
128 | Accept: ['*/*'] | 258 | Accept: |
129 | Accept-Encoding: ['gzip, deflate'] | 259 | - '*/*' |
130 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] | 260 | Accept-Encoding: |
131 | Connection: [keep-alive] | 261 | - gzip, deflate |
132 | Content-Length: ['0'] | 262 | Authorization: |
133 | User-Agent: [python-requests/2.18.4] | 263 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2 |
264 | Connection: | ||
265 | - keep-alive | ||
266 | Content-Length: | ||
267 | - '0' | ||
268 | User-Agent: | ||
269 | - tests/v311 | ||
134 | method: DELETE | 270 | method: DELETE |
135 | uri: http://localhost:3000/api/v1/statuses/103704148750011021 | 271 | uri: http://localhost:3000/api/v1/statuses/109304275739881636 |
136 | response: | 272 | response: |
137 | body: {string: '{"id":"103704148750011021","created_at":"2020-02-22T19:28:50.704Z","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/103704148750011021","url":"http://localhost/@admin/103704148750011021","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"@mastodonpy_test | 273 | body: |
138 | hello!","reblog":null,"application":{"name":"Mastodon.py 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":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'} | 274 | string: '{"id":"109304275739881636","created_at":"2022-11-07T19:54:47.146Z","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/109304275739881636","url":"http://localhost:3000/@admin/109304275739881636","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"@mastodonpy_test |
275 | hello!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py test | ||
276 | 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":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}' | ||
139 | headers: | 277 | headers: |
140 | Cache-Control: ['no-cache, no-store'] | 278 | Cache-Control: |
141 | Content-Type: [application/json; charset=utf-8] | 279 | - no-store |
142 | Referrer-Policy: [strict-origin-when-cross-origin] | 280 | Content-Security-Policy: |
143 | Transfer-Encoding: [chunked] | 281 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
144 | Vary: ['Accept-Encoding, Origin'] | 282 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
145 | X-Content-Type-Options: [nosniff] | 283 | style-src ''self'' http://localhost:3000 ''nonce-fbFVsvr3bIsp3OAMiUkOCQ==''; |
146 | X-Download-Options: [noopen] | 284 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
147 | X-Frame-Options: [SAMEORIGIN] | 285 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
148 | X-Permitted-Cross-Domain-Policies: [none] | 286 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
149 | X-Request-Id: [274b4c54-1288-460d-a8cc-afcf0ab50d81] | 287 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
150 | X-Runtime: ['0.156858'] | 288 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
151 | X-XSS-Protection: [1; mode=block] | 289 | worker-src ''self'' blob: http://localhost:3000' |
152 | content-length: ['1363'] | 290 | Content-Type: |
153 | status: {code: 200, message: OK} | 291 | - application/json; charset=utf-8 |
292 | ETag: | ||
293 | - W/"96a5f537070048a9fbca4202992a5561" | ||
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 | - 09253804-3f84-4bd6-a5da-44efa042f938 | ||
310 | X-Runtime: | ||
311 | - '0.027164' | ||
312 | X-XSS-Protection: | ||
313 | - 1; mode=block | ||
314 | status: | ||
315 | code: 200 | ||
316 | message: OK | ||
154 | version: 1 | 317 | version: 1 |