aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes_pre_4_0_0/test_filter_create.yaml')
-rw-r--r--tests/cassettes_pre_4_0_0/test_filter_create.yaml224
1 files changed, 224 insertions, 0 deletions
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
Powered by cgit v1.2.3 (git 2.41.0)