aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-04-18 22:07:03 +0200
committerLorenz Diener <[email protected]>2018-04-18 22:07:03 +0200
commitbc7b9defe8b72b6ab14ade6828a98f4d6e82b1de (patch)
tree6cd17b03100aa61c1d0a224771577601a1851f59 /tests/cassettes/test_status_reblogged_by.yaml
parent64ec9e20987072692227d8817d9fd99d497fea5e (diff)
downloadmastodon.py-bc7b9defe8b72b6ab14ade6828a98f4d6e82b1de.tar.gz
Attempt 2 at fixing the tests for travis
Diffstat (limited to 'tests/cassettes/test_status_reblogged_by.yaml')
-rw-r--r--tests/cassettes/test_status_reblogged_by.yaml119
1 files changed, 119 insertions, 0 deletions
diff --git a/tests/cassettes/test_status_reblogged_by.yaml b/tests/cassettes/test_status_reblogged_by.yaml
index 54022ec..c0fd7c1 100644
--- a/tests/cassettes/test_status_reblogged_by.yaml
+++ b/tests/cassettes/test_status_reblogged_by.yaml
@@ -118,4 +118,123 @@ interactions:
118 X-XSS-Protection: [1; mode=block] 118 X-XSS-Protection: [1; mode=block]
119 content-length: ['2'] 119 content-length: ['2']
120 status: {code: 200, message: OK} 120 status: {code: 200, message: OK}
121- request:
122 body: status=Toot%21
123 headers:
124 Accept: ['*/*']
125 Accept-Encoding: ['gzip, deflate']
126 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
127 Connection: [keep-alive]
128 Content-Length: ['14']
129 Content-Type: [application/x-www-form-urlencoded]
130 User-Agent: [python-requests/2.9.1]
131 method: POST
132 uri: http://localhost:3000/api/v1/statuses
133 response:
134 body: {string: '{"id":"99882234982300249","created_at":"2018-04-18T20:05:54.735Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882234982300249","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882234982300249","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
135 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
136 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
137 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":22},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
138 headers:
139 Cache-Control: ['max-age=0, private, must-revalidate']
140 Content-Type: [application/json; charset=utf-8]
141 ETag: [W/"8bfece368002ec6c37ea0b6c8ac1feb8"]
142 Transfer-Encoding: [chunked]
143 Vary: ['Accept-Encoding, Origin']
144 X-Content-Type-Options: [nosniff]
145 X-Frame-Options: [SAMEORIGIN]
146 X-Request-Id: [1c03a478-6009-4a3a-8601-9a9e1d81ed55]
147 X-Runtime: ['0.303046']
148 X-XSS-Protection: [1; mode=block]
149 content-length: ['1397']
150 status: {code: 200, message: OK}
151- request:
152 body: null
153 headers:
154 Accept: ['*/*']
155 Accept-Encoding: ['gzip, deflate']
156 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
157 Connection: [keep-alive]
158 Content-Length: ['0']
159 User-Agent: [python-requests/2.9.1]
160 method: POST
161 uri: http://localhost:3000/api/v1/statuses/99882234982300249/reblog
162 response:
163 body: {string: '{"id":"99882234999523108","created_at":"2018-04-18T20:05:54.960Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":null,"uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882234999523108/activity","content":"\u003cp\u003eRT
164 \u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\"
165 class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e
166 Toot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882234999523108","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":true,"muted":false,"reblog":{"id":"99882234982300249","created_at":"2018-04-18T20:05:54.735Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882234982300249","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882234982300249","reblogs_count":1,"favourites_count":0,"favourited":false,"reblogged":true,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
167 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
168 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
169 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":21},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},"application":null,"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
170 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
171 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":22},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
172 headers:
173 Cache-Control: ['max-age=0, private, must-revalidate']
174 Content-Type: [application/json; charset=utf-8]
175 ETag: [W/"ddb8bb9eed46a25918b9c61b25e3bb03"]
176 Transfer-Encoding: [chunked]
177 Vary: ['Accept-Encoding, Origin']
178 X-Content-Type-Options: [nosniff]
179 X-Frame-Options: [SAMEORIGIN]
180 X-Request-Id: [4ec1c4b9-5874-4634-8957-4497ef3e11be]
181 X-Runtime: ['0.191287']
182 X-XSS-Protection: [1; mode=block]
183 content-length: ['2940']
184 status: {code: 200, message: OK}
185- request:
186 body: null
187 headers:
188 Accept: ['*/*']
189 Accept-Encoding: ['gzip, deflate']
190 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
191 Connection: [keep-alive]
192 User-Agent: [python-requests/2.9.1]
193 method: GET
194 uri: http://localhost:3000/api/v1/statuses/99882234982300249/reblogged_by
195 response:
196 body: {string: '[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
197 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
198 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":22}]'}
199 headers:
200 Cache-Control: ['max-age=0, private, must-revalidate']
201 Content-Type: [application/json; charset=utf-8]
202 ETag: [W/"2f777f5304c2bd771692bf8f5ae855bc"]
203 Link: ['<http://localhost:3000/api/v1/statuses/99882234982300249/reblogged_by?since_id=99882234999523108>;
204 rel="prev"']
205 Transfer-Encoding: [chunked]
206 Vary: ['Accept-Encoding, Origin']
207 X-Content-Type-Options: [nosniff]
208 X-Frame-Options: [SAMEORIGIN]
209 X-Request-Id: [b1e3acc6-7ddb-43e8-80c3-1232c4b0220e]
210 X-Runtime: ['0.052221']
211 X-XSS-Protection: [1; mode=block]
212 content-length: ['766']
213 status: {code: 200, message: OK}
214- request:
215 body: null
216 headers:
217 Accept: ['*/*']
218 Accept-Encoding: ['gzip, deflate']
219 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
220 Connection: [keep-alive]
221 Content-Length: ['0']
222 User-Agent: [python-requests/2.9.1]
223 method: DELETE
224 uri: http://localhost:3000/api/v1/statuses/99882234982300249
225 response:
226 body: {string: '{}'}
227 headers:
228 Cache-Control: ['max-age=0, private, must-revalidate']
229 Content-Type: [application/json; charset=utf-8]
230 ETag: [W/"11d68e650b5642c0c4db9f8aef775559"]
231 Transfer-Encoding: [chunked]
232 Vary: ['Accept-Encoding, Origin']
233 X-Content-Type-Options: [nosniff]
234 X-Frame-Options: [SAMEORIGIN]
235 X-Request-Id: [57226379-e155-4236-b4d1-31ea999e2420]
236 X-Runtime: ['0.043853']
237 X-XSS-Protection: [1; mode=block]
238 content-length: ['2']
239 status: {code: 200, message: OK}
121version: 1 240version: 1
Powered by cgit v1.2.3 (git 2.41.0)