aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_list_timeline.yaml')
-rw-r--r--tests/cassettes/test_list_timeline.yaml119
1 files changed, 73 insertions, 46 deletions
diff --git a/tests/cassettes/test_list_timeline.yaml b/tests/cassettes/test_list_timeline.yaml
index 7fb7a7c..a6f0e6d 100644
--- a/tests/cassettes/test_list_timeline.yaml
+++ b/tests/cassettes/test_list_timeline.yaml
@@ -12,19 +12,22 @@ interactions:
12 method: POST 12 method: POST
13 uri: http://localhost:3000/api/v1/lists 13 uri: http://localhost:3000/api/v1/lists
14 response: 14 response:
15 body: {string: '{"id":"11","title":"ham burglars"}'} 15 body: {string: '{"id":"6","title":"ham burglars"}'}
16 headers: 16 headers:
17 Cache-Control: ['max-age=0, private, must-revalidate'] 17 Cache-Control: ['max-age=0, private, must-revalidate']
18 Content-Type: [application/json; charset=utf-8] 18 Content-Type: [application/json; charset=utf-8]
19 ETag: [W/"959fa100ca1cadc8d076d53173c65d3f"] 19 ETag: [W/"0c2717f6c1c5d08386e10b6562765e85"]
20 Referrer-Policy: [strict-origin-when-cross-origin]
20 Transfer-Encoding: [chunked] 21 Transfer-Encoding: [chunked]
21 Vary: ['Accept-Encoding, Origin'] 22 Vary: ['Accept-Encoding, Origin']
22 X-Content-Type-Options: [nosniff] 23 X-Content-Type-Options: [nosniff]
24 X-Download-Options: [noopen]
23 X-Frame-Options: [SAMEORIGIN] 25 X-Frame-Options: [SAMEORIGIN]
24 X-Request-Id: [603e1265-8813-42b0-9840-e0ef3ad51458] 26 X-Permitted-Cross-Domain-Policies: [none]
25 X-Runtime: ['0.029091'] 27 X-Request-Id: [6721d2c1-4840-400d-9e45-27e997edce3d]
28 X-Runtime: ['0.033269']
26 X-XSS-Protection: [1; mode=block] 29 X-XSS-Protection: [1; mode=block]
27 content-length: ['34'] 30 content-length: ['33']
28 status: {code: 200, message: OK} 31 status: {code: 200, message: OK}
29- request: 32- request:
30 body: null 33 body: null
@@ -37,19 +40,22 @@ interactions:
37 method: GET 40 method: GET
38 uri: http://localhost:3000/api/v1/accounts/verify_credentials 41 uri: http://localhost:3000/api/v1/accounts/verify_credentials
39 response: 42 response:
40 body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-05-06T22:36:57.850Z","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":6,"source":{"privacy":"public","sensitive":false,"note":""}}'} 43 body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-06-05T19:58:37.960Z","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":3,"source":{"privacy":"public","sensitive":false,"note":"","fields":[]},"emojis":[],"fields":[]}'}
41 headers: 44 headers:
42 Cache-Control: ['max-age=0, private, must-revalidate'] 45 Cache-Control: ['max-age=0, private, must-revalidate']
43 Content-Type: [application/json; charset=utf-8] 46 Content-Type: [application/json; charset=utf-8]
44 ETag: [W/"48dec04b47acf91c95d921354636a6a7"] 47 ETag: [W/"87c03ce4263ff02da2e95eca7d943bc2"]
48 Referrer-Policy: [strict-origin-when-cross-origin]
45 Transfer-Encoding: [chunked] 49 Transfer-Encoding: [chunked]
46 Vary: ['Accept-Encoding, Origin'] 50 Vary: ['Accept-Encoding, Origin']
47 X-Content-Type-Options: [nosniff] 51 X-Content-Type-Options: [nosniff]
52 X-Download-Options: [noopen]
48 X-Frame-Options: [SAMEORIGIN] 53 X-Frame-Options: [SAMEORIGIN]
49 X-Request-Id: [1d7b5b7d-5dd0-4c34-9af9-f544d2aa2331] 54 X-Permitted-Cross-Domain-Policies: [none]
50 X-Runtime: ['0.020716'] 55 X-Request-Id: [83a6c552-7144-4ac6-86f9-53f1fe1b1749]
56 X-Runtime: ['0.071956']
51 X-XSS-Protection: [1; mode=block] 57 X-XSS-Protection: [1; mode=block]
52 content-length: ['570'] 58 content-length: ['618']
53 status: {code: 200, message: OK} 59 status: {code: 200, message: OK}
54- request: 60- request:
55 body: null 61 body: null
@@ -67,13 +73,16 @@ interactions:
67 headers: 73 headers:
68 Cache-Control: ['max-age=0, private, must-revalidate'] 74 Cache-Control: ['max-age=0, private, must-revalidate']
69 Content-Type: [application/json; charset=utf-8] 75 Content-Type: [application/json; charset=utf-8]
70 ETag: [W/"cef1a083cbdd840a03cca72b95ea653b"] 76 ETag: [W/"8e7abca73c946d9bbd2a464713e20ff0"]
77 Referrer-Policy: [strict-origin-when-cross-origin]
71 Transfer-Encoding: [chunked] 78 Transfer-Encoding: [chunked]
72 Vary: ['Accept-Encoding, Origin'] 79 Vary: ['Accept-Encoding, Origin']
73 X-Content-Type-Options: [nosniff] 80 X-Content-Type-Options: [nosniff]
81 X-Download-Options: [noopen]
74 X-Frame-Options: [SAMEORIGIN] 82 X-Frame-Options: [SAMEORIGIN]
75 X-Request-Id: [10929688-c231-44ab-aee7-bdcda5699197] 83 X-Permitted-Cross-Domain-Policies: [none]
76 X-Runtime: ['0.035432'] 84 X-Request-Id: [4fda44f4-a609-489c-8311-ad88c48abfed]
85 X-Runtime: ['0.069386']
77 X-XSS-Protection: [1; mode=block] 86 X-XSS-Protection: [1; mode=block]
78 content-length: ['174'] 87 content-length: ['174']
79 status: {code: 200, message: OK} 88 status: {code: 200, message: OK}
@@ -88,24 +97,27 @@ interactions:
88 Content-Type: [application/x-www-form-urlencoded] 97 Content-Type: [application/x-www-form-urlencoded]
89 User-Agent: [python-requests/2.9.1] 98 User-Agent: [python-requests/2.9.1]
90 method: POST 99 method: POST
91 uri: http://localhost:3000/api/v1/lists/11/accounts 100 uri: http://localhost:3000/api/v1/lists/6/accounts
92 response: 101 response:
93 body: {string: '{}'} 102 body: {string: '{}'}
94 headers: 103 headers:
95 Cache-Control: ['max-age=0, private, must-revalidate'] 104 Cache-Control: ['max-age=0, private, must-revalidate']
96 Content-Type: [application/json; charset=utf-8] 105 Content-Type: [application/json; charset=utf-8]
97 ETag: [W/"dfebc5bdd5f9edfea8c743decc046958"] 106 ETag: [W/"e9860857695aa0d9d73a4ecdbab94309"]
107 Referrer-Policy: [strict-origin-when-cross-origin]
98 Transfer-Encoding: [chunked] 108 Transfer-Encoding: [chunked]
99 Vary: ['Accept-Encoding, Origin'] 109 Vary: ['Accept-Encoding, Origin']
100 X-Content-Type-Options: [nosniff] 110 X-Content-Type-Options: [nosniff]
111 X-Download-Options: [noopen]
101 X-Frame-Options: [SAMEORIGIN] 112 X-Frame-Options: [SAMEORIGIN]
102 X-Request-Id: [05d5732f-89cf-49a1-91fc-fb92ab2394fd] 113 X-Permitted-Cross-Domain-Policies: [none]
103 X-Runtime: ['0.043590'] 114 X-Request-Id: [e2d623a9-689a-4c61-b652-e8e578d7b51d]
115 X-Runtime: ['0.051432']
104 X-XSS-Protection: [1; mode=block] 116 X-XSS-Protection: [1; mode=block]
105 content-length: ['2'] 117 content-length: ['2']
106 status: {code: 200, message: OK} 118 status: {code: 200, message: OK}
107- request: 119- request:
108 body: status=I+have+never+stolen+a+ham+in+my+life.&visibility=public 120 body: visibility=public&status=I+have+never+stolen+a+ham+in+my+life.
109 headers: 121 headers:
110 Accept: ['*/*'] 122 Accept: ['*/*']
111 Accept-Encoding: ['gzip, deflate'] 123 Accept-Encoding: ['gzip, deflate']
@@ -117,21 +129,24 @@ interactions:
117 method: POST 129 method: POST
118 uri: http://localhost:3000/api/v1/statuses 130 uri: http://localhost:3000/api/v1/statuses
119 response: 131 response:
120 body: {string: '{"id":"99984786118987758","created_at":"2018-05-06T22:46:00.862Z","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/99984786118987758","content":"\u003cp\u003eI 132 body: {string: '{"id":"100154030964539690","created_at":"2018-06-05T20:07:12.265Z","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/100154030964539690","content":"\u003cp\u003eI
121 have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost:3000/@admin/99984786118987758","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 133 have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost:3000/@admin/100154030964539690","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-05-06T22:36:57.850Z","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":7},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 134 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-06-05T19:58:37.960Z","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":4,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
123 headers: 135 headers:
124 Cache-Control: ['max-age=0, private, must-revalidate'] 136 Cache-Control: ['max-age=0, private, must-revalidate']
125 Content-Type: [application/json; charset=utf-8] 137 Content-Type: [application/json; charset=utf-8]
126 ETag: [W/"fa4c60b4f9f1c900fdc55f8c5c21cea2"] 138 ETag: [W/"870d9260cd62e77eddec33601f1e2eec"]
139 Referrer-Policy: [strict-origin-when-cross-origin]
127 Transfer-Encoding: [chunked] 140 Transfer-Encoding: [chunked]
128 Vary: ['Accept-Encoding, Origin'] 141 Vary: ['Accept-Encoding, Origin']
129 X-Content-Type-Options: [nosniff] 142 X-Content-Type-Options: [nosniff]
143 X-Download-Options: [noopen]
130 X-Frame-Options: [SAMEORIGIN] 144 X-Frame-Options: [SAMEORIGIN]
131 X-Request-Id: [42009640-e1ef-4ecb-ab79-211096f164fb] 145 X-Permitted-Cross-Domain-Policies: [none]
132 X-Runtime: ['0.226850'] 146 X-Request-Id: [caf68b5c-8274-4ffa-b9e5-ae6138bd7c93]
147 X-Runtime: ['0.174434']
133 X-XSS-Protection: [1; mode=block] 148 X-XSS-Protection: [1; mode=block]
134 content-length: ['1157'] 149 content-length: ['1196']
135 status: {code: 200, message: OK} 150 status: {code: 200, message: OK}
136- request: 151- request:
137 body: null 152 body: null
@@ -142,26 +157,29 @@ interactions:
142 Connection: [keep-alive] 157 Connection: [keep-alive]
143 User-Agent: [python-requests/2.9.1] 158 User-Agent: [python-requests/2.9.1]
144 method: GET 159 method: GET
145 uri: http://localhost:3000/api/v1/timelines/list/11 160 uri: http://localhost:3000/api/v1/timelines/list/6
146 response: 161 response:
147 body: {string: '[{"id":"99984786118987758","created_at":"2018-05-06T22:46:00.862Z","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/99984786118987758","content":"\u003cp\u003eI 162 body: {string: '[{"id":"100154030964539690","created_at":"2018-06-05T20:07:12.265Z","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/100154030964539690","content":"\u003cp\u003eI
148 have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost:3000/@admin/99984786118987758","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"reblog":null,"application":{"name":"Mastodon.py 163 have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost:3000/@admin/100154030964539690","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-05-06T22:36:57.850Z","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":7},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}]'} 164 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-06-05T19:58:37.960Z","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":4,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}]'}
150 headers: 165 headers:
151 Cache-Control: ['max-age=0, private, must-revalidate'] 166 Cache-Control: ['max-age=0, private, must-revalidate']
152 Content-Type: [application/json; charset=utf-8] 167 Content-Type: [application/json; charset=utf-8]
153 ETag: [W/"edf8767f9d8e63a3102bbcdac58ce620"] 168 ETag: [W/"4b26424a4de0ff441f366b4f2097a0f8"]
154 Link: ['<http://localhost:3000/api/v1/timelines/list/11?max_id=99984786118987758>; 169 Link: ['<http://localhost:3000/api/v1/timelines/list/6?max_id=100154030964539690>;
155 rel="next", <http://localhost:3000/api/v1/timelines/list/11?since_id=99984786118987758>; 170 rel="next", <http://localhost:3000/api/v1/timelines/list/6?since_id=100154030964539690>;
156 rel="prev"'] 171 rel="prev"']
172 Referrer-Policy: [strict-origin-when-cross-origin]
157 Transfer-Encoding: [chunked] 173 Transfer-Encoding: [chunked]
158 Vary: ['Accept-Encoding, Origin'] 174 Vary: ['Accept-Encoding, Origin']
159 X-Content-Type-Options: [nosniff] 175 X-Content-Type-Options: [nosniff]
176 X-Download-Options: [noopen]
160 X-Frame-Options: [SAMEORIGIN] 177 X-Frame-Options: [SAMEORIGIN]
161 X-Request-Id: [64a57a6c-8f1a-487c-b809-5b4e578755cc] 178 X-Permitted-Cross-Domain-Policies: [none]
162 X-Runtime: ['0.144037'] 179 X-Request-Id: [c81b9b47-5ca0-4aa8-85f0-7b5ba43b93f9]
180 X-Runtime: ['0.056506']
163 X-XSS-Protection: [1; mode=block] 181 X-XSS-Protection: [1; mode=block]
164 content-length: ['1144'] 182 content-length: ['1183']
165 status: {code: 200, message: OK} 183 status: {code: 200, message: OK}
166- request: 184- request:
167 body: null 185 body: null
@@ -173,19 +191,22 @@ interactions:
173 Content-Length: ['0'] 191 Content-Length: ['0']
174 User-Agent: [python-requests/2.9.1] 192 User-Agent: [python-requests/2.9.1]
175 method: DELETE 193 method: DELETE
176 uri: http://localhost:3000/api/v1/statuses/99984786118987758 194 uri: http://localhost:3000/api/v1/statuses/100154030964539690
177 response: 195 response:
178 body: {string: '{}'} 196 body: {string: '{}'}
179 headers: 197 headers:
180 Cache-Control: ['max-age=0, private, must-revalidate'] 198 Cache-Control: ['max-age=0, private, must-revalidate']
181 Content-Type: [application/json; charset=utf-8] 199 Content-Type: [application/json; charset=utf-8]
182 ETag: [W/"1e9183cf3bfe2134fd39b219636ffa8b"] 200 ETag: [W/"15a29e4a21d7872677d426d09d5cba28"]
201 Referrer-Policy: [strict-origin-when-cross-origin]
183 Transfer-Encoding: [chunked] 202 Transfer-Encoding: [chunked]
184 Vary: ['Accept-Encoding, Origin'] 203 Vary: ['Accept-Encoding, Origin']
185 X-Content-Type-Options: [nosniff] 204 X-Content-Type-Options: [nosniff]
205 X-Download-Options: [noopen]
186 X-Frame-Options: [SAMEORIGIN] 206 X-Frame-Options: [SAMEORIGIN]
187 X-Request-Id: [9010a178-3602-4b4e-b4e9-673ecc1ca274] 207 X-Permitted-Cross-Domain-Policies: [none]
188 X-Runtime: ['0.042932'] 208 X-Request-Id: [38c61809-1dc9-4d62-ba3a-3df026ccaf00]
209 X-Runtime: ['0.032685']
189 X-XSS-Protection: [1; mode=block] 210 X-XSS-Protection: [1; mode=block]
190 content-length: ['2'] 211 content-length: ['2']
191 status: {code: 200, message: OK} 212 status: {code: 200, message: OK}
@@ -205,13 +226,16 @@ interactions:
205 headers: 226 headers:
206 Cache-Control: ['max-age=0, private, must-revalidate'] 227 Cache-Control: ['max-age=0, private, must-revalidate']
207 Content-Type: [application/json; charset=utf-8] 228 Content-Type: [application/json; charset=utf-8]
208 ETag: [W/"418dfb344e516f102d3d12f34f0e8c93"] 229 ETag: [W/"3ef967632dec28ea9dc2761a494a191d"]
230 Referrer-Policy: [strict-origin-when-cross-origin]
209 Transfer-Encoding: [chunked] 231 Transfer-Encoding: [chunked]
210 Vary: ['Accept-Encoding, Origin'] 232 Vary: ['Accept-Encoding, Origin']
211 X-Content-Type-Options: [nosniff] 233 X-Content-Type-Options: [nosniff]
234 X-Download-Options: [noopen]
212 X-Frame-Options: [SAMEORIGIN] 235 X-Frame-Options: [SAMEORIGIN]
213 X-Request-Id: [ebc45a88-c907-4fad-8441-14e31891b1fb] 236 X-Permitted-Cross-Domain-Policies: [none]
214 X-Runtime: ['0.094351'] 237 X-Request-Id: [233ae870-8653-40b5-9555-d344369b0d11]
238 X-Runtime: ['0.126611']
215 X-XSS-Protection: [1; mode=block] 239 X-XSS-Protection: [1; mode=block]
216 content-length: ['175'] 240 content-length: ['175']
217 status: {code: 200, message: OK} 241 status: {code: 200, message: OK}
@@ -225,19 +249,22 @@ interactions:
225 Content-Length: ['0'] 249 Content-Length: ['0']
226 User-Agent: [python-requests/2.9.1] 250 User-Agent: [python-requests/2.9.1]
227 method: DELETE 251 method: DELETE
228 uri: http://localhost:3000/api/v1/lists/11 252 uri: http://localhost:3000/api/v1/lists/6
229 response: 253 response:
230 body: {string: '{}'} 254 body: {string: '{}'}
231 headers: 255 headers:
232 Cache-Control: ['max-age=0, private, must-revalidate'] 256 Cache-Control: ['max-age=0, private, must-revalidate']
233 Content-Type: [application/json; charset=utf-8] 257 Content-Type: [application/json; charset=utf-8]
234 ETag: [W/"1e9183cf3bfe2134fd39b219636ffa8b"] 258 ETag: [W/"15a29e4a21d7872677d426d09d5cba28"]
259 Referrer-Policy: [strict-origin-when-cross-origin]
235 Transfer-Encoding: [chunked] 260 Transfer-Encoding: [chunked]
236 Vary: ['Accept-Encoding, Origin'] 261 Vary: ['Accept-Encoding, Origin']
237 X-Content-Type-Options: [nosniff] 262 X-Content-Type-Options: [nosniff]
263 X-Download-Options: [noopen]
238 X-Frame-Options: [SAMEORIGIN] 264 X-Frame-Options: [SAMEORIGIN]
239 X-Request-Id: [018f88c7-3e3a-46e5-9145-937c9d1eceaa] 265 X-Permitted-Cross-Domain-Policies: [none]
240 X-Runtime: ['0.030450'] 266 X-Request-Id: [c7b1bf59-7c43-42d6-9384-b25851731c75]
267 X-Runtime: ['0.052907']
241 X-XSS-Protection: [1; mode=block] 268 X-XSS-Protection: [1; mode=block]
242 content-length: ['2'] 269 content-length: ['2']
243 status: {code: 200, message: OK} 270 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)