diff options
Diffstat (limited to 'tests/cassettes/test_id_hook_in_reply_to.yaml')
-rw-r--r-- | tests/cassettes/test_id_hook_in_reply_to.yaml | 154 |
1 files changed, 21 insertions, 133 deletions
diff --git a/tests/cassettes/test_id_hook_in_reply_to.yaml b/tests/cassettes/test_id_hook_in_reply_to.yaml index 65c3396..e639be7 100644 --- a/tests/cassettes/test_id_hook_in_reply_to.yaml +++ b/tests/cassettes/test_id_hook_in_reply_to.yaml | |||
@@ -12,25 +12,25 @@ interactions: | |||
12 | method: POST | 12 | method: POST |
13 | uri: http://localhost:3000/api/v1/statuses | 13 | uri: http://localhost:3000/api/v1/statuses |
14 | response: | 14 | response: |
15 | body: {string: '{"id":"99882188005617641","created_at":"2018-04-18T19:53:57.892Z","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/99882188005617641","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882188005617641","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 15 | body: {string: '{"id":"99979312416335425","created_at":"2018-05-05T23:33:58.813Z","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/99979312416335425","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979312416335425","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py |
16 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 16 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
17 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI | 17 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI |
18 | 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_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":0,"statuses_count":22},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | 18 | 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":127},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} |
19 | headers: | 19 | headers: |
20 | Cache-Control: ['max-age=0, private, must-revalidate'] | 20 | Cache-Control: ['max-age=0, private, must-revalidate'] |
21 | Content-Type: [application/json; charset=utf-8] | 21 | Content-Type: [application/json; charset=utf-8] |
22 | ETag: [W/"d3f787976e4b9b192e14820fd6c30a45"] | 22 | ETag: [W/"40958c1107ae1e91ea28a1ffc15fb176"] |
23 | Transfer-Encoding: [chunked] | 23 | Transfer-Encoding: [chunked] |
24 | Vary: ['Accept-Encoding, Origin'] | 24 | Vary: ['Accept-Encoding, Origin'] |
25 | X-Content-Type-Options: [nosniff] | 25 | X-Content-Type-Options: [nosniff] |
26 | X-Frame-Options: [SAMEORIGIN] | 26 | X-Frame-Options: [SAMEORIGIN] |
27 | X-Request-Id: [3f4f6189-c8f5-4b28-83c3-07a2fbe4ba64] | 27 | X-Request-Id: [8ce126f1-7339-4dcd-a3b0-7944dbf1b9cc] |
28 | X-Runtime: ['0.313662'] | 28 | X-Runtime: ['0.482959'] |
29 | X-XSS-Protection: [1; mode=block] | 29 | X-XSS-Protection: [1; mode=block] |
30 | content-length: ['1397'] | 30 | content-length: ['1398'] |
31 | status: {code: 200, message: OK} | 31 | status: {code: 200, message: OK} |
32 | - request: | 32 | - request: |
33 | body: status=Reply%21&in_reply_to_id=99882188005617641 | 33 | body: status=Reply%21&in_reply_to_id=99979312416335425 |
34 | headers: | 34 | headers: |
35 | Accept: ['*/*'] | 35 | Accept: ['*/*'] |
36 | Accept-Encoding: ['gzip, deflate'] | 36 | Accept-Encoding: ['gzip, deflate'] |
@@ -42,22 +42,22 @@ interactions: | |||
42 | method: POST | 42 | method: POST |
43 | uri: http://localhost:3000/api/v1/statuses | 43 | uri: http://localhost:3000/api/v1/statuses |
44 | response: | 44 | response: |
45 | body: {string: '{"id":"99882188019557084","created_at":"2018-04-18T19:53:58.102Z","in_reply_to_id":"99882188005617641","in_reply_to_account_id":"1234567890123456","sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882188019557084","content":"\u003cp\u003eReply!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882188019557084","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 45 | body: {string: '{"id":"99979312448765644","created_at":"2018-05-05T23:33:59.332Z","in_reply_to_id":"99979312416335425","in_reply_to_account_id":"1234567890123456","sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979312448765644","content":"\u003cp\u003eReply!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979312448765644","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py |
46 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 46 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
47 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI | 47 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI |
48 | 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_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":0,"statuses_count":22},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | 48 | 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":127},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} |
49 | headers: | 49 | headers: |
50 | Cache-Control: ['max-age=0, private, must-revalidate'] | 50 | Cache-Control: ['max-age=0, private, must-revalidate'] |
51 | Content-Type: [application/json; charset=utf-8] | 51 | Content-Type: [application/json; charset=utf-8] |
52 | ETag: [W/"1360daffb4950601c7132fe4c13e29d2"] | 52 | ETag: [W/"f31fe1d7f88e1b5e829d3681b13d4845"] |
53 | Transfer-Encoding: [chunked] | 53 | Transfer-Encoding: [chunked] |
54 | Vary: ['Accept-Encoding, Origin'] | 54 | Vary: ['Accept-Encoding, Origin'] |
55 | X-Content-Type-Options: [nosniff] | 55 | X-Content-Type-Options: [nosniff] |
56 | X-Frame-Options: [SAMEORIGIN] | 56 | X-Frame-Options: [SAMEORIGIN] |
57 | X-Request-Id: [a631a731-1b05-46af-8ad2-c16fe7fd46b0] | 57 | X-Request-Id: [3aaa8427-06f6-4cda-9868-286c8a70fa9d] |
58 | X-Runtime: ['0.219624'] | 58 | X-Runtime: ['0.575108'] |
59 | X-XSS-Protection: [1; mode=block] | 59 | X-XSS-Protection: [1; mode=block] |
60 | content-length: ['1427'] | 60 | content-length: ['1428'] |
61 | status: {code: 200, message: OK} | 61 | status: {code: 200, message: OK} |
62 | - request: | 62 | - request: |
63 | body: null | 63 | body: null |
@@ -69,19 +69,19 @@ interactions: | |||
69 | Content-Length: ['0'] | 69 | Content-Length: ['0'] |
70 | User-Agent: [python-requests/2.9.1] | 70 | User-Agent: [python-requests/2.9.1] |
71 | method: DELETE | 71 | method: DELETE |
72 | uri: http://localhost:3000/api/v1/statuses/99882188019557084 | 72 | uri: http://localhost:3000/api/v1/statuses/99979312448765644 |
73 | response: | 73 | response: |
74 | body: {string: '{}'} | 74 | body: {string: '{}'} |
75 | headers: | 75 | headers: |
76 | Cache-Control: ['max-age=0, private, must-revalidate'] | 76 | Cache-Control: ['max-age=0, private, must-revalidate'] |
77 | Content-Type: [application/json; charset=utf-8] | 77 | Content-Type: [application/json; charset=utf-8] |
78 | ETag: [W/"63a6b9430632d6621259069a020087b2"] | 78 | ETag: [W/"b7f47dc89c01eedb20c8721e02fcb9f2"] |
79 | Transfer-Encoding: [chunked] | 79 | Transfer-Encoding: [chunked] |
80 | Vary: ['Accept-Encoding, Origin'] | 80 | Vary: ['Accept-Encoding, Origin'] |
81 | X-Content-Type-Options: [nosniff] | 81 | X-Content-Type-Options: [nosniff] |
82 | X-Frame-Options: [SAMEORIGIN] | 82 | X-Frame-Options: [SAMEORIGIN] |
83 | X-Request-Id: [75523a1d-e349-465c-8c0c-882d6c2fcb70] | 83 | X-Request-Id: [ff0598bf-3707-45fe-af0f-b35da9a055c2] |
84 | X-Runtime: ['0.039517'] | 84 | X-Runtime: ['0.208417'] |
85 | X-XSS-Protection: [1; mode=block] | 85 | X-XSS-Protection: [1; mode=block] |
86 | content-length: ['2'] | 86 | content-length: ['2'] |
87 | status: {code: 200, message: OK} | 87 | status: {code: 200, message: OK} |
@@ -95,131 +95,19 @@ interactions: | |||
95 | Content-Length: ['0'] | 95 | Content-Length: ['0'] |
96 | User-Agent: [python-requests/2.9.1] | 96 | User-Agent: [python-requests/2.9.1] |
97 | method: DELETE | 97 | method: DELETE |
98 | uri: http://localhost:3000/api/v1/statuses/99882188005617641 | 98 | uri: http://localhost:3000/api/v1/statuses/99979312416335425 |
99 | response: | 99 | response: |
100 | body: {string: '{}'} | 100 | body: {string: '{}'} |
101 | headers: | 101 | headers: |
102 | Cache-Control: ['max-age=0, private, must-revalidate'] | 102 | Cache-Control: ['max-age=0, private, must-revalidate'] |
103 | Content-Type: [application/json; charset=utf-8] | 103 | Content-Type: [application/json; charset=utf-8] |
104 | ETag: [W/"63a6b9430632d6621259069a020087b2"] | 104 | ETag: [W/"f8cdf1d20a531e432d376e99353f81d7"] |
105 | Transfer-Encoding: [chunked] | 105 | Transfer-Encoding: [chunked] |
106 | Vary: ['Accept-Encoding, Origin'] | 106 | Vary: ['Accept-Encoding, Origin'] |
107 | X-Content-Type-Options: [nosniff] | 107 | X-Content-Type-Options: [nosniff] |
108 | X-Frame-Options: [SAMEORIGIN] | 108 | X-Frame-Options: [SAMEORIGIN] |
109 | X-Request-Id: [6ff386ca-c8e5-41bc-9813-9b275cc0b97a] | 109 | X-Request-Id: [2dce73d6-d870-4a13-91d7-582492ea3844] |
110 | X-Runtime: ['0.060172'] | 110 | X-Runtime: ['0.226454'] |
111 | X-XSS-Protection: [1; mode=block] | ||
112 | content-length: ['2'] | ||
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] | 111 | X-XSS-Protection: [1; mode=block] |
224 | content-length: ['2'] | 112 | content-length: ['2'] |
225 | status: {code: 200, message: OK} | 113 | status: {code: 200, message: OK} |