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_reblog_unreblog.yaml
parent64ec9e20987072692227d8817d9fd99d497fea5e (diff)
downloadmastodon.py-bc7b9defe8b72b6ab14ade6828a98f4d6e82b1de.tar.gz
Attempt 2 at fixing the tests for travis
Diffstat (limited to 'tests/cassettes/test_status_reblog_unreblog.yaml')
-rw-r--r--tests/cassettes/test_status_reblog_unreblog.yaml119
1 files changed, 119 insertions, 0 deletions
diff --git a/tests/cassettes/test_status_reblog_unreblog.yaml b/tests/cassettes/test_status_reblog_unreblog.yaml
index 31f30f1..6ac4299 100644
--- a/tests/cassettes/test_status_reblog_unreblog.yaml
+++ b/tests/cassettes/test_status_reblog_unreblog.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":"99882235612121132","created_at":"2018-04-18T20:06:04.333Z","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/99882235612121132","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882235612121132","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":21},"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/"4863490c292eeebdd64d2ebe605686a0"]
142 Transfer-Encoding: [chunked]
143 Vary: ['Accept-Encoding, Origin']
144 X-Content-Type-Options: [nosniff]
145 X-Frame-Options: [SAMEORIGIN]
146 X-Request-Id: [d5f9dd3e-85a0-4deb-8127-f02a42f9a690]
147 X-Runtime: ['0.228094']
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/99882235612121132/reblog
162 response:
163 body: {string: '{"id":"99882235628654682","created_at":"2018-04-18T20:06:04.553Z","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/99882235628654682/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/99882235628654682","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":true,"muted":false,"reblog":{"id":"99882235612121132","created_at":"2018-04-18T20:06:04.333Z","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/99882235612121132","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882235612121132","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/"2c7279cd222dd35212a6a609232db96e"]
176 Transfer-Encoding: [chunked]
177 Vary: ['Accept-Encoding, Origin']
178 X-Content-Type-Options: [nosniff]
179 X-Frame-Options: [SAMEORIGIN]
180 X-Request-Id: [b1d6e253-e9e9-4f5a-b8df-a34a48174763]
181 X-Runtime: ['0.235541']
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 Content-Length: ['0']
193 User-Agent: [python-requests/2.9.1]
194 method: POST
195 uri: http://localhost:3000/api/v1/statuses/99882235612121132/unreblog
196 response:
197 body: {string: '{"id":"99882235612121132","created_at":"2018-04-18T20:06:04.333Z","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/99882235612121132","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882235612121132","reblogs_count":1,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
198 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
199 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
200 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":[]}'}
201 headers:
202 Cache-Control: ['max-age=0, private, must-revalidate']
203 Content-Type: [application/json; charset=utf-8]
204 ETag: [W/"83bb5dc52d044928d99acd9baf65e1b0"]
205 Transfer-Encoding: [chunked]
206 Vary: ['Accept-Encoding, Origin']
207 X-Content-Type-Options: [nosniff]
208 X-Frame-Options: [SAMEORIGIN]
209 X-Request-Id: [2140000b-5add-4381-adbf-82087c4910d3]
210 X-Runtime: ['0.117119']
211 X-XSS-Protection: [1; mode=block]
212 content-length: ['1397']
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/99882235612121132
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/"11eee6ea03cb4f549f2f86602767b919"]
231 Transfer-Encoding: [chunked]
232 Vary: ['Accept-Encoding, Origin']
233 X-Content-Type-Options: [nosniff]
234 X-Frame-Options: [SAMEORIGIN]
235 X-Request-Id: [a4f34cf2-7b01-4420-b89e-70fbc580800c]
236 X-Runtime: ['0.067248']
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)