diff options
author | Lorenz Diener <[email protected]> | 2019-06-22 15:28:27 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-06-22 15:28:27 +0200 |
commit | 052b7f7cd319bd39f5c9db1b0322e9e4445a123e (patch) | |
tree | a4f02a2f738a477f2cde36e209bc29ab4df78ebc /tests/cassettes/test_filter_create.yaml | |
parent | 1a120f03939d36bc14bda0931819db0ab45908af (diff) | |
download | mastodon.py-052b7f7cd319bd39f5c9db1b0322e9e4445a123e.tar.gz |
Test fixups pre-2.9.1
Diffstat (limited to 'tests/cassettes/test_filter_create.yaml')
-rw-r--r-- | tests/cassettes/test_filter_create.yaml | 88 |
1 files changed, 40 insertions, 48 deletions
diff --git a/tests/cassettes/test_filter_create.yaml b/tests/cassettes/test_filter_create.yaml index ee273aa..0fa685b 100644 --- a/tests/cassettes/test_filter_create.yaml +++ b/tests/cassettes/test_filter_create.yaml | |||
@@ -12,11 +12,10 @@ 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":"19","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} | 15 | body: {string: '{"id":"1","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: ['no-cache, no-store'] |
18 | Content-Type: [application/json; charset=utf-8] | 18 | Content-Type: [application/json; charset=utf-8] |
19 | ETag: [W/"9289198334d408c47d29f9b7a0fe6e7d"] | ||
20 | Referrer-Policy: [strict-origin-when-cross-origin] | 19 | Referrer-Policy: [strict-origin-when-cross-origin] |
21 | Transfer-Encoding: [chunked] | 20 | Transfer-Encoding: [chunked] |
22 | Vary: ['Accept-Encoding, Origin'] | 21 | Vary: ['Accept-Encoding, Origin'] |
@@ -24,10 +23,10 @@ interactions: | |||
24 | X-Download-Options: [noopen] | 23 | X-Download-Options: [noopen] |
25 | X-Frame-Options: [SAMEORIGIN] | 24 | X-Frame-Options: [SAMEORIGIN] |
26 | X-Permitted-Cross-Domain-Policies: [none] | 25 | X-Permitted-Cross-Domain-Policies: [none] |
27 | X-Request-Id: [b4961890-0957-4de4-b44f-8f7ca02969f2] | 26 | X-Request-Id: [e8c37740-33a4-48cf-bc53-7c85ce2b4a41] |
28 | X-Runtime: ['0.029585'] | 27 | X-Runtime: ['0.075588'] |
29 | X-XSS-Protection: [1; mode=block] | 28 | X-XSS-Protection: [1; mode=block] |
30 | content-length: ['113'] | 29 | content-length: ['112'] |
31 | status: {code: 200, message: OK} | 30 | status: {code: 200, message: OK} |
32 | - request: | 31 | - request: |
33 | body: null | 32 | body: null |
@@ -40,11 +39,10 @@ interactions: | |||
40 | method: GET | 39 | method: GET |
41 | uri: http://localhost:3000/api/v1/filters | 40 | uri: http://localhost:3000/api/v1/filters |
42 | response: | 41 | response: |
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}]'} | 42 | body: {string: '[{"id":"1","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}]'} |
44 | headers: | 43 | headers: |
45 | Cache-Control: ['max-age=0, private, must-revalidate'] | 44 | Cache-Control: ['no-cache, no-store'] |
46 | Content-Type: [application/json; charset=utf-8] | 45 | Content-Type: [application/json; charset=utf-8] |
47 | ETag: [W/"4c273b197afab93420bbf924a9642648"] | ||
48 | Referrer-Policy: [strict-origin-when-cross-origin] | 46 | Referrer-Policy: [strict-origin-when-cross-origin] |
49 | Transfer-Encoding: [chunked] | 47 | Transfer-Encoding: [chunked] |
50 | Vary: ['Accept-Encoding, Origin'] | 48 | Vary: ['Accept-Encoding, Origin'] |
@@ -52,10 +50,10 @@ interactions: | |||
52 | X-Download-Options: [noopen] | 50 | X-Download-Options: [noopen] |
53 | X-Frame-Options: [SAMEORIGIN] | 51 | X-Frame-Options: [SAMEORIGIN] |
54 | X-Permitted-Cross-Domain-Policies: [none] | 52 | X-Permitted-Cross-Domain-Policies: [none] |
55 | X-Request-Id: [44e22500-2799-4424-b986-06b066203325] | 53 | X-Request-Id: [c3bc75c5-bfc5-4e59-a6e0-757725dd4f6d] |
56 | X-Runtime: ['0.023643'] | 54 | X-Runtime: ['0.031688'] |
57 | X-XSS-Protection: [1; mode=block] | 55 | X-XSS-Protection: [1; mode=block] |
58 | content-length: ['356'] | 56 | content-length: ['114'] |
59 | status: {code: 200, message: OK} | 57 | status: {code: 200, message: OK} |
60 | - request: | 58 | - request: |
61 | body: null | 59 | body: null |
@@ -66,13 +64,12 @@ interactions: | |||
66 | Connection: [keep-alive] | 64 | Connection: [keep-alive] |
67 | User-Agent: [python-requests/2.18.4] | 65 | User-Agent: [python-requests/2.18.4] |
68 | method: GET | 66 | method: GET |
69 | uri: http://localhost:3000/api/v1/filters/19 | 67 | uri: http://localhost:3000/api/v1/filters/1 |
70 | response: | 68 | response: |
71 | body: {string: '{"id":"19","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} | 69 | body: {string: '{"id":"1","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} |
72 | headers: | 70 | headers: |
73 | Cache-Control: ['max-age=0, private, must-revalidate'] | 71 | Cache-Control: ['no-cache, no-store'] |
74 | Content-Type: [application/json; charset=utf-8] | 72 | Content-Type: [application/json; charset=utf-8] |
75 | ETag: [W/"9289198334d408c47d29f9b7a0fe6e7d"] | ||
76 | Referrer-Policy: [strict-origin-when-cross-origin] | 73 | Referrer-Policy: [strict-origin-when-cross-origin] |
77 | Transfer-Encoding: [chunked] | 74 | Transfer-Encoding: [chunked] |
78 | Vary: ['Accept-Encoding, Origin'] | 75 | Vary: ['Accept-Encoding, Origin'] |
@@ -80,10 +77,10 @@ interactions: | |||
80 | X-Download-Options: [noopen] | 77 | X-Download-Options: [noopen] |
81 | X-Frame-Options: [SAMEORIGIN] | 78 | X-Frame-Options: [SAMEORIGIN] |
82 | X-Permitted-Cross-Domain-Policies: [none] | 79 | X-Permitted-Cross-Domain-Policies: [none] |
83 | X-Request-Id: [3e043c5e-f4d7-488a-97cc-9e43727e7224] | 80 | X-Request-Id: [bb08444e-edef-4914-aaa6-d08e9fe3219a] |
84 | X-Runtime: ['0.022473'] | 81 | X-Runtime: ['0.029748'] |
85 | X-XSS-Protection: [1; mode=block] | 82 | X-XSS-Protection: [1; mode=block] |
86 | content-length: ['113'] | 83 | content-length: ['112'] |
87 | status: {code: 200, message: OK} | 84 | status: {code: 200, message: OK} |
88 | - request: | 85 | - request: |
89 | body: null | 86 | body: null |
@@ -95,13 +92,12 @@ interactions: | |||
95 | Content-Length: ['0'] | 92 | Content-Length: ['0'] |
96 | User-Agent: [python-requests/2.18.4] | 93 | User-Agent: [python-requests/2.18.4] |
97 | method: DELETE | 94 | method: DELETE |
98 | uri: http://localhost:3000/api/v1/filters/19 | 95 | uri: http://localhost:3000/api/v1/filters/1 |
99 | response: | 96 | response: |
100 | body: {string: '{}'} | 97 | body: {string: '{}'} |
101 | headers: | 98 | headers: |
102 | Cache-Control: ['max-age=0, private, must-revalidate'] | 99 | Cache-Control: ['no-cache, no-store'] |
103 | Content-Type: [application/json; charset=utf-8] | 100 | Content-Type: [application/json; charset=utf-8] |
104 | ETag: [W/"c6a41189c705fc6216f062c783b83fd0"] | ||
105 | Referrer-Policy: [strict-origin-when-cross-origin] | 101 | Referrer-Policy: [strict-origin-when-cross-origin] |
106 | Transfer-Encoding: [chunked] | 102 | Transfer-Encoding: [chunked] |
107 | Vary: ['Accept-Encoding, Origin'] | 103 | Vary: ['Accept-Encoding, Origin'] |
@@ -109,8 +105,8 @@ interactions: | |||
109 | X-Download-Options: [noopen] | 105 | X-Download-Options: [noopen] |
110 | X-Frame-Options: [SAMEORIGIN] | 106 | X-Frame-Options: [SAMEORIGIN] |
111 | X-Permitted-Cross-Domain-Policies: [none] | 107 | X-Permitted-Cross-Domain-Policies: [none] |
112 | X-Request-Id: [27273ccf-2b3e-42a4-b66b-fbbf3a4124ae] | 108 | X-Request-Id: [9e2ad6c1-a256-4e27-9177-8cf638ea4cb4] |
113 | X-Runtime: ['0.032739'] | 109 | X-Runtime: ['0.041075'] |
114 | X-XSS-Protection: [1; mode=block] | 110 | X-XSS-Protection: [1; mode=block] |
115 | content-length: ['2'] | 111 | content-length: ['2'] |
116 | status: {code: 200, message: OK} | 112 | status: {code: 200, message: OK} |
@@ -127,11 +123,10 @@ interactions: | |||
127 | method: POST | 123 | method: POST |
128 | uri: http://localhost:3000/api/v1/filters | 124 | uri: http://localhost:3000/api/v1/filters |
129 | response: | 125 | response: |
130 | body: {string: '{"id":"20","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'} | 126 | body: {string: '{"id":"2","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'} |
131 | headers: | 127 | headers: |
132 | Cache-Control: ['max-age=0, private, must-revalidate'] | 128 | Cache-Control: ['no-cache, no-store'] |
133 | Content-Type: [application/json; charset=utf-8] | 129 | Content-Type: [application/json; charset=utf-8] |
134 | ETag: [W/"85faeffd5444fd99f8aec00f2897d6e1"] | ||
135 | Referrer-Policy: [strict-origin-when-cross-origin] | 130 | Referrer-Policy: [strict-origin-when-cross-origin] |
136 | Transfer-Encoding: [chunked] | 131 | Transfer-Encoding: [chunked] |
137 | Vary: ['Accept-Encoding, Origin'] | 132 | Vary: ['Accept-Encoding, Origin'] |
@@ -139,10 +134,10 @@ interactions: | |||
139 | X-Download-Options: [noopen] | 134 | X-Download-Options: [noopen] |
140 | X-Frame-Options: [SAMEORIGIN] | 135 | X-Frame-Options: [SAMEORIGIN] |
141 | X-Permitted-Cross-Domain-Policies: [none] | 136 | X-Permitted-Cross-Domain-Policies: [none] |
142 | X-Request-Id: [6b56f3e5-bafe-4ab8-a98f-ff47a4b3ce73] | 137 | X-Request-Id: [045643ac-fa49-41f5-a7d0-f332230a4d77] |
143 | X-Runtime: ['0.029775'] | 138 | X-Runtime: ['0.036015'] |
144 | X-XSS-Protection: [1; mode=block] | 139 | X-XSS-Protection: [1; mode=block] |
145 | content-length: ['114'] | 140 | content-length: ['113'] |
146 | status: {code: 200, message: OK} | 141 | status: {code: 200, message: OK} |
147 | - request: | 142 | - request: |
148 | body: null | 143 | body: null |
@@ -155,11 +150,10 @@ interactions: | |||
155 | method: GET | 150 | method: GET |
156 | uri: http://localhost:3000/api/v1/filters | 151 | uri: http://localhost:3000/api/v1/filters |
157 | response: | 152 | response: |
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}]'} | 153 | body: {string: '[{"id":"2","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}]'} |
159 | headers: | 154 | headers: |
160 | Cache-Control: ['max-age=0, private, must-revalidate'] | 155 | Cache-Control: ['no-cache, no-store'] |
161 | Content-Type: [application/json; charset=utf-8] | 156 | Content-Type: [application/json; charset=utf-8] |
162 | ETag: [W/"4b5db3bdbead67957bb465147c52d3fb"] | ||
163 | Referrer-Policy: [strict-origin-when-cross-origin] | 157 | Referrer-Policy: [strict-origin-when-cross-origin] |
164 | Transfer-Encoding: [chunked] | 158 | Transfer-Encoding: [chunked] |
165 | Vary: ['Accept-Encoding, Origin'] | 159 | Vary: ['Accept-Encoding, Origin'] |
@@ -167,10 +161,10 @@ interactions: | |||
167 | X-Download-Options: [noopen] | 161 | X-Download-Options: [noopen] |
168 | X-Frame-Options: [SAMEORIGIN] | 162 | X-Frame-Options: [SAMEORIGIN] |
169 | X-Permitted-Cross-Domain-Policies: [none] | 163 | X-Permitted-Cross-Domain-Policies: [none] |
170 | X-Request-Id: [456bfb9f-0479-4f97-ae23-7244fc9c3eff] | 164 | X-Request-Id: [5a54baa4-0c28-4b1c-8009-6c02c130cdba] |
171 | X-Runtime: ['0.023413'] | 165 | X-Runtime: ['0.035559'] |
172 | X-XSS-Protection: [1; mode=block] | 166 | X-XSS-Protection: [1; mode=block] |
173 | content-length: ['357'] | 167 | content-length: ['115'] |
174 | status: {code: 200, message: OK} | 168 | status: {code: 200, message: OK} |
175 | - request: | 169 | - request: |
176 | body: null | 170 | body: null |
@@ -181,13 +175,12 @@ interactions: | |||
181 | Connection: [keep-alive] | 175 | Connection: [keep-alive] |
182 | User-Agent: [python-requests/2.18.4] | 176 | User-Agent: [python-requests/2.18.4] |
183 | method: GET | 177 | method: GET |
184 | uri: http://localhost:3000/api/v1/filters/20 | 178 | uri: http://localhost:3000/api/v1/filters/2 |
185 | response: | 179 | response: |
186 | body: {string: '{"id":"20","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'} | 180 | body: {string: '{"id":"2","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'} |
187 | headers: | 181 | headers: |
188 | Cache-Control: ['max-age=0, private, must-revalidate'] | 182 | Cache-Control: ['no-cache, no-store'] |
189 | Content-Type: [application/json; charset=utf-8] | 183 | Content-Type: [application/json; charset=utf-8] |
190 | ETag: [W/"85faeffd5444fd99f8aec00f2897d6e1"] | ||
191 | Referrer-Policy: [strict-origin-when-cross-origin] | 184 | Referrer-Policy: [strict-origin-when-cross-origin] |
192 | Transfer-Encoding: [chunked] | 185 | Transfer-Encoding: [chunked] |
193 | Vary: ['Accept-Encoding, Origin'] | 186 | Vary: ['Accept-Encoding, Origin'] |
@@ -195,10 +188,10 @@ interactions: | |||
195 | X-Download-Options: [noopen] | 188 | X-Download-Options: [noopen] |
196 | X-Frame-Options: [SAMEORIGIN] | 189 | X-Frame-Options: [SAMEORIGIN] |
197 | X-Permitted-Cross-Domain-Policies: [none] | 190 | X-Permitted-Cross-Domain-Policies: [none] |
198 | X-Request-Id: [013c4daa-f1cc-47e9-a6f8-7b106367aa23] | 191 | X-Request-Id: [161ca06a-8c49-4f40-b92e-791430951586] |
199 | X-Runtime: ['0.023936'] | 192 | X-Runtime: ['0.032881'] |
200 | X-XSS-Protection: [1; mode=block] | 193 | X-XSS-Protection: [1; mode=block] |
201 | content-length: ['114'] | 194 | content-length: ['113'] |
202 | status: {code: 200, message: OK} | 195 | status: {code: 200, message: OK} |
203 | - request: | 196 | - request: |
204 | body: null | 197 | body: null |
@@ -210,13 +203,12 @@ interactions: | |||
210 | Content-Length: ['0'] | 203 | Content-Length: ['0'] |
211 | User-Agent: [python-requests/2.18.4] | 204 | User-Agent: [python-requests/2.18.4] |
212 | method: DELETE | 205 | method: DELETE |
213 | uri: http://localhost:3000/api/v1/filters/20 | 206 | uri: http://localhost:3000/api/v1/filters/2 |
214 | response: | 207 | response: |
215 | body: {string: '{}'} | 208 | body: {string: '{}'} |
216 | headers: | 209 | headers: |
217 | Cache-Control: ['max-age=0, private, must-revalidate'] | 210 | Cache-Control: ['no-cache, no-store'] |
218 | Content-Type: [application/json; charset=utf-8] | 211 | Content-Type: [application/json; charset=utf-8] |
219 | ETag: [W/"c6a41189c705fc6216f062c783b83fd0"] | ||
220 | Referrer-Policy: [strict-origin-when-cross-origin] | 212 | Referrer-Policy: [strict-origin-when-cross-origin] |
221 | Transfer-Encoding: [chunked] | 213 | Transfer-Encoding: [chunked] |
222 | Vary: ['Accept-Encoding, Origin'] | 214 | Vary: ['Accept-Encoding, Origin'] |
@@ -224,8 +216,8 @@ interactions: | |||
224 | X-Download-Options: [noopen] | 216 | X-Download-Options: [noopen] |
225 | X-Frame-Options: [SAMEORIGIN] | 217 | X-Frame-Options: [SAMEORIGIN] |
226 | X-Permitted-Cross-Domain-Policies: [none] | 218 | X-Permitted-Cross-Domain-Policies: [none] |
227 | X-Request-Id: [56b15d57-239b-4c2c-987c-95e0d183bb75] | 219 | X-Request-Id: [d15537bb-b442-45ac-a80e-2c671be102c4] |
228 | X-Runtime: ['0.023065'] | 220 | X-Runtime: ['0.042867'] |
229 | X-XSS-Protection: [1; mode=block] | 221 | X-XSS-Protection: [1; mode=block] |
230 | content-length: ['2'] | 222 | content-length: ['2'] |
231 | status: {code: 200, message: OK} | 223 | status: {code: 200, message: OK} |