aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-07 23:11:30 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-07 23:11:30 +0200
commit3277ca777821e76955fb26d80788939a311db9db (patch)
treebef0749a451464d00e59fb3c685e6eb6d69a8a78 /tests/cassettes_pre_4_0_0
parent33d1e17e2e75884abd6e0a8a3e4a4da388e97e55 (diff)
downloadmastodon.py-3277ca777821e76955fb26d80788939a311db9db.tar.gz
Initial test fixing pass. Four tests still fail.
Diffstat (limited to 'tests/cassettes_pre_4_0_0')
-rw-r--r--tests/cassettes_pre_4_0_0/test_filter_clientside.yaml559
-rw-r--r--tests/cassettes_pre_4_0_0/test_filter_create.yaml224
-rw-r--r--tests/cassettes_pre_4_0_0/test_filter_serverside.yaml501
-rw-r--r--tests/cassettes_pre_4_0_0/test_filter_update.yaml87
4 files changed, 1371 insertions, 0 deletions
diff --git a/tests/cassettes_pre_4_0_0/test_filter_clientside.yaml b/tests/cassettes_pre_4_0_0/test_filter_clientside.yaml
new file mode 100644
index 0000000..d193fdb
--- /dev/null
+++ b/tests/cassettes_pre_4_0_0/test_filter_clientside.yaml
@@ -0,0 +1,559 @@
1interactions:
2- request:
3 body: null
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
8 Connection: [keep-alive]
9 User-Agent: [python-requests/2.18.4]
10 method: GET
11 uri: http://localhost:3000/api/v1/filters
12 response:
13 body: {string: '[{"id":"3","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}]'}
14 headers:
15 Cache-Control: ['no-cache, no-store']
16 Content-Type: [application/json; charset=utf-8]
17 Referrer-Policy: [strict-origin-when-cross-origin]
18 Transfer-Encoding: [chunked]
19 Vary: ['Accept-Encoding, Origin']
20 X-Content-Type-Options: [nosniff]
21 X-Download-Options: [noopen]
22 X-Frame-Options: [SAMEORIGIN]
23 X-Permitted-Cross-Domain-Policies: [none]
24 X-Request-Id: [2b59b337-0d7f-4dcd-a9a6-a3f6f5870951]
25 X-Runtime: ['0.030148']
26 X-XSS-Protection: [1; mode=block]
27 content-length: ['121']
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]
35 Connection: [keep-alive]
36 Content-Length: ['0']
37 User-Agent: [python-requests/2.18.4]
38 method: DELETE
39 uri: http://localhost:3000/api/v1/filters/3
40 response:
41 body: {string: '{}'}
42 headers:
43 Cache-Control: ['no-cache, no-store']
44 Content-Type: [application/json; charset=utf-8]
45 Referrer-Policy: [strict-origin-when-cross-origin]
46 Transfer-Encoding: [chunked]
47 Vary: ['Accept-Encoding, Origin']
48 X-Content-Type-Options: [nosniff]
49 X-Download-Options: [noopen]
50 X-Frame-Options: [SAMEORIGIN]
51 X-Permitted-Cross-Domain-Policies: [none]
52 X-Request-Id: [57f67a0f-7465-4792-9a3b-4602d2e09aea]
53 X-Runtime: ['0.033537']
54 X-XSS-Protection: [1; mode=block]
55 content-length: ['2']
56 status: {code: 200, message: OK}
57- request:
58 body: null
59 headers:
60 Accept: ['*/*']
61 Accept-Encoding: ['gzip, deflate']
62 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
63 Connection: [keep-alive]
64 User-Agent: [python-requests/2.18.4]
65 method: GET
66 uri: http://localhost:3000/api/v1/accounts/verify_credentials
67 response:
68 body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":0,"last_status_at":"2020-02-22","source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[]}'}
69 headers:
70 Cache-Control: ['no-cache, no-store']
71 Content-Type: [application/json; charset=utf-8]
72 Referrer-Policy: [strict-origin-when-cross-origin]
73 Transfer-Encoding: [chunked]
74 Vary: ['Accept-Encoding, Origin']
75 X-Content-Type-Options: [nosniff]
76 X-Download-Options: [noopen]
77 X-Frame-Options: [SAMEORIGIN]
78 X-Permitted-Cross-Domain-Policies: [none]
79 X-Request-Id: [973fa7b8-f71c-41c5-8337-31ceca2de1d3]
80 X-Runtime: ['0.038258']
81 X-XSS-Protection: [1; mode=block]
82 content-length: ['699']
83 status: {code: 200, message: OK}
84- request:
85 body: reblogs=1&id=1
86 headers:
87 Accept: ['*/*']
88 Accept-Encoding: ['gzip, deflate']
89 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
90 Connection: [keep-alive]
91 Content-Length: ['14']
92 Content-Type: [application/x-www-form-urlencoded]
93 User-Agent: [python-requests/2.18.4]
94 method: POST
95 uri: http://localhost:3000/api/v1/accounts/1/follow
96 response:
97 body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'}
98 headers:
99 Cache-Control: ['no-cache, no-store']
100 Content-Type: [application/json; charset=utf-8]
101 Referrer-Policy: [strict-origin-when-cross-origin]
102 Transfer-Encoding: [chunked]
103 Vary: ['Accept-Encoding, Origin']
104 X-Content-Type-Options: [nosniff]
105 X-Download-Options: [noopen]
106 X-Frame-Options: [SAMEORIGIN]
107 X-Permitted-Cross-Domain-Policies: [none]
108 X-Request-Id: [0fc4607a-86aa-4aeb-88bc-29914c5940d2]
109 X-Runtime: ['0.066751']
110 X-XSS-Protection: [1; mode=block]
111 content-length: ['209']
112 status: {code: 200, message: OK}
113- request:
114 body: whole_word=0&irreversible=0&phrase=anime&context%5B%5D=home
115 headers:
116 Accept: ['*/*']
117 Accept-Encoding: ['gzip, deflate']
118 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
119 Connection: [keep-alive]
120 Content-Length: ['59']
121 Content-Type: [application/x-www-form-urlencoded]
122 User-Agent: [python-requests/2.18.4]
123 method: POST
124 uri: http://localhost:3000/api/v1/filters
125 response:
126 body: {string: '{"id":"7","phrase":"anime","context":["home"],"whole_word":false,"expires_at":null,"irreversible":false}'}
127 headers:
128 Cache-Control: ['no-cache, no-store']
129 Content-Type: [application/json; charset=utf-8]
130 Referrer-Policy: [strict-origin-when-cross-origin]
131 Transfer-Encoding: [chunked]
132 Vary: ['Accept-Encoding, Origin']
133 X-Content-Type-Options: [nosniff]
134 X-Download-Options: [noopen]
135 X-Frame-Options: [SAMEORIGIN]
136 X-Permitted-Cross-Domain-Policies: [none]
137 X-Request-Id: [5142bc72-d567-480a-b0e1-fee00b18a9e6]
138 X-Runtime: ['0.044321']
139 X-XSS-Protection: [1; mode=block]
140 content-length: ['104']
141 status: {code: 200, message: OK}
142- request:
143 body: whole_word=1&irreversible=0&phrase=girugamesh&context%5B%5D=home
144 headers:
145 Accept: ['*/*']
146 Accept-Encoding: ['gzip, deflate']
147 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
148 Connection: [keep-alive]
149 Content-Length: ['64']
150 Content-Type: [application/x-www-form-urlencoded]
151 User-Agent: [python-requests/2.18.4]
152 method: POST
153 uri: http://localhost:3000/api/v1/filters
154 response:
155 body: {string: '{"id":"8","phrase":"girugamesh","context":["home"],"whole_word":true,"expires_at":null,"irreversible":false}'}
156 headers:
157 Cache-Control: ['no-cache, no-store']
158 Content-Type: [application/json; charset=utf-8]
159 Referrer-Policy: [strict-origin-when-cross-origin]
160 Transfer-Encoding: [chunked]
161 Vary: ['Accept-Encoding, Origin']
162 X-Content-Type-Options: [nosniff]
163 X-Download-Options: [noopen]
164 X-Frame-Options: [SAMEORIGIN]
165 X-Permitted-Cross-Domain-Policies: [none]
166 X-Request-Id: [56e30986-a295-4a40-affb-afe3da18b0d5]
167 X-Runtime: ['0.035241']
168 X-XSS-Protection: [1; mode=block]
169 content-length: ['108']
170 status: {code: 200, message: OK}
171- request:
172 body: whole_word=1&irreversible=0&phrase=japanimation&context%5B%5D=notifications
173 headers:
174 Accept: ['*/*']
175 Accept-Encoding: ['gzip, deflate']
176 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
177 Connection: [keep-alive]
178 Content-Length: ['75']
179 Content-Type: [application/x-www-form-urlencoded]
180 User-Agent: [python-requests/2.18.4]
181 method: POST
182 uri: http://localhost:3000/api/v1/filters
183 response:
184 body: {string: '{"id":"9","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'}
185 headers:
186 Cache-Control: ['no-cache, no-store']
187 Content-Type: [application/json; charset=utf-8]
188 Referrer-Policy: [strict-origin-when-cross-origin]
189 Transfer-Encoding: [chunked]
190 Vary: ['Accept-Encoding, Origin']
191 X-Content-Type-Options: [nosniff]
192 X-Download-Options: [noopen]
193 X-Frame-Options: [SAMEORIGIN]
194 X-Permitted-Cross-Domain-Policies: [none]
195 X-Request-Id: [49533c4d-6a08-4b2f-ba6b-9e1c6881daec]
196 X-Runtime: ['0.039071']
197 X-XSS-Protection: [1; mode=block]
198 content-length: ['119']
199 status: {code: 200, message: OK}
200- request:
201 body: status=I+love+animes
202 headers:
203 Accept: ['*/*']
204 Accept-Encoding: ['gzip, deflate']
205 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
206 Connection: [keep-alive]
207 Content-Length: ['20']
208 Content-Type: [application/x-www-form-urlencoded]
209 User-Agent: [python-requests/2.18.4]
210 method: POST
211 uri: http://localhost:3000/api/v1/statuses
212 response:
213 body: {string: '{"id":"103704147340570335","created_at":"2020-02-22T19:28:29.189Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704147340570335","url":"http://localhost/@admin/103704147340570335","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eI
214 love animes\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py
215 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":1,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
216 headers:
217 Cache-Control: ['no-cache, no-store']
218 Content-Type: [application/json; charset=utf-8]
219 Referrer-Policy: [strict-origin-when-cross-origin]
220 Transfer-Encoding: [chunked]
221 Vary: ['Accept-Encoding, Origin']
222 X-Content-Type-Options: [nosniff]
223 X-Download-Options: [noopen]
224 X-Frame-Options: [SAMEORIGIN]
225 X-Permitted-Cross-Domain-Policies: [none]
226 X-Request-Id: [14348f8b-0b05-4338-a8a1-a244154ca657]
227 X-Runtime: ['0.175750']
228 X-XSS-Protection: [1; mode=block]
229 content-length: ['1262']
230 status: {code: 200, message: OK}
231- request:
232 body: status=Girugamesh%21
233 headers:
234 Accept: ['*/*']
235 Accept-Encoding: ['gzip, deflate']
236 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
237 Connection: [keep-alive]
238 Content-Length: ['20']
239 Content-Type: [application/x-www-form-urlencoded]
240 User-Agent: [python-requests/2.18.4]
241 method: POST
242 uri: http://localhost:3000/api/v1/statuses
243 response:
244 body: {string: '{"id":"103704147356240915","created_at":"2020-02-22T19:28:29.426Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704147356240915","url":"http://localhost/@admin/103704147356240915","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eGirugamesh!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py
245 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":2,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
246 headers:
247 Cache-Control: ['no-cache, no-store']
248 Content-Type: [application/json; charset=utf-8]
249 Referrer-Policy: [strict-origin-when-cross-origin]
250 Transfer-Encoding: [chunked]
251 Vary: ['Accept-Encoding, Origin']
252 X-Content-Type-Options: [nosniff]
253 X-Download-Options: [noopen]
254 X-Frame-Options: [SAMEORIGIN]
255 X-Permitted-Cross-Domain-Policies: [none]
256 X-Request-Id: [4ee2185b-893d-4754-9042-c286220f4b3e]
257 X-Runtime: ['0.196297']
258 X-XSS-Protection: [1; mode=block]
259 content-length: ['1260']
260 status: {code: 200, message: OK}
261- request:
262 body: status=Girugameshnetworking%21
263 headers:
264 Accept: ['*/*']
265 Accept-Encoding: ['gzip, deflate']
266 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
267 Connection: [keep-alive]
268 Content-Length: ['30']
269 Content-Type: [application/x-www-form-urlencoded]
270 User-Agent: [python-requests/2.18.4]
271 method: POST
272 uri: http://localhost:3000/api/v1/statuses
273 response:
274 body: {string: '{"id":"103704147371610706","created_at":"2020-02-22T19:28:29.667Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704147371610706","url":"http://localhost/@admin/103704147371610706","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eGirugameshnetworking!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py
275 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
276 headers:
277 Cache-Control: ['no-cache, no-store']
278 Content-Type: [application/json; charset=utf-8]
279 Referrer-Policy: [strict-origin-when-cross-origin]
280 Transfer-Encoding: [chunked]
281 Vary: ['Accept-Encoding, Origin']
282 X-Content-Type-Options: [nosniff]
283 X-Download-Options: [noopen]
284 X-Frame-Options: [SAMEORIGIN]
285 X-Permitted-Cross-Domain-Policies: [none]
286 X-Request-Id: [8fe457cc-3b7b-4f07-8191-3c41dc5e5772]
287 X-Runtime: ['0.222910']
288 X-XSS-Protection: [1; mode=block]
289 content-length: ['1270']
290 status: {code: 200, message: OK}
291- request:
292 body: status=I+love+japanimation%21
293 headers:
294 Accept: ['*/*']
295 Accept-Encoding: ['gzip, deflate']
296 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
297 Connection: [keep-alive]
298 Content-Length: ['29']
299 Content-Type: [application/x-www-form-urlencoded]
300 User-Agent: [python-requests/2.18.4]
301 method: POST
302 uri: http://localhost:3000/api/v1/statuses
303 response:
304 body: {string: '{"id":"103704147387189291","created_at":"2020-02-22T19:28:29.936Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704147387189291","url":"http://localhost/@admin/103704147387189291","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eI
305 love japanimation!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py
306 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":4,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
307 headers:
308 Cache-Control: ['no-cache, no-store']
309 Content-Type: [application/json; charset=utf-8]
310 Referrer-Policy: [strict-origin-when-cross-origin]
311 Transfer-Encoding: [chunked]
312 Vary: ['Accept-Encoding, Origin']
313 X-Content-Type-Options: [nosniff]
314 X-Download-Options: [noopen]
315 X-Frame-Options: [SAMEORIGIN]
316 X-Permitted-Cross-Domain-Policies: [none]
317 X-Request-Id: [d52a0506-f666-4cc3-8d9f-06341228e382]
318 X-Runtime: ['0.296746']
319 X-XSS-Protection: [1; mode=block]
320 content-length: ['1269']
321 status: {code: 200, message: OK}
322- request:
323 body: null
324 headers:
325 Accept: ['*/*']
326 Accept-Encoding: ['gzip, deflate']
327 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
328 Connection: [keep-alive]
329 User-Agent: [python-requests/2.18.4]
330 method: GET
331 uri: http://localhost:3000/api/v1/timelines/home
332 response:
333 body: {string: '[{"id":"103704147387189291","created_at":"2020-02-22T19:28:29.936Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704147387189291","url":"http://localhost/@admin/103704147387189291","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003eI
334 love japanimation!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py
335 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":4,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"103704147371610706","created_at":"2020-02-22T19:28:29.667Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704147371610706","url":"http://localhost/@admin/103704147371610706","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003eGirugameshnetworking!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py
336 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":4,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"103704147356240915","created_at":"2020-02-22T19:28:29.426Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704147356240915","url":"http://localhost/@admin/103704147356240915","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003eGirugamesh!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py
337 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":4,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"103704147340570335","created_at":"2020-02-22T19:28:29.189Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704147340570335","url":"http://localhost/@admin/103704147340570335","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003eI
338 love animes\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py
339 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":4,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}]'}
340 headers:
341 Cache-Control: ['no-cache, no-store']
342 Content-Type: [application/json; charset=utf-8]
343 Link: ['<http://localhost:3000/api/v1/timelines/home?max_id=103704147340570335>;
344 rel="next", <http://localhost:3000/api/v1/timelines/home?min_id=103704147387189291>;
345 rel="prev"']
346 Referrer-Policy: [strict-origin-when-cross-origin]
347 Transfer-Encoding: [chunked]
348 Vary: ['Accept-Encoding, Origin']
349 X-Content-Type-Options: [nosniff]
350 X-Download-Options: [noopen]
351 X-Frame-Options: [SAMEORIGIN]
352 X-Permitted-Cross-Domain-Policies: [none]
353 X-Request-Id: [8756f53d-2fad-4139-a1dc-7b9ed2ddb2bb]
354 X-Runtime: ['0.127372']
355 X-XSS-Protection: [1; mode=block]
356 content-length: ['5006']
357 status: {code: 200, message: OK}
358- request:
359 body: null
360 headers:
361 Accept: ['*/*']
362 Accept-Encoding: ['gzip, deflate']
363 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
364 Connection: [keep-alive]
365 Content-Length: ['0']
366 User-Agent: [python-requests/2.18.4]
367 method: DELETE
368 uri: http://localhost:3000/api/v1/filters/7
369 response:
370 body: {string: '{}'}
371 headers:
372 Cache-Control: ['no-cache, no-store']
373 Content-Type: [application/json; charset=utf-8]
374 Referrer-Policy: [strict-origin-when-cross-origin]
375 Transfer-Encoding: [chunked]
376 Vary: ['Accept-Encoding, Origin']
377 X-Content-Type-Options: [nosniff]
378 X-Download-Options: [noopen]
379 X-Frame-Options: [SAMEORIGIN]
380 X-Permitted-Cross-Domain-Policies: [none]
381 X-Request-Id: [d870bb94-de04-463d-b0fb-9d746761cee0]
382 X-Runtime: ['0.044357']
383 X-XSS-Protection: [1; mode=block]
384 content-length: ['2']
385 status: {code: 200, message: OK}
386- request:
387 body: null
388 headers:
389 Accept: ['*/*']
390 Accept-Encoding: ['gzip, deflate']
391 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
392 Connection: [keep-alive]
393 Content-Length: ['0']
394 User-Agent: [python-requests/2.18.4]
395 method: DELETE
396 uri: http://localhost:3000/api/v1/filters/8
397 response:
398 body: {string: '{}'}
399 headers:
400 Cache-Control: ['no-cache, no-store']
401 Content-Type: [application/json; charset=utf-8]
402 Referrer-Policy: [strict-origin-when-cross-origin]
403 Transfer-Encoding: [chunked]
404 Vary: ['Accept-Encoding, Origin']
405 X-Content-Type-Options: [nosniff]
406 X-Download-Options: [noopen]
407 X-Frame-Options: [SAMEORIGIN]
408 X-Permitted-Cross-Domain-Policies: [none]
409 X-Request-Id: [622c9261-c358-4512-8e19-427802685a5f]
410 X-Runtime: ['0.032967']
411 X-XSS-Protection: [1; mode=block]
412 content-length: ['2']
413 status: {code: 200, message: OK}
414- request:
415 body: null
416 headers:
417 Accept: ['*/*']
418 Accept-Encoding: ['gzip, deflate']
419 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
420 Connection: [keep-alive]
421 Content-Length: ['0']
422 User-Agent: [python-requests/2.18.4]
423 method: DELETE
424 uri: http://localhost:3000/api/v1/filters/9
425 response:
426 body: {string: '{}'}
427 headers:
428 Cache-Control: ['no-cache, no-store']
429 Content-Type: [application/json; charset=utf-8]
430 Referrer-Policy: [strict-origin-when-cross-origin]
431 Transfer-Encoding: [chunked]
432 Vary: ['Accept-Encoding, Origin']
433 X-Content-Type-Options: [nosniff]
434 X-Download-Options: [noopen]
435 X-Frame-Options: [SAMEORIGIN]
436 X-Permitted-Cross-Domain-Policies: [none]
437 X-Request-Id: [38e83db5-c702-4274-9243-2fbc99e4d528]
438 X-Runtime: ['0.044916']
439 X-XSS-Protection: [1; mode=block]
440 content-length: ['2']
441 status: {code: 200, message: OK}
442- request:
443 body: null
444 headers:
445 Accept: ['*/*']
446 Accept-Encoding: ['gzip, deflate']
447 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
448 Connection: [keep-alive]
449 Content-Length: ['0']
450 User-Agent: [python-requests/2.18.4]
451 method: DELETE
452 uri: http://localhost:3000/api/v1/statuses/103704147340570335
453 response:
454 body: {string: '{"id":"103704147340570335","created_at":"2020-02-22T19:28:29.189Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704147340570335","url":"http://localhost/@admin/103704147340570335","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"I
455 love animes","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":4,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
456 headers:
457 Cache-Control: ['no-cache, no-store']
458 Content-Type: [application/json; charset=utf-8]
459 Referrer-Policy: [strict-origin-when-cross-origin]
460 Transfer-Encoding: [chunked]
461 Vary: ['Accept-Encoding, Origin']
462 X-Content-Type-Options: [nosniff]
463 X-Download-Options: [noopen]
464 X-Frame-Options: [SAMEORIGIN]
465 X-Permitted-Cross-Domain-Policies: [none]
466 X-Request-Id: [6fc40c70-61c7-40a7-bba0-2bcac2dbf5b0]
467 X-Runtime: ['0.109971']
468 X-XSS-Protection: [1; mode=block]
469 content-length: ['1232']
470 status: {code: 200, message: OK}
471- request:
472 body: null
473 headers:
474 Accept: ['*/*']
475 Accept-Encoding: ['gzip, deflate']
476 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
477 Connection: [keep-alive]
478 Content-Length: ['0']
479 User-Agent: [python-requests/2.18.4]
480 method: DELETE
481 uri: http://localhost:3000/api/v1/statuses/103704147356240915
482 response:
483 body: {string: '{"id":"103704147356240915","created_at":"2020-02-22T19:28:29.426Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704147356240915","url":"http://localhost/@admin/103704147356240915","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Girugamesh!","reblog":null,"application":{"name":"Mastodon.py
484 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
485 headers:
486 Cache-Control: ['no-cache, no-store']
487 Content-Type: [application/json; charset=utf-8]
488 Referrer-Policy: [strict-origin-when-cross-origin]
489 Transfer-Encoding: [chunked]
490 Vary: ['Accept-Encoding, Origin']
491 X-Content-Type-Options: [nosniff]
492 X-Download-Options: [noopen]
493 X-Frame-Options: [SAMEORIGIN]
494 X-Permitted-Cross-Domain-Policies: [none]
495 X-Request-Id: [eeacb90f-51f5-46b4-a101-8815a645db90]
496 X-Runtime: ['0.127196']
497 X-XSS-Protection: [1; mode=block]
498 content-length: ['1230']
499 status: {code: 200, message: OK}
500- request:
501 body: null
502 headers:
503 Accept: ['*/*']
504 Accept-Encoding: ['gzip, deflate']
505 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
506 Connection: [keep-alive]
507 Content-Length: ['0']
508 User-Agent: [python-requests/2.18.4]
509 method: DELETE
510 uri: http://localhost:3000/api/v1/statuses/103704147371610706
511 response:
512 body: {string: '{"id":"103704147371610706","created_at":"2020-02-22T19:28:29.667Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704147371610706","url":"http://localhost/@admin/103704147371610706","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Girugameshnetworking!","reblog":null,"application":{"name":"Mastodon.py
513 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":2,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
514 headers:
515 Cache-Control: ['no-cache, no-store']
516 Content-Type: [application/json; charset=utf-8]
517 Referrer-Policy: [strict-origin-when-cross-origin]
518 Transfer-Encoding: [chunked]
519 Vary: ['Accept-Encoding, Origin']
520 X-Content-Type-Options: [nosniff]
521 X-Download-Options: [noopen]
522 X-Frame-Options: [SAMEORIGIN]
523 X-Permitted-Cross-Domain-Policies: [none]
524 X-Request-Id: [cefae67c-4c13-4383-b2fe-837c21a1be54]
525 X-Runtime: ['0.123581']
526 X-XSS-Protection: [1; mode=block]
527 content-length: ['1240']
528 status: {code: 200, message: OK}
529- request:
530 body: null
531 headers:
532 Accept: ['*/*']
533 Accept-Encoding: ['gzip, deflate']
534 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
535 Connection: [keep-alive]
536 Content-Length: ['0']
537 User-Agent: [python-requests/2.18.4]
538 method: DELETE
539 uri: http://localhost:3000/api/v1/statuses/103704147387189291
540 response:
541 body: {string: '{"id":"103704147387189291","created_at":"2020-02-22T19:28:29.936Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704147387189291","url":"http://localhost/@admin/103704147387189291","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"I
542 love japanimation!","reblog":null,"application":{"name":"Mastodon.py test
543 suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":1,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
544 headers:
545 Cache-Control: ['no-cache, no-store']
546 Content-Type: [application/json; charset=utf-8]
547 Referrer-Policy: [strict-origin-when-cross-origin]
548 Transfer-Encoding: [chunked]
549 Vary: ['Accept-Encoding, Origin']
550 X-Content-Type-Options: [nosniff]
551 X-Download-Options: [noopen]
552 X-Frame-Options: [SAMEORIGIN]
553 X-Permitted-Cross-Domain-Policies: [none]
554 X-Request-Id: [14cb1cef-e36c-4149-bbc2-a863ddf162da]
555 X-Runtime: ['0.124865']
556 X-XSS-Protection: [1; mode=block]
557 content-length: ['1239']
558 status: {code: 200, message: OK}
559version: 1
diff --git a/tests/cassettes_pre_4_0_0/test_filter_create.yaml b/tests/cassettes_pre_4_0_0/test_filter_create.yaml
new file mode 100644
index 0000000..5056a62
--- /dev/null
+++ b/tests/cassettes_pre_4_0_0/test_filter_create.yaml
@@ -0,0 +1,224 @@
1interactions:
2- request:
3 body: whole_word=1&irreversible=0&phrase=anime&context%5B%5D=notifications
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
8 Connection: [keep-alive]
9 Content-Length: ['68']
10 Content-Type: [application/x-www-form-urlencoded]
11 User-Agent: [python-requests/2.18.4]
12 method: POST
13 uri: http://localhost:3000/api/v1/filters
14 response:
15 body: {string: '{"id":"1","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'}
16 headers:
17 Cache-Control: ['no-cache, no-store']
18 Content-Type: [application/json; charset=utf-8]
19 Referrer-Policy: [strict-origin-when-cross-origin]
20 Transfer-Encoding: [chunked]
21 Vary: ['Accept-Encoding, Origin']
22 X-Content-Type-Options: [nosniff]
23 X-Download-Options: [noopen]
24 X-Frame-Options: [SAMEORIGIN]
25 X-Permitted-Cross-Domain-Policies: [none]
26 X-Request-Id: [89b1bf76-6ac1-4de0-aac5-d6c7ac174117]
27 X-Runtime: ['0.132145']
28 X-XSS-Protection: [1; mode=block]
29 content-length: ['112']
30 status: {code: 200, message: OK}
31- request:
32 body: null
33 headers:
34 Accept: ['*/*']
35 Accept-Encoding: ['gzip, deflate']
36 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
37 Connection: [keep-alive]
38 User-Agent: [python-requests/2.18.4]
39 method: GET
40 uri: http://localhost:3000/api/v1/filters
41 response:
42 body: {string: '[{"id":"1","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}]'}
43 headers:
44 Cache-Control: ['no-cache, no-store']
45 Content-Type: [application/json; charset=utf-8]
46 Referrer-Policy: [strict-origin-when-cross-origin]
47 Transfer-Encoding: [chunked]
48 Vary: ['Accept-Encoding, Origin']
49 X-Content-Type-Options: [nosniff]
50 X-Download-Options: [noopen]
51 X-Frame-Options: [SAMEORIGIN]
52 X-Permitted-Cross-Domain-Policies: [none]
53 X-Request-Id: [6ace9d3d-fe41-4d05-af2a-b948ba86b415]
54 X-Runtime: ['0.059018']
55 X-XSS-Protection: [1; mode=block]
56 content-length: ['114']
57 status: {code: 200, message: OK}
58- request:
59 body: null
60 headers:
61 Accept: ['*/*']
62 Accept-Encoding: ['gzip, deflate']
63 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
64 Connection: [keep-alive]
65 User-Agent: [python-requests/2.18.4]
66 method: GET
67 uri: http://localhost:3000/api/v1/filters/1
68 response:
69 body: {string: '{"id":"1","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'}
70 headers:
71 Cache-Control: ['no-cache, no-store']
72 Content-Type: [application/json; charset=utf-8]
73 Referrer-Policy: [strict-origin-when-cross-origin]
74 Transfer-Encoding: [chunked]
75 Vary: ['Accept-Encoding, Origin']
76 X-Content-Type-Options: [nosniff]
77 X-Download-Options: [noopen]
78 X-Frame-Options: [SAMEORIGIN]
79 X-Permitted-Cross-Domain-Policies: [none]
80 X-Request-Id: [e730c835-1bd9-4e11-bd76-8ad69da587dd]
81 X-Runtime: ['0.068597']
82 X-XSS-Protection: [1; mode=block]
83 content-length: ['112']
84 status: {code: 200, message: OK}
85- request:
86 body: null
87 headers:
88 Accept: ['*/*']
89 Accept-Encoding: ['gzip, deflate']
90 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
91 Connection: [keep-alive]
92 Content-Length: ['0']
93 User-Agent: [python-requests/2.18.4]
94 method: DELETE
95 uri: http://localhost:3000/api/v1/filters/1
96 response:
97 body: {string: '{}'}
98 headers:
99 Cache-Control: ['no-cache, no-store']
100 Content-Type: [application/json; charset=utf-8]
101 Referrer-Policy: [strict-origin-when-cross-origin]
102 Transfer-Encoding: [chunked]
103 Vary: ['Accept-Encoding, Origin']
104 X-Content-Type-Options: [nosniff]
105 X-Download-Options: [noopen]
106 X-Frame-Options: [SAMEORIGIN]
107 X-Permitted-Cross-Domain-Policies: [none]
108 X-Request-Id: [e867c9c8-86d0-4aa8-b03e-b5fdfc4412cd]
109 X-Runtime: ['0.065620']
110 X-XSS-Protection: [1; mode=block]
111 content-length: ['2']
112 status: {code: 200, message: OK}
113- request:
114 body: whole_word=0&irreversible=0&phrase=anime&context%5B%5D=notifications
115 headers:
116 Accept: ['*/*']
117 Accept-Encoding: ['gzip, deflate']
118 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
119 Connection: [keep-alive]
120 Content-Length: ['68']
121 Content-Type: [application/x-www-form-urlencoded]
122 User-Agent: [python-requests/2.18.4]
123 method: POST
124 uri: http://localhost:3000/api/v1/filters
125 response:
126 body: {string: '{"id":"2","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'}
127 headers:
128 Cache-Control: ['no-cache, no-store']
129 Content-Type: [application/json; charset=utf-8]
130 Referrer-Policy: [strict-origin-when-cross-origin]
131 Transfer-Encoding: [chunked]
132 Vary: ['Accept-Encoding, Origin']
133 X-Content-Type-Options: [nosniff]
134 X-Download-Options: [noopen]
135 X-Frame-Options: [SAMEORIGIN]
136 X-Permitted-Cross-Domain-Policies: [none]
137 X-Request-Id: [3f3e2b55-84be-46b3-a934-d287b9293a1d]
138 X-Runtime: ['0.072304']
139 X-XSS-Protection: [1; mode=block]
140 content-length: ['113']
141 status: {code: 200, message: OK}
142- request:
143 body: null
144 headers:
145 Accept: ['*/*']
146 Accept-Encoding: ['gzip, deflate']
147 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
148 Connection: [keep-alive]
149 User-Agent: [python-requests/2.18.4]
150 method: GET
151 uri: http://localhost:3000/api/v1/filters
152 response:
153 body: {string: '[{"id":"2","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}]'}
154 headers:
155 Cache-Control: ['no-cache, no-store']
156 Content-Type: [application/json; charset=utf-8]
157 Referrer-Policy: [strict-origin-when-cross-origin]
158 Transfer-Encoding: [chunked]
159 Vary: ['Accept-Encoding, Origin']
160 X-Content-Type-Options: [nosniff]
161 X-Download-Options: [noopen]
162 X-Frame-Options: [SAMEORIGIN]
163 X-Permitted-Cross-Domain-Policies: [none]
164 X-Request-Id: [e88758ed-35e6-4cf0-976e-1b9cc8adbca8]
165 X-Runtime: ['0.060282']
166 X-XSS-Protection: [1; mode=block]
167 content-length: ['115']
168 status: {code: 200, message: OK}
169- request:
170 body: null
171 headers:
172 Accept: ['*/*']
173 Accept-Encoding: ['gzip, deflate']
174 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
175 Connection: [keep-alive]
176 User-Agent: [python-requests/2.18.4]
177 method: GET
178 uri: http://localhost:3000/api/v1/filters/2
179 response:
180 body: {string: '{"id":"2","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'}
181 headers:
182 Cache-Control: ['no-cache, no-store']
183 Content-Type: [application/json; charset=utf-8]
184 Referrer-Policy: [strict-origin-when-cross-origin]
185 Transfer-Encoding: [chunked]
186 Vary: ['Accept-Encoding, Origin']
187 X-Content-Type-Options: [nosniff]
188 X-Download-Options: [noopen]
189 X-Frame-Options: [SAMEORIGIN]
190 X-Permitted-Cross-Domain-Policies: [none]
191 X-Request-Id: [32d2ce88-70aa-48be-b6f8-75882e8078d7]
192 X-Runtime: ['0.058851']
193 X-XSS-Protection: [1; mode=block]
194 content-length: ['113']
195 status: {code: 200, message: OK}
196- request:
197 body: null
198 headers:
199 Accept: ['*/*']
200 Accept-Encoding: ['gzip, deflate']
201 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
202 Connection: [keep-alive]
203 Content-Length: ['0']
204 User-Agent: [python-requests/2.18.4]
205 method: DELETE
206 uri: http://localhost:3000/api/v1/filters/2
207 response:
208 body: {string: '{}'}
209 headers:
210 Cache-Control: ['no-cache, no-store']
211 Content-Type: [application/json; charset=utf-8]
212 Referrer-Policy: [strict-origin-when-cross-origin]
213 Transfer-Encoding: [chunked]
214 Vary: ['Accept-Encoding, Origin']
215 X-Content-Type-Options: [nosniff]
216 X-Download-Options: [noopen]
217 X-Frame-Options: [SAMEORIGIN]
218 X-Permitted-Cross-Domain-Policies: [none]
219 X-Request-Id: [07d47c2a-d139-4134-8a0b-8cd51283188b]
220 X-Runtime: ['0.067618']
221 X-XSS-Protection: [1; mode=block]
222 content-length: ['2']
223 status: {code: 200, message: OK}
224version: 1
diff --git a/tests/cassettes_pre_4_0_0/test_filter_serverside.yaml b/tests/cassettes_pre_4_0_0/test_filter_serverside.yaml
new file mode 100644
index 0000000..5c8c74c
--- /dev/null
+++ b/tests/cassettes_pre_4_0_0/test_filter_serverside.yaml
@@ -0,0 +1,501 @@
1interactions:
2- request:
3 body: null
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
8 Connection: [keep-alive]
9 User-Agent: [python-requests/2.18.4]
10 method: GET
11 uri: http://localhost:3000/api/v1/accounts/verify_credentials
12 response:
13 body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[]}'}
14 headers:
15 Cache-Control: ['no-cache, no-store']
16 Content-Type: [application/json; charset=utf-8]
17 Referrer-Policy: [strict-origin-when-cross-origin]
18 Transfer-Encoding: [chunked]
19 Vary: ['Accept-Encoding, Origin']
20 X-Content-Type-Options: [nosniff]
21 X-Download-Options: [noopen]
22 X-Frame-Options: [SAMEORIGIN]
23 X-Permitted-Cross-Domain-Policies: [none]
24 X-Request-Id: [774d07f4-87b9-467b-a75d-4f89b0cc227f]
25 X-Runtime: ['0.037423']
26 X-XSS-Protection: [1; mode=block]
27 content-length: ['691']
28 status: {code: 200, message: OK}
29- request:
30 body: reblogs=1&id=1
31 headers:
32 Accept: ['*/*']
33 Accept-Encoding: ['gzip, deflate']
34 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
35 Connection: [keep-alive]
36 Content-Length: ['14']
37 Content-Type: [application/x-www-form-urlencoded]
38 User-Agent: [python-requests/2.18.4]
39 method: POST
40 uri: http://localhost:3000/api/v1/accounts/1/follow
41 response:
42 body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'}
43 headers:
44 Cache-Control: ['no-cache, no-store']
45 Content-Type: [application/json; charset=utf-8]
46 Referrer-Policy: [strict-origin-when-cross-origin]
47 Transfer-Encoding: [chunked]
48 Vary: ['Accept-Encoding, Origin']
49 X-Content-Type-Options: [nosniff]
50 X-Download-Options: [noopen]
51 X-Frame-Options: [SAMEORIGIN]
52 X-Permitted-Cross-Domain-Policies: [none]
53 X-Request-Id: [0cdf48e3-1a5a-4511-a5ec-41e529302ec9]
54 X-Runtime: ['0.136770']
55 X-XSS-Protection: [1; mode=block]
56 content-length: ['209']
57 status: {code: 200, message: OK}
58- request:
59 body: whole_word=0&irreversible=1&phrase=anime&context%5B%5D=home
60 headers:
61 Accept: ['*/*']
62 Accept-Encoding: ['gzip, deflate']
63 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
64 Connection: [keep-alive]
65 Content-Length: ['59']
66 Content-Type: [application/x-www-form-urlencoded]
67 User-Agent: [python-requests/2.18.4]
68 method: POST
69 uri: http://localhost:3000/api/v1/filters
70 response:
71 body: {string: '{"id":"4","phrase":"anime","context":["home"],"whole_word":false,"expires_at":null,"irreversible":true}'}
72 headers:
73 Cache-Control: ['no-cache, no-store']
74 Content-Type: [application/json; charset=utf-8]
75 Referrer-Policy: [strict-origin-when-cross-origin]
76 Transfer-Encoding: [chunked]
77 Vary: ['Accept-Encoding, Origin']
78 X-Content-Type-Options: [nosniff]
79 X-Download-Options: [noopen]
80 X-Frame-Options: [SAMEORIGIN]
81 X-Permitted-Cross-Domain-Policies: [none]
82 X-Request-Id: [417622d3-5fe2-4708-89ad-c472bf0ea827]
83 X-Runtime: ['0.100807']
84 X-XSS-Protection: [1; mode=block]
85 content-length: ['103']
86 status: {code: 200, message: OK}
87- request:
88 body: whole_word=1&irreversible=1&phrase=girugamesh&context%5B%5D=home
89 headers:
90 Accept: ['*/*']
91 Accept-Encoding: ['gzip, deflate']
92 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
93 Connection: [keep-alive]
94 Content-Length: ['64']
95 Content-Type: [application/x-www-form-urlencoded]
96 User-Agent: [python-requests/2.18.4]
97 method: POST
98 uri: http://localhost:3000/api/v1/filters
99 response:
100 body: {string: '{"id":"5","phrase":"girugamesh","context":["home"],"whole_word":true,"expires_at":null,"irreversible":true}'}
101 headers:
102 Cache-Control: ['no-cache, no-store']
103 Content-Type: [application/json; charset=utf-8]
104 Referrer-Policy: [strict-origin-when-cross-origin]
105 Transfer-Encoding: [chunked]
106 Vary: ['Accept-Encoding, Origin']
107 X-Content-Type-Options: [nosniff]
108 X-Download-Options: [noopen]
109 X-Frame-Options: [SAMEORIGIN]
110 X-Permitted-Cross-Domain-Policies: [none]
111 X-Request-Id: [39194e90-f708-4202-a9c4-462dffe3cc6a]
112 X-Runtime: ['0.033642']
113 X-XSS-Protection: [1; mode=block]
114 content-length: ['107']
115 status: {code: 200, message: OK}
116- request:
117 body: whole_word=1&irreversible=1&phrase=japanimation&context%5B%5D=notifications
118 headers:
119 Accept: ['*/*']
120 Accept-Encoding: ['gzip, deflate']
121 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
122 Connection: [keep-alive]
123 Content-Length: ['75']
124 Content-Type: [application/x-www-form-urlencoded]
125 User-Agent: [python-requests/2.18.4]
126 method: POST
127 uri: http://localhost:3000/api/v1/filters
128 response:
129 body: {string: '{"id":"6","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":true}'}
130 headers:
131 Cache-Control: ['no-cache, no-store']
132 Content-Type: [application/json; charset=utf-8]
133 Referrer-Policy: [strict-origin-when-cross-origin]
134 Transfer-Encoding: [chunked]
135 Vary: ['Accept-Encoding, Origin']
136 X-Content-Type-Options: [nosniff]
137 X-Download-Options: [noopen]
138 X-Frame-Options: [SAMEORIGIN]
139 X-Permitted-Cross-Domain-Policies: [none]
140 X-Request-Id: [e4296e4f-fb51-4879-abf2-8cc59d8f056c]
141 X-Runtime: ['0.034336']
142 X-XSS-Protection: [1; mode=block]
143 content-length: ['118']
144 status: {code: 200, message: OK}
145- request:
146 body: status=I+love+animes
147 headers:
148 Accept: ['*/*']
149 Accept-Encoding: ['gzip, deflate']
150 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
151 Connection: [keep-alive]
152 Content-Length: ['20']
153 Content-Type: [application/x-www-form-urlencoded]
154 User-Agent: [python-requests/2.18.4]
155 method: POST
156 uri: http://localhost:3000/api/v1/statuses
157 response:
158 body: {string: '{"id":"103704146777256971","created_at":"2020-02-22T19:28:20.592Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704146777256971","url":"http://localhost/@admin/103704146777256971","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eI
159 love animes\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py
160 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":1,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
161 headers:
162 Cache-Control: ['no-cache, no-store']
163 Content-Type: [application/json; charset=utf-8]
164 Referrer-Policy: [strict-origin-when-cross-origin]
165 Transfer-Encoding: [chunked]
166 Vary: ['Accept-Encoding, Origin']
167 X-Content-Type-Options: [nosniff]
168 X-Download-Options: [noopen]
169 X-Frame-Options: [SAMEORIGIN]
170 X-Permitted-Cross-Domain-Policies: [none]
171 X-Request-Id: [10c4f99e-412e-422e-b6c7-4f480aaa5887]
172 X-Runtime: ['0.129142']
173 X-XSS-Protection: [1; mode=block]
174 content-length: ['1262']
175 status: {code: 200, message: OK}
176- request:
177 body: status=Girugamesh%21
178 headers:
179 Accept: ['*/*']
180 Accept-Encoding: ['gzip, deflate']
181 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
182 Connection: [keep-alive]
183 Content-Length: ['20']
184 Content-Type: [application/x-www-form-urlencoded]
185 User-Agent: [python-requests/2.18.4]
186 method: POST
187 uri: http://localhost:3000/api/v1/statuses
188 response:
189 body: {string: '{"id":"103704146793129602","created_at":"2020-02-22T19:28:20.921Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704146793129602","url":"http://localhost/@admin/103704146793129602","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eGirugamesh!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py
190 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":2,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
191 headers:
192 Cache-Control: ['no-cache, no-store']
193 Content-Type: [application/json; charset=utf-8]
194 Referrer-Policy: [strict-origin-when-cross-origin]
195 Transfer-Encoding: [chunked]
196 Vary: ['Accept-Encoding, Origin']
197 X-Content-Type-Options: [nosniff]
198 X-Download-Options: [noopen]
199 X-Frame-Options: [SAMEORIGIN]
200 X-Permitted-Cross-Domain-Policies: [none]
201 X-Request-Id: [21edf344-2c40-40f2-a0fb-a0e1508d2bf1]
202 X-Runtime: ['0.580524']
203 X-XSS-Protection: [1; mode=block]
204 content-length: ['1260']
205 status: {code: 200, message: OK}
206- request:
207 body: status=Girugameshnetworking%21
208 headers:
209 Accept: ['*/*']
210 Accept-Encoding: ['gzip, deflate']
211 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
212 Connection: [keep-alive]
213 Content-Length: ['30']
214 Content-Type: [application/x-www-form-urlencoded]
215 User-Agent: [python-requests/2.18.4]
216 method: POST
217 uri: http://localhost:3000/api/v1/statuses
218 response:
219 body: {string: '{"id":"103704146834000160","created_at":"2020-02-22T19:28:21.465Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704146834000160","url":"http://localhost/@admin/103704146834000160","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eGirugameshnetworking!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py
220 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
221 headers:
222 Cache-Control: ['no-cache, no-store']
223 Content-Type: [application/json; charset=utf-8]
224 Referrer-Policy: [strict-origin-when-cross-origin]
225 Transfer-Encoding: [chunked]
226 Vary: ['Accept-Encoding, Origin']
227 X-Content-Type-Options: [nosniff]
228 X-Download-Options: [noopen]
229 X-Frame-Options: [SAMEORIGIN]
230 X-Permitted-Cross-Domain-Policies: [none]
231 X-Request-Id: [9c2b7255-af70-4723-96cd-bc6e05c83133]
232 X-Runtime: ['0.313404']
233 X-XSS-Protection: [1; mode=block]
234 content-length: ['1270']
235 status: {code: 200, message: OK}
236- request:
237 body: status=I+love+japanimation%21
238 headers:
239 Accept: ['*/*']
240 Accept-Encoding: ['gzip, deflate']
241 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
242 Connection: [keep-alive]
243 Content-Length: ['29']
244 Content-Type: [application/x-www-form-urlencoded]
245 User-Agent: [python-requests/2.18.4]
246 method: POST
247 uri: http://localhost:3000/api/v1/statuses
248 response:
249 body: {string: '{"id":"103704146849408495","created_at":"2020-02-22T19:28:21.699Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704146849408495","url":"http://localhost/@admin/103704146849408495","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eI
250 love japanimation!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py
251 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":4,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
252 headers:
253 Cache-Control: ['no-cache, no-store']
254 Content-Type: [application/json; charset=utf-8]
255 Referrer-Policy: [strict-origin-when-cross-origin]
256 Transfer-Encoding: [chunked]
257 Vary: ['Accept-Encoding, Origin']
258 X-Content-Type-Options: [nosniff]
259 X-Download-Options: [noopen]
260 X-Frame-Options: [SAMEORIGIN]
261 X-Permitted-Cross-Domain-Policies: [none]
262 X-Request-Id: [3c151d53-63dd-4912-8800-7cb0f7641f69]
263 X-Runtime: ['0.222952']
264 X-XSS-Protection: [1; mode=block]
265 content-length: ['1269']
266 status: {code: 200, message: OK}
267- request:
268 body: null
269 headers:
270 Accept: ['*/*']
271 Accept-Encoding: ['gzip, deflate']
272 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
273 Connection: [keep-alive]
274 User-Agent: [python-requests/2.18.4]
275 method: GET
276 uri: http://localhost:3000/api/v1/timelines/home
277 response:
278 body: {string: '[{"id":"103704146849408495","created_at":"2020-02-22T19:28:21.699Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704146849408495","url":"http://localhost/@admin/103704146849408495","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003eI
279 love japanimation!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py
280 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":4,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"103704146834000160","created_at":"2020-02-22T19:28:21.465Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704146834000160","url":"http://localhost/@admin/103704146834000160","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003eGirugameshnetworking!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py
281 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":4,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}]'}
282 headers:
283 Cache-Control: ['no-cache, no-store']
284 Content-Type: [application/json; charset=utf-8]
285 Link: ['<http://localhost:3000/api/v1/timelines/home?max_id=103704146834000160>;
286 rel="next", <http://localhost:3000/api/v1/timelines/home?min_id=103704146849408495>;
287 rel="prev"']
288 Referrer-Policy: [strict-origin-when-cross-origin]
289 Transfer-Encoding: [chunked]
290 Vary: ['Accept-Encoding, Origin']
291 X-Content-Type-Options: [nosniff]
292 X-Download-Options: [noopen]
293 X-Frame-Options: [SAMEORIGIN]
294 X-Permitted-Cross-Domain-Policies: [none]
295 X-Request-Id: [716e446c-60c4-4d90-aa2e-3cbb55642b11]
296 X-Runtime: ['0.154515']
297 X-XSS-Protection: [1; mode=block]
298 content-length: ['2512']
299 status: {code: 200, message: OK}
300- request:
301 body: null
302 headers:
303 Accept: ['*/*']
304 Accept-Encoding: ['gzip, deflate']
305 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
306 Connection: [keep-alive]
307 Content-Length: ['0']
308 User-Agent: [python-requests/2.18.4]
309 method: DELETE
310 uri: http://localhost:3000/api/v1/filters/4
311 response:
312 body: {string: '{}'}
313 headers:
314 Cache-Control: ['no-cache, no-store']
315 Content-Type: [application/json; charset=utf-8]
316 Referrer-Policy: [strict-origin-when-cross-origin]
317 Transfer-Encoding: [chunked]
318 Vary: ['Accept-Encoding, Origin']
319 X-Content-Type-Options: [nosniff]
320 X-Download-Options: [noopen]
321 X-Frame-Options: [SAMEORIGIN]
322 X-Permitted-Cross-Domain-Policies: [none]
323 X-Request-Id: [c4163ea7-80de-424f-9317-3c32cb710aab]
324 X-Runtime: ['0.039944']
325 X-XSS-Protection: [1; mode=block]
326 content-length: ['2']
327 status: {code: 200, message: OK}
328- request:
329 body: null
330 headers:
331 Accept: ['*/*']
332 Accept-Encoding: ['gzip, deflate']
333 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
334 Connection: [keep-alive]
335 Content-Length: ['0']
336 User-Agent: [python-requests/2.18.4]
337 method: DELETE
338 uri: http://localhost:3000/api/v1/filters/5
339 response:
340 body: {string: '{}'}
341 headers:
342 Cache-Control: ['no-cache, no-store']
343 Content-Type: [application/json; charset=utf-8]
344 Referrer-Policy: [strict-origin-when-cross-origin]
345 Transfer-Encoding: [chunked]
346 Vary: ['Accept-Encoding, Origin']
347 X-Content-Type-Options: [nosniff]
348 X-Download-Options: [noopen]
349 X-Frame-Options: [SAMEORIGIN]
350 X-Permitted-Cross-Domain-Policies: [none]
351 X-Request-Id: [d166a6d4-d794-4452-98d6-28bc4e161a7c]
352 X-Runtime: ['0.042435']
353 X-XSS-Protection: [1; mode=block]
354 content-length: ['2']
355 status: {code: 200, message: OK}
356- request:
357 body: null
358 headers:
359 Accept: ['*/*']
360 Accept-Encoding: ['gzip, deflate']
361 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
362 Connection: [keep-alive]
363 Content-Length: ['0']
364 User-Agent: [python-requests/2.18.4]
365 method: DELETE
366 uri: http://localhost:3000/api/v1/filters/6
367 response:
368 body: {string: '{}'}
369 headers:
370 Cache-Control: ['no-cache, no-store']
371 Content-Type: [application/json; charset=utf-8]
372 Referrer-Policy: [strict-origin-when-cross-origin]
373 Transfer-Encoding: [chunked]
374 Vary: ['Accept-Encoding, Origin']
375 X-Content-Type-Options: [nosniff]
376 X-Download-Options: [noopen]
377 X-Frame-Options: [SAMEORIGIN]
378 X-Permitted-Cross-Domain-Policies: [none]
379 X-Request-Id: [fcceb96d-b2b1-4e40-9046-1e30954151d5]
380 X-Runtime: ['0.032520']
381 X-XSS-Protection: [1; mode=block]
382 content-length: ['2']
383 status: {code: 200, message: OK}
384- request:
385 body: null
386 headers:
387 Accept: ['*/*']
388 Accept-Encoding: ['gzip, deflate']
389 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
390 Connection: [keep-alive]
391 Content-Length: ['0']
392 User-Agent: [python-requests/2.18.4]
393 method: DELETE
394 uri: http://localhost:3000/api/v1/statuses/103704146777256971
395 response:
396 body: {string: '{"id":"103704146777256971","created_at":"2020-02-22T19:28:20.592Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704146777256971","url":"http://localhost/@admin/103704146777256971","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"I
397 love animes","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
398 headers:
399 Cache-Control: ['no-cache, no-store']
400 Content-Type: [application/json; charset=utf-8]
401 Referrer-Policy: [strict-origin-when-cross-origin]
402 Transfer-Encoding: [chunked]
403 Vary: ['Accept-Encoding, Origin']
404 X-Content-Type-Options: [nosniff]
405 X-Download-Options: [noopen]
406 X-Frame-Options: [SAMEORIGIN]
407 X-Permitted-Cross-Domain-Policies: [none]
408 X-Request-Id: [b4e79c9c-1d5c-46ba-b733-b614bb6f3b47]
409 X-Runtime: ['0.160443']
410 X-XSS-Protection: [1; mode=block]
411 content-length: ['1232']
412 status: {code: 200, message: OK}
413- request:
414 body: null
415 headers:
416 Accept: ['*/*']
417 Accept-Encoding: ['gzip, deflate']
418 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
419 Connection: [keep-alive]
420 Content-Length: ['0']
421 User-Agent: [python-requests/2.18.4]
422 method: DELETE
423 uri: http://localhost:3000/api/v1/statuses/103704146793129602
424 response:
425 body: {string: '{"id":"103704146793129602","created_at":"2020-02-22T19:28:20.921Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704146793129602","url":"http://localhost/@admin/103704146793129602","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Girugamesh!","reblog":null,"application":{"name":"Mastodon.py
426 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
427 headers:
428 Cache-Control: ['no-cache, no-store']
429 Content-Type: [application/json; charset=utf-8]
430 Referrer-Policy: [strict-origin-when-cross-origin]
431 Transfer-Encoding: [chunked]
432 Vary: ['Accept-Encoding, Origin']
433 X-Content-Type-Options: [nosniff]
434 X-Download-Options: [noopen]
435 X-Frame-Options: [SAMEORIGIN]
436 X-Permitted-Cross-Domain-Policies: [none]
437 X-Request-Id: [df004843-006d-487d-afe9-b4c7f33e9197]
438 X-Runtime: ['0.123161']
439 X-XSS-Protection: [1; mode=block]
440 content-length: ['1230']
441 status: {code: 200, message: OK}
442- request:
443 body: null
444 headers:
445 Accept: ['*/*']
446 Accept-Encoding: ['gzip, deflate']
447 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
448 Connection: [keep-alive]
449 Content-Length: ['0']
450 User-Agent: [python-requests/2.18.4]
451 method: DELETE
452 uri: http://localhost:3000/api/v1/statuses/103704146834000160
453 response:
454 body: {string: '{"id":"103704146834000160","created_at":"2020-02-22T19:28:21.465Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704146834000160","url":"http://localhost/@admin/103704146834000160","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Girugameshnetworking!","reblog":null,"application":{"name":"Mastodon.py
455 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":2,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
456 headers:
457 Cache-Control: ['no-cache, no-store']
458 Content-Type: [application/json; charset=utf-8]
459 Referrer-Policy: [strict-origin-when-cross-origin]
460 Transfer-Encoding: [chunked]
461 Vary: ['Accept-Encoding, Origin']
462 X-Content-Type-Options: [nosniff]
463 X-Download-Options: [noopen]
464 X-Frame-Options: [SAMEORIGIN]
465 X-Permitted-Cross-Domain-Policies: [none]
466 X-Request-Id: [75941aaf-ca51-4f9a-8e1e-9ea9e0982f79]
467 X-Runtime: ['0.128672']
468 X-XSS-Protection: [1; mode=block]
469 content-length: ['1240']
470 status: {code: 200, message: OK}
471- request:
472 body: null
473 headers:
474 Accept: ['*/*']
475 Accept-Encoding: ['gzip, deflate']
476 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
477 Connection: [keep-alive]
478 Content-Length: ['0']
479 User-Agent: [python-requests/2.18.4]
480 method: DELETE
481 uri: http://localhost:3000/api/v1/statuses/103704146849408495
482 response:
483 body: {string: '{"id":"103704146849408495","created_at":"2020-02-22T19:28:21.699Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704146849408495","url":"http://localhost/@admin/103704146849408495","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"I
484 love japanimation!","reblog":null,"application":{"name":"Mastodon.py test
485 suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":1,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
486 headers:
487 Cache-Control: ['no-cache, no-store']
488 Content-Type: [application/json; charset=utf-8]
489 Referrer-Policy: [strict-origin-when-cross-origin]
490 Transfer-Encoding: [chunked]
491 Vary: ['Accept-Encoding, Origin']
492 X-Content-Type-Options: [nosniff]
493 X-Download-Options: [noopen]
494 X-Frame-Options: [SAMEORIGIN]
495 X-Permitted-Cross-Domain-Policies: [none]
496 X-Request-Id: [84cca537-3746-45d4-89ae-d1547d589015]
497 X-Runtime: ['0.125049']
498 X-XSS-Protection: [1; mode=block]
499 content-length: ['1239']
500 status: {code: 200, message: OK}
501version: 1
diff --git a/tests/cassettes_pre_4_0_0/test_filter_update.yaml b/tests/cassettes_pre_4_0_0/test_filter_update.yaml
new file mode 100644
index 0000000..86e9842
--- /dev/null
+++ b/tests/cassettes_pre_4_0_0/test_filter_update.yaml
@@ -0,0 +1,87 @@
1interactions:
2- request:
3 body: whole_word=1&irreversible=0&phrase=anime&context%5B%5D=notifications
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
8 Connection: [keep-alive]
9 Content-Length: ['68']
10 Content-Type: [application/x-www-form-urlencoded]
11 User-Agent: [python-requests/2.18.4]
12 method: POST
13 uri: http://localhost:3000/api/v1/filters
14 response:
15 body: {string: '{"id":"3","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'}
16 headers:
17 Cache-Control: ['no-cache, no-store']
18 Content-Type: [application/json; charset=utf-8]
19 Referrer-Policy: [strict-origin-when-cross-origin]
20 Transfer-Encoding: [chunked]
21 Vary: ['Accept-Encoding, Origin']
22 X-Content-Type-Options: [nosniff]
23 X-Download-Options: [noopen]
24 X-Frame-Options: [SAMEORIGIN]
25 X-Permitted-Cross-Domain-Policies: [none]
26 X-Request-Id: [220c49fb-ac0c-488e-a28c-2c6e929b28b4]
27 X-Runtime: ['0.036281']
28 X-XSS-Protection: [1; mode=block]
29 content-length: ['112']
30 status: {code: 200, message: OK}
31- request:
32 body: phrase=japanimation
33 headers:
34 Accept: ['*/*']
35 Accept-Encoding: ['gzip, deflate']
36 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
37 Connection: [keep-alive]
38 Content-Length: ['19']
39 Content-Type: [application/x-www-form-urlencoded]
40 User-Agent: [python-requests/2.18.4]
41 method: PUT
42 uri: http://localhost:3000/api/v1/filters/3
43 response:
44 body: {string: '{"id":"3","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'}
45 headers:
46 Cache-Control: ['no-cache, no-store']
47 Content-Type: [application/json; charset=utf-8]
48 Referrer-Policy: [strict-origin-when-cross-origin]
49 Transfer-Encoding: [chunked]
50 Vary: ['Accept-Encoding, Origin']
51 X-Content-Type-Options: [nosniff]
52 X-Download-Options: [noopen]
53 X-Frame-Options: [SAMEORIGIN]
54 X-Permitted-Cross-Domain-Policies: [none]
55 X-Request-Id: [db1bb32d-5f6d-41a2-9b61-5197030c32b0]
56 X-Runtime: ['0.033542']
57 X-XSS-Protection: [1; mode=block]
58 content-length: ['119']
59 status: {code: 200, message: OK}
60- request:
61 body: null
62 headers:
63 Accept: ['*/*']
64 Accept-Encoding: ['gzip, deflate']
65 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
66 Connection: [keep-alive]
67 User-Agent: [python-requests/2.18.4]
68 method: GET
69 uri: http://localhost:3000/api/v1/filters/3
70 response:
71 body: {string: '{"id":"3","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'}
72 headers:
73 Cache-Control: ['no-cache, no-store']
74 Content-Type: [application/json; charset=utf-8]
75 Referrer-Policy: [strict-origin-when-cross-origin]
76 Transfer-Encoding: [chunked]
77 Vary: ['Accept-Encoding, Origin']
78 X-Content-Type-Options: [nosniff]
79 X-Download-Options: [noopen]
80 X-Frame-Options: [SAMEORIGIN]
81 X-Permitted-Cross-Domain-Policies: [none]
82 X-Request-Id: [3123dbc3-1ecb-47c7-8934-13b14fcad219]
83 X-Runtime: ['0.042994']
84 X-XSS-Protection: [1; mode=block]
85 content-length: ['119']
86 status: {code: 200, message: OK}
87version: 1
Powered by cgit v1.2.3 (git 2.41.0)