diff options
Diffstat (limited to 'tests/cassettes/test_list_timeline.yaml')
-rw-r--r-- | tests/cassettes/test_list_timeline.yaml | 244 |
1 files changed, 244 insertions, 0 deletions
diff --git a/tests/cassettes/test_list_timeline.yaml b/tests/cassettes/test_list_timeline.yaml new file mode 100644 index 0000000..ceb2089 --- /dev/null +++ b/tests/cassettes/test_list_timeline.yaml | |||
@@ -0,0 +1,244 @@ | |||
1 | interactions: | ||
2 | - request: | ||
3 | body: title=ham+burglars | ||
4 | headers: | ||
5 | Accept: ['*/*'] | ||
6 | Accept-Encoding: ['gzip, deflate'] | ||
7 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
8 | Connection: [keep-alive] | ||
9 | Content-Length: ['18'] | ||
10 | Content-Type: [application/x-www-form-urlencoded] | ||
11 | User-Agent: [python-requests/2.9.1] | ||
12 | method: POST | ||
13 | uri: http://localhost:3000/api/v1/lists | ||
14 | response: | ||
15 | body: {string: '{"id":"25","title":"ham burglars"}'} | ||
16 | headers: | ||
17 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
18 | Content-Type: [application/json; charset=utf-8] | ||
19 | ETag: [W/"c56ed009e747b046f62c422a4bd0c475"] | ||
20 | Transfer-Encoding: [chunked] | ||
21 | Vary: ['Accept-Encoding, Origin'] | ||
22 | X-Content-Type-Options: [nosniff] | ||
23 | X-Frame-Options: [SAMEORIGIN] | ||
24 | X-Request-Id: [fee67ca2-a91f-4d5e-870d-f94f63fdae01] | ||
25 | X-Runtime: ['0.046275'] | ||
26 | X-XSS-Protection: [1; mode=block] | ||
27 | content-length: ['34'] | ||
28 | status: {code: 200, message: OK} | ||
29 | - request: | ||
30 | body: null | ||
31 | headers: | ||
32 | Accept: ['*/*'] | ||
33 | Accept-Encoding: ['gzip, deflate'] | ||
34 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] | ||
35 | Connection: [keep-alive] | ||
36 | User-Agent: [python-requests/2.9.1] | ||
37 | method: GET | ||
38 | uri: http://localhost:3000/api/v1/accounts/verify_credentials | ||
39 | response: | ||
40 | body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-04-17T21:40:55.626Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":51,"source":{"privacy":"public","sensitive":false,"note":""}}'} | ||
41 | headers: | ||
42 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
43 | Content-Type: [application/json; charset=utf-8] | ||
44 | ETag: [W/"6f31f5da2f0f9aeec5ce050c8e439288"] | ||
45 | Transfer-Encoding: [chunked] | ||
46 | Vary: ['Accept-Encoding, Origin'] | ||
47 | X-Content-Type-Options: [nosniff] | ||
48 | X-Frame-Options: [SAMEORIGIN] | ||
49 | X-Request-Id: [c7ba1cc0-3315-4847-a0f8-7ca1c8014f53] | ||
50 | X-Runtime: ['0.048756'] | ||
51 | X-XSS-Protection: [1; mode=block] | ||
52 | content-length: ['571'] | ||
53 | status: {code: 200, message: OK} | ||
54 | - request: | ||
55 | body: null | ||
56 | headers: | ||
57 | Accept: ['*/*'] | ||
58 | Accept-Encoding: ['gzip, deflate'] | ||
59 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
60 | Connection: [keep-alive] | ||
61 | Content-Length: ['0'] | ||
62 | User-Agent: [python-requests/2.9.1] | ||
63 | method: POST | ||
64 | uri: http://localhost:3000/api/v1/accounts/1/follow | ||
65 | response: | ||
66 | body: {string: '{"id":"1","following":true,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'} | ||
67 | headers: | ||
68 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
69 | Content-Type: [application/json; charset=utf-8] | ||
70 | ETag: [W/"ff571039e7eccffedf0c3baf0ee5835d"] | ||
71 | Transfer-Encoding: [chunked] | ||
72 | Vary: ['Accept-Encoding, Origin'] | ||
73 | X-Content-Type-Options: [nosniff] | ||
74 | X-Frame-Options: [SAMEORIGIN] | ||
75 | X-Request-Id: [aecd782a-5218-489a-a801-52be98fab5bb] | ||
76 | X-Runtime: ['0.137542'] | ||
77 | X-XSS-Protection: [1; mode=block] | ||
78 | content-length: ['174'] | ||
79 | status: {code: 200, message: OK} | ||
80 | - request: | ||
81 | body: account_ids%5B%5D=1 | ||
82 | headers: | ||
83 | Accept: ['*/*'] | ||
84 | Accept-Encoding: ['gzip, deflate'] | ||
85 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
86 | Connection: [keep-alive] | ||
87 | Content-Length: ['19'] | ||
88 | Content-Type: [application/x-www-form-urlencoded] | ||
89 | User-Agent: [python-requests/2.9.1] | ||
90 | method: POST | ||
91 | uri: http://localhost:3000/api/v1/lists/25/accounts | ||
92 | response: | ||
93 | body: {string: '{}'} | ||
94 | headers: | ||
95 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
96 | Content-Type: [application/json; charset=utf-8] | ||
97 | ETag: [W/"1040bdd26362a18b29d5084d0ea80fbc"] | ||
98 | Transfer-Encoding: [chunked] | ||
99 | Vary: ['Accept-Encoding, Origin'] | ||
100 | X-Content-Type-Options: [nosniff] | ||
101 | X-Frame-Options: [SAMEORIGIN] | ||
102 | X-Request-Id: [327011fb-439c-4d25-b568-5f3b2c3f7d54] | ||
103 | X-Runtime: ['0.073036'] | ||
104 | X-XSS-Protection: [1; mode=block] | ||
105 | content-length: ['2'] | ||
106 | status: {code: 200, message: OK} | ||
107 | - request: | ||
108 | body: visibility=public&status=I+have+never+stolen+a+ham+in+my+life. | ||
109 | headers: | ||
110 | Accept: ['*/*'] | ||
111 | Accept-Encoding: ['gzip, deflate'] | ||
112 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] | ||
113 | Connection: [keep-alive] | ||
114 | Content-Length: ['62'] | ||
115 | Content-Type: [application/x-www-form-urlencoded] | ||
116 | User-Agent: [python-requests/2.9.1] | ||
117 | method: POST | ||
118 | uri: http://localhost:3000/api/v1/statuses | ||
119 | response: | ||
120 | body: {string: '{"id":"99982642668365711","created_at":"2018-05-06T13:40:54.415Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/99982642668365711","content":"\u003cp\u003eI | ||
121 | have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost:3000/@admin/99982642668365711","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
122 | test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-04-17T21:40:55.626Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":52},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | ||
123 | headers: | ||
124 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
125 | Content-Type: [application/json; charset=utf-8] | ||
126 | ETag: [W/"088ca43a6864bf53d809c7cc6be28fbb"] | ||
127 | Transfer-Encoding: [chunked] | ||
128 | Vary: ['Accept-Encoding, Origin'] | ||
129 | X-Content-Type-Options: [nosniff] | ||
130 | X-Frame-Options: [SAMEORIGIN] | ||
131 | X-Request-Id: [960b252d-e19e-4c3c-ab13-6ca5e82038e1] | ||
132 | X-Runtime: ['0.239041'] | ||
133 | X-XSS-Protection: [1; mode=block] | ||
134 | content-length: ['1158'] | ||
135 | status: {code: 200, message: OK} | ||
136 | - request: | ||
137 | body: null | ||
138 | headers: | ||
139 | Accept: ['*/*'] | ||
140 | Accept-Encoding: ['gzip, deflate'] | ||
141 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
142 | Connection: [keep-alive] | ||
143 | User-Agent: [python-requests/2.9.1] | ||
144 | method: GET | ||
145 | uri: http://localhost:3000/api/v1/timelines/list/25 | ||
146 | response: | ||
147 | body: {string: '[{"id":"99982642668365711","created_at":"2018-05-06T13:40:54.415Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/99982642668365711","content":"\u003cp\u003eI | ||
148 | have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost:3000/@admin/99982642668365711","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"reblog":null,"application":{"name":"Mastodon.py | ||
149 | test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-04-17T21:40:55.626Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":52},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}]'} | ||
150 | headers: | ||
151 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
152 | Content-Type: [application/json; charset=utf-8] | ||
153 | ETag: [W/"db76a989e40e671ea4344ecdaacebe3d"] | ||
154 | Link: ['<http://localhost:3000/api/v1/timelines/list/25?max_id=99982642668365711>; | ||
155 | rel="next", <http://localhost:3000/api/v1/timelines/list/25?since_id=99982642668365711>; | ||
156 | rel="prev"'] | ||
157 | Transfer-Encoding: [chunked] | ||
158 | Vary: ['Accept-Encoding, Origin'] | ||
159 | X-Content-Type-Options: [nosniff] | ||
160 | X-Frame-Options: [SAMEORIGIN] | ||
161 | X-Request-Id: [5bd50e1b-667c-4f56-b363-d576b1a7aab2] | ||
162 | X-Runtime: ['0.133037'] | ||
163 | X-XSS-Protection: [1; mode=block] | ||
164 | content-length: ['1145'] | ||
165 | status: {code: 200, message: OK} | ||
166 | - request: | ||
167 | body: null | ||
168 | headers: | ||
169 | Accept: ['*/*'] | ||
170 | Accept-Encoding: ['gzip, deflate'] | ||
171 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] | ||
172 | Connection: [keep-alive] | ||
173 | Content-Length: ['0'] | ||
174 | User-Agent: [python-requests/2.9.1] | ||
175 | method: DELETE | ||
176 | uri: http://localhost:3000/api/v1/statuses/99982642668365711 | ||
177 | response: | ||
178 | body: {string: '{}'} | ||
179 | headers: | ||
180 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
181 | Content-Type: [application/json; charset=utf-8] | ||
182 | ETag: [W/"1040bdd26362a18b29d5084d0ea80fbc"] | ||
183 | Transfer-Encoding: [chunked] | ||
184 | Vary: ['Accept-Encoding, Origin'] | ||
185 | X-Content-Type-Options: [nosniff] | ||
186 | X-Frame-Options: [SAMEORIGIN] | ||
187 | X-Request-Id: [0aadaf37-9c0a-45e6-ae00-47e47775257f] | ||
188 | X-Runtime: ['0.059188'] | ||
189 | X-XSS-Protection: [1; mode=block] | ||
190 | content-length: ['2'] | ||
191 | status: {code: 200, message: OK} | ||
192 | - request: | ||
193 | body: null | ||
194 | headers: | ||
195 | Accept: ['*/*'] | ||
196 | Accept-Encoding: ['gzip, deflate'] | ||
197 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
198 | Connection: [keep-alive] | ||
199 | Content-Length: ['0'] | ||
200 | User-Agent: [python-requests/2.9.1] | ||
201 | method: POST | ||
202 | uri: http://localhost:3000/api/v1/accounts/1/unfollow | ||
203 | response: | ||
204 | body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'} | ||
205 | headers: | ||
206 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
207 | Content-Type: [application/json; charset=utf-8] | ||
208 | ETag: [W/"a1b7df866f4cd9bb23dfdc00a0f40042"] | ||
209 | Transfer-Encoding: [chunked] | ||
210 | Vary: ['Accept-Encoding, Origin'] | ||
211 | X-Content-Type-Options: [nosniff] | ||
212 | X-Frame-Options: [SAMEORIGIN] | ||
213 | X-Request-Id: [eb36fc4f-98cb-430f-ad5c-1efb8e41641b] | ||
214 | X-Runtime: ['0.124516'] | ||
215 | X-XSS-Protection: [1; mode=block] | ||
216 | content-length: ['175'] | ||
217 | status: {code: 200, message: OK} | ||
218 | - request: | ||
219 | body: null | ||
220 | headers: | ||
221 | Accept: ['*/*'] | ||
222 | Accept-Encoding: ['gzip, deflate'] | ||
223 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
224 | Connection: [keep-alive] | ||
225 | Content-Length: ['0'] | ||
226 | User-Agent: [python-requests/2.9.1] | ||
227 | method: DELETE | ||
228 | uri: http://localhost:3000/api/v1/lists/25 | ||
229 | response: | ||
230 | body: {string: '{}'} | ||
231 | headers: | ||
232 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
233 | Content-Type: [application/json; charset=utf-8] | ||
234 | ETag: [W/"fb2e8895e367561e01e27ebb11075fd3"] | ||
235 | Transfer-Encoding: [chunked] | ||
236 | Vary: ['Accept-Encoding, Origin'] | ||
237 | X-Content-Type-Options: [nosniff] | ||
238 | X-Frame-Options: [SAMEORIGIN] | ||
239 | X-Request-Id: [24816eab-335e-4282-92f9-e202b71824f7] | ||
240 | X-Runtime: ['0.041613'] | ||
241 | X-XSS-Protection: [1; mode=block] | ||
242 | content-length: ['2'] | ||
243 | status: {code: 200, message: OK} | ||
244 | version: 1 | ||