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_id_hook_in_reply_to.yaml
parent64ec9e20987072692227d8817d9fd99d497fea5e (diff)
downloadmastodon.py-bc7b9defe8b72b6ab14ade6828a98f4d6e82b1de.tar.gz
Attempt 2 at fixing the tests for travis
Diffstat (limited to 'tests/cassettes/test_id_hook_in_reply_to.yaml')
-rw-r--r--tests/cassettes/test_id_hook_in_reply_to.yaml112
1 files changed, 112 insertions, 0 deletions
diff --git a/tests/cassettes/test_id_hook_in_reply_to.yaml b/tests/cassettes/test_id_hook_in_reply_to.yaml
index 36eb20d..65c3396 100644
--- a/tests/cassettes/test_id_hook_in_reply_to.yaml
+++ b/tests/cassettes/test_id_hook_in_reply_to.yaml
@@ -111,4 +111,116 @@ interactions:
111 X-XSS-Protection: [1; mode=block] 111 X-XSS-Protection: [1; mode=block]
112 content-length: ['2'] 112 content-length: ['2']
113 status: {code: 200, message: OK} 113 status: {code: 200, message: OK}
114- request:
115 body: status=Toot%21
116 headers:
117 Accept: ['*/*']
118 Accept-Encoding: ['gzip, deflate']
119 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
120 Connection: [keep-alive]
121 Content-Length: ['14']
122 Content-Type: [application/x-www-form-urlencoded]
123 User-Agent: [python-requests/2.9.1]
124 method: POST
125 uri: http://localhost:3000/api/v1/statuses
126 response:
127 body: {string: '{"id":"99882232448219684","created_at":"2018-04-18T20:05:16.066Z","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/99882232448219684","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882232448219684","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
128 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
129 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
130 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":[]}'}
131 headers:
132 Cache-Control: ['max-age=0, private, must-revalidate']
133 Content-Type: [application/json; charset=utf-8]
134 ETag: [W/"aadb34f1b7457969db58986e259ecf1f"]
135 Transfer-Encoding: [chunked]
136 Vary: ['Accept-Encoding, Origin']
137 X-Content-Type-Options: [nosniff]
138 X-Frame-Options: [SAMEORIGIN]
139 X-Request-Id: [ba4cc74f-1f39-400b-8bb5-05129ef7536e]
140 X-Runtime: ['0.279984']
141 X-XSS-Protection: [1; mode=block]
142 content-length: ['1397']
143 status: {code: 200, message: OK}
144- request:
145 body: status=Reply%21&in_reply_to_id=99882232448219684
146 headers:
147 Accept: ['*/*']
148 Accept-Encoding: ['gzip, deflate']
149 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
150 Connection: [keep-alive]
151 Content-Length: ['48']
152 Content-Type: [application/x-www-form-urlencoded]
153 User-Agent: [python-requests/2.9.1]
154 method: POST
155 uri: http://localhost:3000/api/v1/statuses
156 response:
157 body: {string: '{"id":"99882232463400830","created_at":"2018-04-18T20:05:16.260Z","in_reply_to_id":"99882232448219684","in_reply_to_account_id":"1234567890123456","sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882232463400830","content":"\u003cp\u003eReply!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882232463400830","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
158 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
159 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
160 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":[]}'}
161 headers:
162 Cache-Control: ['max-age=0, private, must-revalidate']
163 Content-Type: [application/json; charset=utf-8]
164 ETag: [W/"592e411e6785f0dbfe62f32f7bcbd813"]
165 Transfer-Encoding: [chunked]
166 Vary: ['Accept-Encoding, Origin']
167 X-Content-Type-Options: [nosniff]
168 X-Frame-Options: [SAMEORIGIN]
169 X-Request-Id: [0e66147e-ce83-460f-99e6-cd7fc93fbc74]
170 X-Runtime: ['0.215496']
171 X-XSS-Protection: [1; mode=block]
172 content-length: ['1427']
173 status: {code: 200, message: OK}
174- request:
175 body: null
176 headers:
177 Accept: ['*/*']
178 Accept-Encoding: ['gzip, deflate']
179 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
180 Connection: [keep-alive]
181 Content-Length: ['0']
182 User-Agent: [python-requests/2.9.1]
183 method: DELETE
184 uri: http://localhost:3000/api/v1/statuses/99882232463400830
185 response:
186 body: {string: '{}'}
187 headers:
188 Cache-Control: ['max-age=0, private, must-revalidate']
189 Content-Type: [application/json; charset=utf-8]
190 ETag: [W/"e607899d86ae2829ee1d4e534eeb229e"]
191 Transfer-Encoding: [chunked]
192 Vary: ['Accept-Encoding, Origin']
193 X-Content-Type-Options: [nosniff]
194 X-Frame-Options: [SAMEORIGIN]
195 X-Request-Id: [586ea7c2-d7d9-4e0a-aba2-67d23fa65a07]
196 X-Runtime: ['0.038592']
197 X-XSS-Protection: [1; mode=block]
198 content-length: ['2']
199 status: {code: 200, message: OK}
200- request:
201 body: null
202 headers:
203 Accept: ['*/*']
204 Accept-Encoding: ['gzip, deflate']
205 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
206 Connection: [keep-alive]
207 Content-Length: ['0']
208 User-Agent: [python-requests/2.9.1]
209 method: DELETE
210 uri: http://localhost:3000/api/v1/statuses/99882232448219684
211 response:
212 body: {string: '{}'}
213 headers:
214 Cache-Control: ['max-age=0, private, must-revalidate']
215 Content-Type: [application/json; charset=utf-8]
216 ETag: [W/"e607899d86ae2829ee1d4e534eeb229e"]
217 Transfer-Encoding: [chunked]
218 Vary: ['Accept-Encoding, Origin']
219 X-Content-Type-Options: [nosniff]
220 X-Frame-Options: [SAMEORIGIN]
221 X-Request-Id: [a36ea50e-bc8a-4c47-82b0-7341c8b5e230]
222 X-Runtime: ['0.063065']
223 X-XSS-Protection: [1; mode=block]
224 content-length: ['2']
225 status: {code: 200, message: OK}
114version: 1 226version: 1
Powered by cgit v1.2.3 (git 2.41.0)