diff options
Diffstat (limited to 'tests/cassettes/test_notifications_dismiss.yaml')
-rw-r--r-- | tests/cassettes/test_notifications_dismiss.yaml | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/tests/cassettes/test_notifications_dismiss.yaml b/tests/cassettes/test_notifications_dismiss.yaml index d46c9d3..e0749d0 100644 --- a/tests/cassettes/test_notifications_dismiss.yaml +++ b/tests/cassettes/test_notifications_dismiss.yaml | |||
@@ -114,4 +114,119 @@ interactions: | |||
114 | X-XSS-Protection: [1; mode=block] | 114 | X-XSS-Protection: [1; mode=block] |
115 | content-length: ['2'] | 115 | content-length: ['2'] |
116 | status: {code: 200, message: OK} | 116 | status: {code: 200, message: OK} |
117 | - request: | ||
118 | body: status=%40mastodonpy_test+hello%21 | ||
119 | headers: | ||
120 | Accept: ['*/*'] | ||
121 | Accept-Encoding: ['gzip, deflate'] | ||
122 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] | ||
123 | Connection: [keep-alive] | ||
124 | Content-Length: ['34'] | ||
125 | Content-Type: [application/x-www-form-urlencoded] | ||
126 | User-Agent: [python-requests/2.9.1] | ||
127 | method: POST | ||
128 | uri: http://localhost:3000/api/v1/statuses | ||
129 | response: | ||
130 | body: {string: '{"id":"99882232776575872","created_at":"2018-04-18T20:05:21.088Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"sr","uri":"http://localhost:3000/users/admin/statuses/99882232776575872","content":"\u003cp\u003e\u003cspan | ||
131 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | ||
132 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
133 | hello!\u003c/p\u003e","url":"http://localhost:3000/@admin/99882232776575872","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
134 | test suite","website":null},"account":{"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":22},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[]}'} | ||
135 | headers: | ||
136 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
137 | Content-Type: [application/json; charset=utf-8] | ||
138 | ETag: [W/"e3aab546e09706a1d595470d0ec9ff5c"] | ||
139 | Transfer-Encoding: [chunked] | ||
140 | Vary: ['Accept-Encoding, Origin'] | ||
141 | X-Content-Type-Options: [nosniff] | ||
142 | X-Frame-Options: [SAMEORIGIN] | ||
143 | X-Request-Id: [b25afa26-9cbb-41d7-b41c-b2f62cd3bc24] | ||
144 | X-Runtime: ['0.536045'] | ||
145 | X-XSS-Protection: [1; mode=block] | ||
146 | content-length: ['1452'] | ||
147 | status: {code: 200, message: OK} | ||
148 | - request: | ||
149 | body: null | ||
150 | headers: | ||
151 | Accept: ['*/*'] | ||
152 | Accept-Encoding: ['gzip, deflate'] | ||
153 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
154 | Connection: [keep-alive] | ||
155 | User-Agent: [python-requests/2.9.1] | ||
156 | method: GET | ||
157 | uri: http://localhost:3000/api/v1/notifications | ||
158 | response: | ||
159 | body: {string: '[{"id":"78","type":"mention","created_at":"2018-04-18T20:05:21.191Z","account":{"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":21},"status":{"id":"99882232776575872","created_at":"2018-04-18T20:05:21.088Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"sr","uri":"http://localhost:3000/users/admin/statuses/99882232776575872","content":"\u003cp\u003e\u003cspan | ||
160 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | ||
161 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
162 | hello!\u003c/p\u003e","url":"http://localhost:3000/@admin/99882232776575872","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"reblog":null,"application":{"name":"Mastodon.py | ||
163 | test suite","website":null},"account":{"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":21},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[]}}]'} | ||
164 | headers: | ||
165 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
166 | Content-Type: [application/json; charset=utf-8] | ||
167 | ETag: [W/"b69baae52ea2751535dd5b454e8a8340"] | ||
168 | Link: ['<http://localhost:3000/api/v1/notifications?max_id=78>; rel="next", | ||
169 | <http://localhost:3000/api/v1/notifications?since_id=78>; rel="prev"'] | ||
170 | Transfer-Encoding: [chunked] | ||
171 | Vary: ['Accept-Encoding, Origin'] | ||
172 | X-Content-Type-Options: [nosniff] | ||
173 | X-Frame-Options: [SAMEORIGIN] | ||
174 | X-Request-Id: [74347379-83d2-4907-9c03-b48f7356e0ca] | ||
175 | X-Runtime: ['0.144665'] | ||
176 | X-XSS-Protection: [1; mode=block] | ||
177 | content-length: ['2041'] | ||
178 | status: {code: 200, message: OK} | ||
179 | - request: | ||
180 | body: id=78 | ||
181 | headers: | ||
182 | Accept: ['*/*'] | ||
183 | Accept-Encoding: ['gzip, deflate'] | ||
184 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
185 | Connection: [keep-alive] | ||
186 | Content-Length: ['5'] | ||
187 | Content-Type: [application/x-www-form-urlencoded] | ||
188 | User-Agent: [python-requests/2.9.1] | ||
189 | method: POST | ||
190 | uri: http://localhost:3000/api/v1/notifications/dismiss | ||
191 | response: | ||
192 | body: {string: '{}'} | ||
193 | headers: | ||
194 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
195 | Content-Type: [application/json; charset=utf-8] | ||
196 | ETag: [W/"87b1fbe1fedc955dc2470ea53d432557"] | ||
197 | Transfer-Encoding: [chunked] | ||
198 | Vary: ['Accept-Encoding, Origin'] | ||
199 | X-Content-Type-Options: [nosniff] | ||
200 | X-Frame-Options: [SAMEORIGIN] | ||
201 | X-Request-Id: [066ed565-69fa-4eaa-9a77-9e3c45f7cbad] | ||
202 | X-Runtime: ['0.074129'] | ||
203 | X-XSS-Protection: [1; mode=block] | ||
204 | content-length: ['2'] | ||
205 | status: {code: 200, message: OK} | ||
206 | - request: | ||
207 | body: null | ||
208 | headers: | ||
209 | Accept: ['*/*'] | ||
210 | Accept-Encoding: ['gzip, deflate'] | ||
211 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] | ||
212 | Connection: [keep-alive] | ||
213 | Content-Length: ['0'] | ||
214 | User-Agent: [python-requests/2.9.1] | ||
215 | method: DELETE | ||
216 | uri: http://localhost:3000/api/v1/statuses/99882232776575872 | ||
217 | response: | ||
218 | body: {string: '{}'} | ||
219 | headers: | ||
220 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
221 | Content-Type: [application/json; charset=utf-8] | ||
222 | ETag: [W/"87b1fbe1fedc955dc2470ea53d432557"] | ||
223 | Transfer-Encoding: [chunked] | ||
224 | Vary: ['Accept-Encoding, Origin'] | ||
225 | X-Content-Type-Options: [nosniff] | ||
226 | X-Frame-Options: [SAMEORIGIN] | ||
227 | X-Request-Id: [7247d874-1925-4876-b58b-4a944b4ee37f] | ||
228 | X-Runtime: ['0.061771'] | ||
229 | X-XSS-Protection: [1; mode=block] | ||
230 | content-length: ['2'] | ||
231 | status: {code: 200, message: OK} | ||
117 | version: 1 | 232 | version: 1 |