diff options
author | Lorenz Diener <[email protected]> | 2019-04-27 21:04:06 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-04-27 21:04:06 +0200 |
commit | e3936649745a627fa2c31fc7b8602793b7d6027b (patch) | |
tree | c478eb7f45acbfe63faec6151a23658dfc0da3e6 /tests/cassettes/test_filter_create.yaml | |
parent | c1418e9f3f37319d5142e0fa058e2eab434c4e5d (diff) | |
download | mastodon.py-e3936649745a627fa2c31fc7b8602793b7d6027b.tar.gz |
Test fixups and small 2.8 fixes
Pagination backwards is broken presently.
Diffstat (limited to 'tests/cassettes/test_filter_create.yaml')
-rw-r--r-- | tests/cassettes/test_filter_create.yaml | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/tests/cassettes/test_filter_create.yaml b/tests/cassettes/test_filter_create.yaml index af8ee31..ee273aa 100644 --- a/tests/cassettes/test_filter_create.yaml +++ b/tests/cassettes/test_filter_create.yaml | |||
@@ -12,11 +12,11 @@ interactions: | |||
12 | method: POST | 12 | method: POST |
13 | uri: http://localhost:3000/api/v1/filters | 13 | uri: http://localhost:3000/api/v1/filters |
14 | response: | 14 | response: |
15 | body: {string: '{"id":37,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} | 15 | body: {string: '{"id":"19","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} |
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/"3d6994baffdea8caa5d91fc5d2a1efc0"] | 19 | ETag: [W/"9289198334d408c47d29f9b7a0fe6e7d"] |
20 | Referrer-Policy: [strict-origin-when-cross-origin] | 20 | Referrer-Policy: [strict-origin-when-cross-origin] |
21 | Transfer-Encoding: [chunked] | 21 | Transfer-Encoding: [chunked] |
22 | Vary: ['Accept-Encoding, Origin'] | 22 | Vary: ['Accept-Encoding, Origin'] |
@@ -24,10 +24,10 @@ interactions: | |||
24 | X-Download-Options: [noopen] | 24 | X-Download-Options: [noopen] |
25 | X-Frame-Options: [SAMEORIGIN] | 25 | X-Frame-Options: [SAMEORIGIN] |
26 | X-Permitted-Cross-Domain-Policies: [none] | 26 | X-Permitted-Cross-Domain-Policies: [none] |
27 | X-Request-Id: [b27015d9-55e5-4f2a-9231-8db9702a73ce] | 27 | X-Request-Id: [b4961890-0957-4de4-b44f-8f7ca02969f2] |
28 | X-Runtime: ['0.034108'] | 28 | X-Runtime: ['0.029585'] |
29 | X-XSS-Protection: [1; mode=block] | 29 | X-XSS-Protection: [1; mode=block] |
30 | content-length: ['111'] | 30 | content-length: ['113'] |
31 | status: {code: 200, message: OK} | 31 | status: {code: 200, message: OK} |
32 | - request: | 32 | - request: |
33 | body: null | 33 | body: null |
@@ -40,11 +40,11 @@ interactions: | |||
40 | method: GET | 40 | method: GET |
41 | uri: http://localhost:3000/api/v1/filters | 41 | uri: http://localhost:3000/api/v1/filters |
42 | response: | 42 | response: |
43 | body: {string: '[{"id":1,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":true},{"id":27,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":30,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":34,"phrase":"anime","context":["home"],"whole_word":false,"expires_at":null,"irreversible":false},{"id":35,"phrase":"girugamesh","context":["home"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":36,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":37,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}]'} | 43 | body: {string: '[{"id":"3","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":"12","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":"19","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}]'} |
44 | headers: | 44 | headers: |
45 | Cache-Control: ['max-age=0, private, must-revalidate'] | 45 | Cache-Control: ['max-age=0, private, must-revalidate'] |
46 | Content-Type: [application/json; charset=utf-8] | 46 | Content-Type: [application/json; charset=utf-8] |
47 | ETag: [W/"edbbd56d6a098ed450465fe480624fab"] | 47 | ETag: [W/"4c273b197afab93420bbf924a9642648"] |
48 | Referrer-Policy: [strict-origin-when-cross-origin] | 48 | Referrer-Policy: [strict-origin-when-cross-origin] |
49 | Transfer-Encoding: [chunked] | 49 | Transfer-Encoding: [chunked] |
50 | Vary: ['Accept-Encoding, Origin'] | 50 | Vary: ['Accept-Encoding, Origin'] |
@@ -52,10 +52,10 @@ interactions: | |||
52 | X-Download-Options: [noopen] | 52 | X-Download-Options: [noopen] |
53 | X-Frame-Options: [SAMEORIGIN] | 53 | X-Frame-Options: [SAMEORIGIN] |
54 | X-Permitted-Cross-Domain-Policies: [none] | 54 | X-Permitted-Cross-Domain-Policies: [none] |
55 | X-Request-Id: [4bbd6c23-662c-41bb-8192-76fd47356fab] | 55 | X-Request-Id: [44e22500-2799-4424-b986-06b066203325] |
56 | X-Runtime: ['0.020769'] | 56 | X-Runtime: ['0.023643'] |
57 | X-XSS-Protection: [1; mode=block] | 57 | X-XSS-Protection: [1; mode=block] |
58 | content-length: ['792'] | 58 | content-length: ['356'] |
59 | status: {code: 200, message: OK} | 59 | status: {code: 200, message: OK} |
60 | - request: | 60 | - request: |
61 | body: null | 61 | body: null |
@@ -66,13 +66,13 @@ interactions: | |||
66 | Connection: [keep-alive] | 66 | Connection: [keep-alive] |
67 | User-Agent: [python-requests/2.18.4] | 67 | User-Agent: [python-requests/2.18.4] |
68 | method: GET | 68 | method: GET |
69 | uri: http://localhost:3000/api/v1/filters/37 | 69 | uri: http://localhost:3000/api/v1/filters/19 |
70 | response: | 70 | response: |
71 | body: {string: '{"id":37,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} | 71 | body: {string: '{"id":"19","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} |
72 | headers: | 72 | headers: |
73 | Cache-Control: ['max-age=0, private, must-revalidate'] | 73 | Cache-Control: ['max-age=0, private, must-revalidate'] |
74 | Content-Type: [application/json; charset=utf-8] | 74 | Content-Type: [application/json; charset=utf-8] |
75 | ETag: [W/"3d6994baffdea8caa5d91fc5d2a1efc0"] | 75 | ETag: [W/"9289198334d408c47d29f9b7a0fe6e7d"] |
76 | Referrer-Policy: [strict-origin-when-cross-origin] | 76 | Referrer-Policy: [strict-origin-when-cross-origin] |
77 | Transfer-Encoding: [chunked] | 77 | Transfer-Encoding: [chunked] |
78 | Vary: ['Accept-Encoding, Origin'] | 78 | Vary: ['Accept-Encoding, Origin'] |
@@ -80,10 +80,10 @@ interactions: | |||
80 | X-Download-Options: [noopen] | 80 | X-Download-Options: [noopen] |
81 | X-Frame-Options: [SAMEORIGIN] | 81 | X-Frame-Options: [SAMEORIGIN] |
82 | X-Permitted-Cross-Domain-Policies: [none] | 82 | X-Permitted-Cross-Domain-Policies: [none] |
83 | X-Request-Id: [b3d107a7-cb56-40a1-9bd9-0e79ee16f832] | 83 | X-Request-Id: [3e043c5e-f4d7-488a-97cc-9e43727e7224] |
84 | X-Runtime: ['0.023702'] | 84 | X-Runtime: ['0.022473'] |
85 | X-XSS-Protection: [1; mode=block] | 85 | X-XSS-Protection: [1; mode=block] |
86 | content-length: ['111'] | 86 | content-length: ['113'] |
87 | status: {code: 200, message: OK} | 87 | status: {code: 200, message: OK} |
88 | - request: | 88 | - request: |
89 | body: null | 89 | body: null |
@@ -95,13 +95,13 @@ interactions: | |||
95 | Content-Length: ['0'] | 95 | Content-Length: ['0'] |
96 | User-Agent: [python-requests/2.18.4] | 96 | User-Agent: [python-requests/2.18.4] |
97 | method: DELETE | 97 | method: DELETE |
98 | uri: http://localhost:3000/api/v1/filters/37 | 98 | uri: http://localhost:3000/api/v1/filters/19 |
99 | response: | 99 | response: |
100 | body: {string: '{}'} | 100 | body: {string: '{}'} |
101 | headers: | 101 | headers: |
102 | Cache-Control: ['max-age=0, private, must-revalidate'] | 102 | Cache-Control: ['max-age=0, private, must-revalidate'] |
103 | Content-Type: [application/json; charset=utf-8] | 103 | Content-Type: [application/json; charset=utf-8] |
104 | ETag: [W/"e4127e970a50339ddd95e5e919b70642"] | 104 | ETag: [W/"c6a41189c705fc6216f062c783b83fd0"] |
105 | Referrer-Policy: [strict-origin-when-cross-origin] | 105 | Referrer-Policy: [strict-origin-when-cross-origin] |
106 | Transfer-Encoding: [chunked] | 106 | Transfer-Encoding: [chunked] |
107 | Vary: ['Accept-Encoding, Origin'] | 107 | Vary: ['Accept-Encoding, Origin'] |
@@ -109,8 +109,8 @@ interactions: | |||
109 | X-Download-Options: [noopen] | 109 | X-Download-Options: [noopen] |
110 | X-Frame-Options: [SAMEORIGIN] | 110 | X-Frame-Options: [SAMEORIGIN] |
111 | X-Permitted-Cross-Domain-Policies: [none] | 111 | X-Permitted-Cross-Domain-Policies: [none] |
112 | X-Request-Id: [efb38983-7b67-4bb1-8a53-bd2a2b8596b7] | 112 | X-Request-Id: [27273ccf-2b3e-42a4-b66b-fbbf3a4124ae] |
113 | X-Runtime: ['0.033148'] | 113 | X-Runtime: ['0.032739'] |
114 | X-XSS-Protection: [1; mode=block] | 114 | X-XSS-Protection: [1; mode=block] |
115 | content-length: ['2'] | 115 | content-length: ['2'] |
116 | status: {code: 200, message: OK} | 116 | status: {code: 200, message: OK} |
@@ -127,11 +127,11 @@ interactions: | |||
127 | method: POST | 127 | method: POST |
128 | uri: http://localhost:3000/api/v1/filters | 128 | uri: http://localhost:3000/api/v1/filters |
129 | response: | 129 | response: |
130 | body: {string: '{"id":38,"phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'} | 130 | body: {string: '{"id":"20","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'} |
131 | headers: | 131 | headers: |
132 | Cache-Control: ['max-age=0, private, must-revalidate'] | 132 | Cache-Control: ['max-age=0, private, must-revalidate'] |
133 | Content-Type: [application/json; charset=utf-8] | 133 | Content-Type: [application/json; charset=utf-8] |
134 | ETag: [W/"cae02e13e377c3adb0b76489a56fadb8"] | 134 | ETag: [W/"85faeffd5444fd99f8aec00f2897d6e1"] |
135 | Referrer-Policy: [strict-origin-when-cross-origin] | 135 | Referrer-Policy: [strict-origin-when-cross-origin] |
136 | Transfer-Encoding: [chunked] | 136 | Transfer-Encoding: [chunked] |
137 | Vary: ['Accept-Encoding, Origin'] | 137 | Vary: ['Accept-Encoding, Origin'] |
@@ -139,10 +139,10 @@ interactions: | |||
139 | X-Download-Options: [noopen] | 139 | X-Download-Options: [noopen] |
140 | X-Frame-Options: [SAMEORIGIN] | 140 | X-Frame-Options: [SAMEORIGIN] |
141 | X-Permitted-Cross-Domain-Policies: [none] | 141 | X-Permitted-Cross-Domain-Policies: [none] |
142 | X-Request-Id: [b239ccd2-eead-4876-b62c-4d0a174971e5] | 142 | X-Request-Id: [6b56f3e5-bafe-4ab8-a98f-ff47a4b3ce73] |
143 | X-Runtime: ['0.033069'] | 143 | X-Runtime: ['0.029775'] |
144 | X-XSS-Protection: [1; mode=block] | 144 | X-XSS-Protection: [1; mode=block] |
145 | content-length: ['112'] | 145 | content-length: ['114'] |
146 | status: {code: 200, message: OK} | 146 | status: {code: 200, message: OK} |
147 | - request: | 147 | - request: |
148 | body: null | 148 | body: null |
@@ -155,11 +155,11 @@ interactions: | |||
155 | method: GET | 155 | method: GET |
156 | uri: http://localhost:3000/api/v1/filters | 156 | uri: http://localhost:3000/api/v1/filters |
157 | response: | 157 | response: |
158 | body: {string: '[{"id":1,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":true},{"id":27,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":30,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":34,"phrase":"anime","context":["home"],"whole_word":false,"expires_at":null,"irreversible":false},{"id":35,"phrase":"girugamesh","context":["home"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":36,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":38,"phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}]'} | 158 | body: {string: '[{"id":"3","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":"12","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":"20","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}]'} |
159 | headers: | 159 | headers: |
160 | Cache-Control: ['max-age=0, private, must-revalidate'] | 160 | Cache-Control: ['max-age=0, private, must-revalidate'] |
161 | Content-Type: [application/json; charset=utf-8] | 161 | Content-Type: [application/json; charset=utf-8] |
162 | ETag: [W/"3869f2ed416e1a8c2a0374d33e45625e"] | 162 | ETag: [W/"4b5db3bdbead67957bb465147c52d3fb"] |
163 | Referrer-Policy: [strict-origin-when-cross-origin] | 163 | Referrer-Policy: [strict-origin-when-cross-origin] |
164 | Transfer-Encoding: [chunked] | 164 | Transfer-Encoding: [chunked] |
165 | Vary: ['Accept-Encoding, Origin'] | 165 | Vary: ['Accept-Encoding, Origin'] |
@@ -167,10 +167,10 @@ interactions: | |||
167 | X-Download-Options: [noopen] | 167 | X-Download-Options: [noopen] |
168 | X-Frame-Options: [SAMEORIGIN] | 168 | X-Frame-Options: [SAMEORIGIN] |
169 | X-Permitted-Cross-Domain-Policies: [none] | 169 | X-Permitted-Cross-Domain-Policies: [none] |
170 | X-Request-Id: [be361b44-e614-475a-b64a-d09c3ae36330] | 170 | X-Request-Id: [456bfb9f-0479-4f97-ae23-7244fc9c3eff] |
171 | X-Runtime: ['0.020416'] | 171 | X-Runtime: ['0.023413'] |
172 | X-XSS-Protection: [1; mode=block] | 172 | X-XSS-Protection: [1; mode=block] |
173 | content-length: ['793'] | 173 | content-length: ['357'] |
174 | status: {code: 200, message: OK} | 174 | status: {code: 200, message: OK} |
175 | - request: | 175 | - request: |
176 | body: null | 176 | body: null |
@@ -181,13 +181,13 @@ interactions: | |||
181 | Connection: [keep-alive] | 181 | Connection: [keep-alive] |
182 | User-Agent: [python-requests/2.18.4] | 182 | User-Agent: [python-requests/2.18.4] |
183 | method: GET | 183 | method: GET |
184 | uri: http://localhost:3000/api/v1/filters/38 | 184 | uri: http://localhost:3000/api/v1/filters/20 |
185 | response: | 185 | response: |
186 | body: {string: '{"id":38,"phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'} | 186 | body: {string: '{"id":"20","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'} |
187 | headers: | 187 | headers: |
188 | Cache-Control: ['max-age=0, private, must-revalidate'] | 188 | Cache-Control: ['max-age=0, private, must-revalidate'] |
189 | Content-Type: [application/json; charset=utf-8] | 189 | Content-Type: [application/json; charset=utf-8] |
190 | ETag: [W/"cae02e13e377c3adb0b76489a56fadb8"] | 190 | ETag: [W/"85faeffd5444fd99f8aec00f2897d6e1"] |
191 | Referrer-Policy: [strict-origin-when-cross-origin] | 191 | Referrer-Policy: [strict-origin-when-cross-origin] |
192 | Transfer-Encoding: [chunked] | 192 | Transfer-Encoding: [chunked] |
193 | Vary: ['Accept-Encoding, Origin'] | 193 | Vary: ['Accept-Encoding, Origin'] |
@@ -195,10 +195,10 @@ interactions: | |||
195 | X-Download-Options: [noopen] | 195 | X-Download-Options: [noopen] |
196 | X-Frame-Options: [SAMEORIGIN] | 196 | X-Frame-Options: [SAMEORIGIN] |
197 | X-Permitted-Cross-Domain-Policies: [none] | 197 | X-Permitted-Cross-Domain-Policies: [none] |
198 | X-Request-Id: [e26dcff6-7e5c-43f3-ba4a-7c4a036ea445] | 198 | X-Request-Id: [013c4daa-f1cc-47e9-a6f8-7b106367aa23] |
199 | X-Runtime: ['0.025813'] | 199 | X-Runtime: ['0.023936'] |
200 | X-XSS-Protection: [1; mode=block] | 200 | X-XSS-Protection: [1; mode=block] |
201 | content-length: ['112'] | 201 | content-length: ['114'] |
202 | status: {code: 200, message: OK} | 202 | status: {code: 200, message: OK} |
203 | - request: | 203 | - request: |
204 | body: null | 204 | body: null |
@@ -210,13 +210,13 @@ interactions: | |||
210 | Content-Length: ['0'] | 210 | Content-Length: ['0'] |
211 | User-Agent: [python-requests/2.18.4] | 211 | User-Agent: [python-requests/2.18.4] |
212 | method: DELETE | 212 | method: DELETE |
213 | uri: http://localhost:3000/api/v1/filters/38 | 213 | uri: http://localhost:3000/api/v1/filters/20 |
214 | response: | 214 | response: |
215 | body: {string: '{}'} | 215 | body: {string: '{}'} |
216 | headers: | 216 | headers: |
217 | Cache-Control: ['max-age=0, private, must-revalidate'] | 217 | Cache-Control: ['max-age=0, private, must-revalidate'] |
218 | Content-Type: [application/json; charset=utf-8] | 218 | Content-Type: [application/json; charset=utf-8] |
219 | ETag: [W/"e4127e970a50339ddd95e5e919b70642"] | 219 | ETag: [W/"c6a41189c705fc6216f062c783b83fd0"] |
220 | Referrer-Policy: [strict-origin-when-cross-origin] | 220 | Referrer-Policy: [strict-origin-when-cross-origin] |
221 | Transfer-Encoding: [chunked] | 221 | Transfer-Encoding: [chunked] |
222 | Vary: ['Accept-Encoding, Origin'] | 222 | Vary: ['Accept-Encoding, Origin'] |
@@ -224,8 +224,8 @@ interactions: | |||
224 | X-Download-Options: [noopen] | 224 | X-Download-Options: [noopen] |
225 | X-Frame-Options: [SAMEORIGIN] | 225 | X-Frame-Options: [SAMEORIGIN] |
226 | X-Permitted-Cross-Domain-Policies: [none] | 226 | X-Permitted-Cross-Domain-Policies: [none] |
227 | X-Request-Id: [28e0d549-bd9f-498e-b3a5-c0950d2eb9a8] | 227 | X-Request-Id: [56b15d57-239b-4c2c-987c-95e0d183bb75] |
228 | X-Runtime: ['0.033591'] | 228 | X-Runtime: ['0.023065'] |
229 | X-XSS-Protection: [1; mode=block] | 229 | X-XSS-Protection: [1; mode=block] |
230 | content-length: ['2'] | 230 | content-length: ['2'] |
231 | status: {code: 200, message: OK} | 231 | status: {code: 200, message: OK} |