diff options
Diffstat (limited to 'tests/cassettes/test_status_fav_unfav.yaml')
-rw-r--r-- | tests/cassettes/test_status_fav_unfav.yaml | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/tests/cassettes/test_status_fav_unfav.yaml b/tests/cassettes/test_status_fav_unfav.yaml index f5ebf24..dbec014 100644 --- a/tests/cassettes/test_status_fav_unfav.yaml +++ b/tests/cassettes/test_status_fav_unfav.yaml | |||
@@ -113,4 +113,118 @@ interactions: | |||
113 | X-XSS-Protection: [1; mode=block] | 113 | X-XSS-Protection: [1; mode=block] |
114 | content-length: ['2'] | 114 | content-length: ['2'] |
115 | status: {code: 200, message: OK} | 115 | status: {code: 200, message: OK} |
116 | - request: | ||
117 | body: status=Toot%21 | ||
118 | headers: | ||
119 | Accept: ['*/*'] | ||
120 | Accept-Encoding: ['gzip, deflate'] | ||
121 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
122 | Connection: [keep-alive] | ||
123 | Content-Length: ['14'] | ||
124 | Content-Type: [application/x-www-form-urlencoded] | ||
125 | User-Agent: [python-requests/2.9.1] | ||
126 | method: POST | ||
127 | uri: http://localhost:3000/api/v1/statuses | ||
128 | response: | ||
129 | body: {string: '{"id":"99882235666174470","created_at":"2018-04-18T20:06:05.175Z","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/99882235666174470","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882235666174470","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
130 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
131 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI | ||
132 | 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":[]}'} | ||
133 | headers: | ||
134 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
135 | Content-Type: [application/json; charset=utf-8] | ||
136 | ETag: [W/"4e8f58339160ce899c6d52830e2a6d4b"] | ||
137 | Transfer-Encoding: [chunked] | ||
138 | Vary: ['Accept-Encoding, Origin'] | ||
139 | X-Content-Type-Options: [nosniff] | ||
140 | X-Frame-Options: [SAMEORIGIN] | ||
141 | X-Request-Id: [fa8c877d-5329-48e7-8a71-355b0b1cd20e] | ||
142 | X-Runtime: ['0.473039'] | ||
143 | X-XSS-Protection: [1; mode=block] | ||
144 | content-length: ['1397'] | ||
145 | status: {code: 200, message: OK} | ||
146 | - request: | ||
147 | body: null | ||
148 | headers: | ||
149 | Accept: ['*/*'] | ||
150 | Accept-Encoding: ['gzip, deflate'] | ||
151 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
152 | Connection: [keep-alive] | ||
153 | Content-Length: ['0'] | ||
154 | User-Agent: [python-requests/2.9.1] | ||
155 | method: POST | ||
156 | uri: http://localhost:3000/api/v1/statuses/99882235666174470/favourite | ||
157 | response: | ||
158 | body: {string: '{"id":"99882235666174470","created_at":"2018-04-18T20:06:05.175Z","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/99882235666174470","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882235666174470","reblogs_count":0,"favourites_count":1,"favourited":true,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
159 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
160 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI | ||
161 | 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":[]}'} | ||
162 | headers: | ||
163 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
164 | Content-Type: [application/json; charset=utf-8] | ||
165 | ETag: [W/"0ca784599abe14edf4aef00ff7656df7"] | ||
166 | Transfer-Encoding: [chunked] | ||
167 | Vary: ['Accept-Encoding, Origin'] | ||
168 | X-Content-Type-Options: [nosniff] | ||
169 | X-Frame-Options: [SAMEORIGIN] | ||
170 | X-Request-Id: [f955982c-ad5a-41b2-ba09-56bf11d34d00] | ||
171 | X-Runtime: ['0.121919'] | ||
172 | X-XSS-Protection: [1; mode=block] | ||
173 | content-length: ['1396'] | ||
174 | status: {code: 200, message: OK} | ||
175 | - request: | ||
176 | body: null | ||
177 | headers: | ||
178 | Accept: ['*/*'] | ||
179 | Accept-Encoding: ['gzip, deflate'] | ||
180 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
181 | Connection: [keep-alive] | ||
182 | Content-Length: ['0'] | ||
183 | User-Agent: [python-requests/2.9.1] | ||
184 | method: POST | ||
185 | uri: http://localhost:3000/api/v1/statuses/99882235666174470/unfavourite | ||
186 | response: | ||
187 | body: {string: '{"id":"99882235666174470","created_at":"2018-04-18T20:06:05.175Z","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/99882235666174470","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882235666174470","reblogs_count":0,"favourites_count":1,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
188 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
189 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI | ||
190 | 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":[]}'} | ||
191 | headers: | ||
192 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
193 | Content-Type: [application/json; charset=utf-8] | ||
194 | ETag: [W/"06c4688c6243ad578922489db589c61f"] | ||
195 | Transfer-Encoding: [chunked] | ||
196 | Vary: ['Accept-Encoding, Origin'] | ||
197 | X-Content-Type-Options: [nosniff] | ||
198 | X-Frame-Options: [SAMEORIGIN] | ||
199 | X-Request-Id: [1f2a8662-1951-40e7-bfc8-393fb89ef42b] | ||
200 | X-Runtime: ['0.105119'] | ||
201 | X-XSS-Protection: [1; mode=block] | ||
202 | content-length: ['1397'] | ||
203 | status: {code: 200, message: OK} | ||
204 | - request: | ||
205 | body: null | ||
206 | headers: | ||
207 | Accept: ['*/*'] | ||
208 | Accept-Encoding: ['gzip, deflate'] | ||
209 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
210 | Connection: [keep-alive] | ||
211 | Content-Length: ['0'] | ||
212 | User-Agent: [python-requests/2.9.1] | ||
213 | method: DELETE | ||
214 | uri: http://localhost:3000/api/v1/statuses/99882235666174470 | ||
215 | response: | ||
216 | body: {string: '{}'} | ||
217 | headers: | ||
218 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
219 | Content-Type: [application/json; charset=utf-8] | ||
220 | ETag: [W/"d844f3a64cfb51319b32c27f299cdde5"] | ||
221 | Transfer-Encoding: [chunked] | ||
222 | Vary: ['Accept-Encoding, Origin'] | ||
223 | X-Content-Type-Options: [nosniff] | ||
224 | X-Frame-Options: [SAMEORIGIN] | ||
225 | X-Request-Id: [39d358c4-7416-4437-a1dc-fe1096d2ec7d] | ||
226 | X-Runtime: ['0.044868'] | ||
227 | X-XSS-Protection: [1; mode=block] | ||
228 | content-length: ['2'] | ||
229 | status: {code: 200, message: OK} | ||
116 | version: 1 | 230 | version: 1 |