diff options
Diffstat (limited to 'tests/cassettes/test_notifications.yaml')
-rw-r--r-- | tests/cassettes/test_notifications.yaml | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/tests/cassettes/test_notifications.yaml b/tests/cassettes/test_notifications.yaml index 6dfd8ad..a20e25e 100644 --- a/tests/cassettes/test_notifications.yaml +++ b/tests/cassettes/test_notifications.yaml | |||
@@ -116,4 +116,121 @@ interactions: | |||
116 | X-XSS-Protection: [1; mode=block] | 116 | X-XSS-Protection: [1; mode=block] |
117 | content-length: ['2'] | 117 | content-length: ['2'] |
118 | status: {code: 200, message: OK} | 118 | status: {code: 200, message: OK} |
119 | - request: | ||
120 | body: status=%40mastodonpy_test+hello%21 | ||
121 | headers: | ||
122 | Accept: ['*/*'] | ||
123 | Accept-Encoding: ['gzip, deflate'] | ||
124 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] | ||
125 | Connection: [keep-alive] | ||
126 | Content-Length: ['34'] | ||
127 | Content-Type: [application/x-www-form-urlencoded] | ||
128 | User-Agent: [python-requests/2.9.1] | ||
129 | method: POST | ||
130 | uri: http://localhost:3000/api/v1/statuses | ||
131 | response: | ||
132 | body: {string: '{"id":"99882232720669884","created_at":"2018-04-18T20:05:20.221Z","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/99882232720669884","content":"\u003cp\u003e\u003cspan | ||
133 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | ||
134 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
135 | hello!\u003c/p\u003e","url":"http://localhost:3000/@admin/99882232720669884","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
136 | 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":[]}'} | ||
137 | headers: | ||
138 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
139 | Content-Type: [application/json; charset=utf-8] | ||
140 | ETag: [W/"d616556ddbf34a2797dd7dabf1d4ed82"] | ||
141 | Transfer-Encoding: [chunked] | ||
142 | Vary: ['Accept-Encoding, Origin'] | ||
143 | X-Content-Type-Options: [nosniff] | ||
144 | X-Frame-Options: [SAMEORIGIN] | ||
145 | X-Request-Id: [3fdb3a2c-bf06-4ae4-bade-810dfcd6da0f] | ||
146 | X-Runtime: ['0.408311'] | ||
147 | X-XSS-Protection: [1; mode=block] | ||
148 | content-length: ['1452'] | ||
149 | status: {code: 200, message: OK} | ||
150 | - request: | ||
151 | body: null | ||
152 | headers: | ||
153 | Accept: ['*/*'] | ||
154 | Accept-Encoding: ['gzip, deflate'] | ||
155 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
156 | Connection: [keep-alive] | ||
157 | User-Agent: [python-requests/2.9.1] | ||
158 | method: GET | ||
159 | uri: http://localhost:3000/api/v1/notifications | ||
160 | response: | ||
161 | body: {string: '[{"id":"77","type":"mention","created_at":"2018-04-18T20:05:20.352Z","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":"99882232720669884","created_at":"2018-04-18T20:05:20.221Z","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/99882232720669884","content":"\u003cp\u003e\u003cspan | ||
162 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | ||
163 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
164 | hello!\u003c/p\u003e","url":"http://localhost:3000/@admin/99882232720669884","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"reblog":null,"application":{"name":"Mastodon.py | ||
165 | 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":[]}}]'} | ||
166 | headers: | ||
167 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
168 | Content-Type: [application/json; charset=utf-8] | ||
169 | ETag: [W/"3669ddbfbdf8cb2b4bfe65e553d44201"] | ||
170 | Link: ['<http://localhost:3000/api/v1/notifications?max_id=77>; rel="next", | ||
171 | <http://localhost:3000/api/v1/notifications?since_id=77>; rel="prev"'] | ||
172 | Transfer-Encoding: [chunked] | ||
173 | Vary: ['Accept-Encoding, Origin'] | ||
174 | X-Content-Type-Options: [nosniff] | ||
175 | X-Frame-Options: [SAMEORIGIN] | ||
176 | X-Request-Id: [c8a9a396-18a3-45f7-be36-e0e23b9f1ffe] | ||
177 | X-Runtime: ['0.098286'] | ||
178 | X-XSS-Protection: [1; mode=block] | ||
179 | content-length: ['2041'] | ||
180 | status: {code: 200, message: OK} | ||
181 | - request: | ||
182 | body: null | ||
183 | headers: | ||
184 | Accept: ['*/*'] | ||
185 | Accept-Encoding: ['gzip, deflate'] | ||
186 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
187 | Connection: [keep-alive] | ||
188 | User-Agent: [python-requests/2.9.1] | ||
189 | method: GET | ||
190 | uri: http://localhost:3000/api/v1/notifications/77 | ||
191 | response: | ||
192 | body: {string: '{"id":"77","type":"mention","created_at":"2018-04-18T20:05:20.352Z","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":"99882232720669884","created_at":"2018-04-18T20:05:20.221Z","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/99882232720669884","content":"\u003cp\u003e\u003cspan | ||
193 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | ||
194 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
195 | hello!\u003c/p\u003e","url":"http://localhost:3000/@admin/99882232720669884","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"reblog":null,"application":{"name":"Mastodon.py | ||
196 | 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":[]}}'} | ||
197 | headers: | ||
198 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
199 | Content-Type: [application/json; charset=utf-8] | ||
200 | ETag: [W/"c56e1d8924d2feefa3fd2b3df1354782"] | ||
201 | Transfer-Encoding: [chunked] | ||
202 | Vary: ['Accept-Encoding, Origin'] | ||
203 | X-Content-Type-Options: [nosniff] | ||
204 | X-Frame-Options: [SAMEORIGIN] | ||
205 | X-Request-Id: [610e4529-fa41-41c8-bbf7-f3fabddda3cc] | ||
206 | X-Runtime: ['0.121344'] | ||
207 | X-XSS-Protection: [1; mode=block] | ||
208 | content-length: ['2039'] | ||
209 | status: {code: 200, message: OK} | ||
210 | - request: | ||
211 | body: null | ||
212 | headers: | ||
213 | Accept: ['*/*'] | ||
214 | Accept-Encoding: ['gzip, deflate'] | ||
215 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] | ||
216 | Connection: [keep-alive] | ||
217 | Content-Length: ['0'] | ||
218 | User-Agent: [python-requests/2.9.1] | ||
219 | method: DELETE | ||
220 | uri: http://localhost:3000/api/v1/statuses/99882232720669884 | ||
221 | response: | ||
222 | body: {string: '{}'} | ||
223 | headers: | ||
224 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
225 | Content-Type: [application/json; charset=utf-8] | ||
226 | ETag: [W/"9e7aeafdac7b51f6bc5ce70e36251522"] | ||
227 | Transfer-Encoding: [chunked] | ||
228 | Vary: ['Accept-Encoding, Origin'] | ||
229 | X-Content-Type-Options: [nosniff] | ||
230 | X-Frame-Options: [SAMEORIGIN] | ||
231 | X-Request-Id: [dc65e2b0-ab84-4b64-a112-0395384de69f] | ||
232 | X-Runtime: ['0.055487'] | ||
233 | X-XSS-Protection: [1; mode=block] | ||
234 | content-length: ['2'] | ||
235 | status: {code: 200, message: OK} | ||
119 | version: 1 | 236 | version: 1 |