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/test_list_create.yaml
parent33d1e17e2e75884abd6e0a8a3e4a4da388e97e55 (diff)
downloadmastodon.py-3277ca777821e76955fb26d80788939a311db9db.tar.gz
Initial test fixing pass. Four tests still fail.
Diffstat (limited to 'tests/cassettes/test_list_create.yaml')
-rw-r--r--tests/cassettes/test_list_create.yaml222
1 files changed, 159 insertions, 63 deletions
diff --git a/tests/cassettes/test_list_create.yaml b/tests/cassettes/test_list_create.yaml
index a3bc613..9bd264b 100644
--- a/tests/cassettes/test_list_create.yaml
+++ b/tests/cassettes/test_list_create.yaml
@@ -2,85 +2,181 @@ interactions:
2- request: 2- request:
3 body: title=ham+burglars 3 body: title=ham+burglars
4 headers: 4 headers:
5 Accept: ['*/*'] 5 Accept:
6 Accept-Encoding: ['gzip, deflate'] 6 - '*/*'
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 7 Accept-Encoding:
8 Connection: [keep-alive] 8 - gzip, deflate
9 Content-Length: ['18'] 9 Authorization:
10 Content-Type: [application/x-www-form-urlencoded] 10 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
11 User-Agent: [python-requests/2.18.4] 11 Connection:
12 - keep-alive
13 Content-Length:
14 - '18'
15 Content-Type:
16 - application/x-www-form-urlencoded
17 User-Agent:
18 - tests/v311
12 method: POST 19 method: POST
13 uri: http://localhost:3000/api/v1/lists 20 uri: http://localhost:3000/api/v1/lists
14 response: 21 response:
15 body: {string: '{"id":"1","title":"ham burglars"}'} 22 body:
23 string: '{"id":"1","title":"ham burglars","replies_policy":"list"}'
16 headers: 24 headers:
17 Cache-Control: ['no-cache, no-store'] 25 Cache-Control:
18 Content-Type: [application/json; charset=utf-8] 26 - no-store
19 Referrer-Policy: [strict-origin-when-cross-origin] 27 Content-Security-Policy:
20 Transfer-Encoding: [chunked] 28 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
21 Vary: ['Accept-Encoding, Origin'] 29 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
22 X-Content-Type-Options: [nosniff] 30 style-src ''self'' http://localhost:3000 ''nonce-C2+BNRytt3hqukbU269D+A=='';
23 X-Download-Options: [noopen] 31 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
24 X-Frame-Options: [SAMEORIGIN] 32 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
25 X-Permitted-Cross-Domain-Policies: [none] 33 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
26 X-Request-Id: [b1f49da3-1f01-439c-81f1-5267477393bc] 34 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
27 X-Runtime: ['0.075889'] 35 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
28 X-XSS-Protection: [1; mode=block] 36 worker-src ''self'' blob: http://localhost:3000'
29 content-length: ['33'] 37 Content-Type:
30 status: {code: 200, message: OK} 38 - application/json; charset=utf-8
39 ETag:
40 - W/"1429907b6900186b934b037f409112f1"
41 Referrer-Policy:
42 - strict-origin-when-cross-origin
43 Transfer-Encoding:
44 - chunked
45 Vary:
46 - Accept, Origin
47 X-Content-Type-Options:
48 - nosniff
49 X-Download-Options:
50 - noopen
51 X-Frame-Options:
52 - SAMEORIGIN
53 X-Permitted-Cross-Domain-Policies:
54 - none
55 X-Request-Id:
56 - 79270415-cecb-49dd-82ba-a533da985356
57 X-Runtime:
58 - '0.018424'
59 X-XSS-Protection:
60 - 1; mode=block
61 status:
62 code: 200
63 message: OK
31- request: 64- request:
32 body: null 65 body: null
33 headers: 66 headers:
34 Accept: ['*/*'] 67 Accept:
35 Accept-Encoding: ['gzip, deflate'] 68 - '*/*'
36 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 69 Accept-Encoding:
37 Connection: [keep-alive] 70 - gzip, deflate
38 User-Agent: [python-requests/2.18.4] 71 Authorization:
72 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
73 Connection:
74 - keep-alive
75 User-Agent:
76 - tests/v311
39 method: GET 77 method: GET
40 uri: http://localhost:3000/api/v1/lists 78 uri: http://localhost:3000/api/v1/lists
41 response: 79 response:
42 body: {string: '[{"id":"1","title":"ham burglars"}]'} 80 body:
81 string: '[{"id":"1","title":"ham burglars","replies_policy":"list"}]'
43 headers: 82 headers:
44 Cache-Control: ['no-cache, no-store'] 83 Cache-Control:
45 Content-Type: [application/json; charset=utf-8] 84 - no-store
46 Referrer-Policy: [strict-origin-when-cross-origin] 85 Content-Security-Policy:
47 Transfer-Encoding: [chunked] 86 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
48 Vary: ['Accept-Encoding, Origin'] 87 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
49 X-Content-Type-Options: [nosniff] 88 style-src ''self'' http://localhost:3000 ''nonce-G2I7xY6A+9ncT7wx5rjDIA=='';
50 X-Download-Options: [noopen] 89 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
51 X-Frame-Options: [SAMEORIGIN] 90 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
52 X-Permitted-Cross-Domain-Policies: [none] 91 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
53 X-Request-Id: [83daef6e-07cc-4602-9610-9f72134a211d] 92 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
54 X-Runtime: ['0.029009'] 93 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
55 X-XSS-Protection: [1; mode=block] 94 worker-src ''self'' blob: http://localhost:3000'
56 content-length: ['35'] 95 Content-Type:
57 status: {code: 200, message: OK} 96 - application/json; charset=utf-8
97 ETag:
98 - W/"472a179790f6eb124e087ea973a3174b"
99 Referrer-Policy:
100 - strict-origin-when-cross-origin
101 Transfer-Encoding:
102 - chunked
103 Vary:
104 - Accept, Origin
105 X-Content-Type-Options:
106 - nosniff
107 X-Download-Options:
108 - noopen
109 X-Frame-Options:
110 - SAMEORIGIN
111 X-Permitted-Cross-Domain-Policies:
112 - none
113 X-Request-Id:
114 - a4a702f4-a096-44e0-b89c-5f25c1ca39b2
115 X-Runtime:
116 - '0.007403'
117 X-XSS-Protection:
118 - 1; mode=block
119 status:
120 code: 200
121 message: OK
58- request: 122- request:
59 body: null 123 body: null
60 headers: 124 headers:
61 Accept: ['*/*'] 125 Accept:
62 Accept-Encoding: ['gzip, deflate'] 126 - '*/*'
63 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 127 Accept-Encoding:
64 Connection: [keep-alive] 128 - gzip, deflate
65 Content-Length: ['0'] 129 Authorization:
66 User-Agent: [python-requests/2.18.4] 130 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
131 Connection:
132 - keep-alive
133 Content-Length:
134 - '0'
135 User-Agent:
136 - tests/v311
67 method: DELETE 137 method: DELETE
68 uri: http://localhost:3000/api/v1/lists/1 138 uri: http://localhost:3000/api/v1/lists/1
69 response: 139 response:
70 body: {string: '{}'} 140 body:
141 string: '{}'
71 headers: 142 headers:
72 Cache-Control: ['no-cache, no-store'] 143 Cache-Control:
73 Content-Type: [application/json; charset=utf-8] 144 - no-store
74 Referrer-Policy: [strict-origin-when-cross-origin] 145 Content-Security-Policy:
75 Transfer-Encoding: [chunked] 146 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
76 Vary: ['Accept-Encoding, Origin'] 147 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
77 X-Content-Type-Options: [nosniff] 148 style-src ''self'' http://localhost:3000 ''nonce-VxveUIad1T0VZH6GUWQPJg=='';
78 X-Download-Options: [noopen] 149 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
79 X-Frame-Options: [SAMEORIGIN] 150 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
80 X-Permitted-Cross-Domain-Policies: [none] 151 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
81 X-Request-Id: [ceb08c50-f6bc-4499-b8bd-2037fd43a9de] 152 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
82 X-Runtime: ['0.078983'] 153 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
83 X-XSS-Protection: [1; mode=block] 154 worker-src ''self'' blob: http://localhost:3000'
84 content-length: ['2'] 155 Content-Type:
85 status: {code: 200, message: OK} 156 - application/json; charset=utf-8
157 ETag:
158 - W/"44136fa355b3678a1146ad16f7e8649e"
159 Referrer-Policy:
160 - strict-origin-when-cross-origin
161 Transfer-Encoding:
162 - chunked
163 Vary:
164 - Accept, Origin
165 X-Content-Type-Options:
166 - nosniff
167 X-Download-Options:
168 - noopen
169 X-Frame-Options:
170 - SAMEORIGIN
171 X-Permitted-Cross-Domain-Policies:
172 - none
173 X-Request-Id:
174 - 1e1555ca-3ebc-4863-8cfa-b002d106bd03
175 X-Runtime:
176 - '0.013738'
177 X-XSS-Protection:
178 - 1; mode=block
179 status:
180 code: 200
181 message: OK
86version: 1 182version: 1
Powered by cgit v1.2.3 (git 2.41.0)