aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-07-30 20:25:25 +0200
committerLorenz Diener <[email protected]>2018-07-30 20:25:25 +0200
commit087fb249dad981be4dfbfea13a842bfcc1cd8fd7 (patch)
tree5226e6a544353fedac0c8ae133188a7d9d510f8a /tests/cassettes/test_list_by_account.yaml
parent8feed51075af332c45e6aacd106550eff2233675 (diff)
downloadmastodon.py-087fb249dad981be4dfbfea13a842bfcc1cd8fd7.tar.gz
Fix tests
Diffstat (limited to 'tests/cassettes/test_list_by_account.yaml')
-rw-r--r--tests/cassettes/test_list_by_account.yaml67
1 files changed, 34 insertions, 33 deletions
diff --git a/tests/cassettes/test_list_by_account.yaml b/tests/cassettes/test_list_by_account.yaml
index 6340e83..d74accb 100644
--- a/tests/cassettes/test_list_by_account.yaml
+++ b/tests/cassettes/test_list_by_account.yaml
@@ -12,11 +12,11 @@ interactions:
12 method: POST 12 method: POST
13 uri: http://localhost:3000/api/v1/lists 13 uri: http://localhost:3000/api/v1/lists
14 response: 14 response:
15 body: {string: '{"id":"9","title":"ham burglars"}'} 15 body: {string: '{"id":"12","title":"ham burglars"}'}
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/"0cfb62ec28516f1f944d1edde5fbaa35"] 19 ETag: [W/"9d25791829ea38f2ad58d7f62532e947"]
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: [e1f21d90-93e8-4014-bf33-a7cdc349e9aa] 27 X-Request-Id: [e66b2030-01e8-4ebf-9674-73adf96695df]
28 X-Runtime: ['0.021446'] 28 X-Runtime: ['0.043475']
29 X-XSS-Protection: [1; mode=block] 29 X-XSS-Protection: [1; mode=block]
30 content-length: ['33'] 30 content-length: ['34']
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/accounts/verify_credentials 41 uri: http://localhost:3000/api/v1/accounts/verify_credentials
42 response: 42 response:
43 body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":5,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'} 43 body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":67,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'}
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/"2c1db1f5c9c342772002bf0d4ff450ec"] 47 ETag: [W/"5211bab11227593f32fe99dfc5c25984"]
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,28 +52,29 @@ 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: [0047cb29-9a8b-472b-b820-b82e628d36c0] 55 X-Request-Id: [0ded0bcc-1c0d-447a-8f61-ed7192620979]
56 X-Runtime: ['0.017867'] 56 X-Runtime: ['0.277921']
57 X-XSS-Protection: [1; mode=block] 57 X-XSS-Protection: [1; mode=block]
58 content-length: ['634'] 58 content-length: ['635']
59 status: {code: 200, message: OK} 59 status: {code: 200, message: OK}
60- request: 60- request:
61 body: null 61 body: reblogs=True&id=1
62 headers: 62 headers:
63 Accept: ['*/*'] 63 Accept: ['*/*']
64 Accept-Encoding: ['gzip, deflate'] 64 Accept-Encoding: ['gzip, deflate']
65 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 65 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
66 Connection: [keep-alive] 66 Connection: [keep-alive]
67 Content-Length: ['0'] 67 Content-Length: ['17']
68 Content-Type: [application/x-www-form-urlencoded]
68 User-Agent: [python-requests/2.18.4] 69 User-Agent: [python-requests/2.18.4]
69 method: POST 70 method: POST
70 uri: http://localhost:3000/api/v1/accounts/1/follow 71 uri: http://localhost:3000/api/v1/accounts/1/follow
71 response: 72 response:
72 body: {string: '{"id":"1","following":true,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'} 73 body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'}
73 headers: 74 headers:
74 Cache-Control: ['max-age=0, private, must-revalidate'] 75 Cache-Control: ['max-age=0, private, must-revalidate']
75 Content-Type: [application/json; charset=utf-8] 76 Content-Type: [application/json; charset=utf-8]
76 ETag: [W/"d0a82968c8f9aeedda238946aae1989a"] 77 ETag: [W/"104706c5d5a5d4d87780cdec31e76836"]
77 Referrer-Policy: [strict-origin-when-cross-origin] 78 Referrer-Policy: [strict-origin-when-cross-origin]
78 Transfer-Encoding: [chunked] 79 Transfer-Encoding: [chunked]
79 Vary: ['Accept-Encoding, Origin'] 80 Vary: ['Accept-Encoding, Origin']
@@ -81,10 +82,10 @@ interactions:
81 X-Download-Options: [noopen] 82 X-Download-Options: [noopen]
82 X-Frame-Options: [SAMEORIGIN] 83 X-Frame-Options: [SAMEORIGIN]
83 X-Permitted-Cross-Domain-Policies: [none] 84 X-Permitted-Cross-Domain-Policies: [none]
84 X-Request-Id: [76639bf0-e7fe-4c88-8bc9-e0c7de46e577] 85 X-Request-Id: [4dbf24ce-460a-4457-b3a5-62dd116f7ca9]
85 X-Runtime: ['0.072864'] 86 X-Runtime: ['0.078180']
86 X-XSS-Protection: [1; mode=block] 87 X-XSS-Protection: [1; mode=block]
87 content-length: ['174'] 88 content-length: ['173']
88 status: {code: 200, message: OK} 89 status: {code: 200, message: OK}
89- request: 90- request:
90 body: account_ids%5B%5D=1 91 body: account_ids%5B%5D=1
@@ -97,13 +98,13 @@ interactions:
97 Content-Type: [application/x-www-form-urlencoded] 98 Content-Type: [application/x-www-form-urlencoded]
98 User-Agent: [python-requests/2.18.4] 99 User-Agent: [python-requests/2.18.4]
99 method: POST 100 method: POST
100 uri: http://localhost:3000/api/v1/lists/9/accounts 101 uri: http://localhost:3000/api/v1/lists/12/accounts
101 response: 102 response:
102 body: {string: '{}'} 103 body: {string: '{}'}
103 headers: 104 headers:
104 Cache-Control: ['max-age=0, private, must-revalidate'] 105 Cache-Control: ['max-age=0, private, must-revalidate']
105 Content-Type: [application/json; charset=utf-8] 106 Content-Type: [application/json; charset=utf-8]
106 ETag: [W/"f39c5a269dd640bacf5a55db8d2d3e90"] 107 ETag: [W/"0cdb2e7c6eb5550ff52103826ed9e2cd"]
107 Referrer-Policy: [strict-origin-when-cross-origin] 108 Referrer-Policy: [strict-origin-when-cross-origin]
108 Transfer-Encoding: [chunked] 109 Transfer-Encoding: [chunked]
109 Vary: ['Accept-Encoding, Origin'] 110 Vary: ['Accept-Encoding, Origin']
@@ -111,8 +112,8 @@ interactions:
111 X-Download-Options: [noopen] 112 X-Download-Options: [noopen]
112 X-Frame-Options: [SAMEORIGIN] 113 X-Frame-Options: [SAMEORIGIN]
113 X-Permitted-Cross-Domain-Policies: [none] 114 X-Permitted-Cross-Domain-Policies: [none]
114 X-Request-Id: [f3b0ce92-006d-410e-8d01-f0f93cc7443b] 115 X-Request-Id: [66b91f80-7290-4b31-9318-8f2b129b2be7]
115 X-Runtime: ['0.048021'] 116 X-Runtime: ['0.058322']
116 X-XSS-Protection: [1; mode=block] 117 X-XSS-Protection: [1; mode=block]
117 content-length: ['2'] 118 content-length: ['2']
118 status: {code: 200, message: OK} 119 status: {code: 200, message: OK}
@@ -127,11 +128,11 @@ interactions:
127 method: GET 128 method: GET
128 uri: http://localhost:3000/api/v1/accounts/1/lists 129 uri: http://localhost:3000/api/v1/accounts/1/lists
129 response: 130 response:
130 body: {string: '[{"id":"9","title":"ham burglars"}]'} 131 body: {string: '[{"id":"12","title":"ham burglars"}]'}
131 headers: 132 headers:
132 Cache-Control: ['max-age=0, private, must-revalidate'] 133 Cache-Control: ['max-age=0, private, must-revalidate']
133 Content-Type: [application/json; charset=utf-8] 134 Content-Type: [application/json; charset=utf-8]
134 ETag: [W/"a2969b9e5d7329b172f845038528a9f8"] 135 ETag: [W/"403cd5e122640c4a0e94ec6f21466511"]
135 Referrer-Policy: [strict-origin-when-cross-origin] 136 Referrer-Policy: [strict-origin-when-cross-origin]
136 Transfer-Encoding: [chunked] 137 Transfer-Encoding: [chunked]
137 Vary: ['Accept-Encoding, Origin'] 138 Vary: ['Accept-Encoding, Origin']
@@ -139,10 +140,10 @@ interactions:
139 X-Download-Options: [noopen] 140 X-Download-Options: [noopen]
140 X-Frame-Options: [SAMEORIGIN] 141 X-Frame-Options: [SAMEORIGIN]
141 X-Permitted-Cross-Domain-Policies: [none] 142 X-Permitted-Cross-Domain-Policies: [none]
142 X-Request-Id: [591c3ebd-0fa5-4efb-aa0a-b3ccf251c4ef] 143 X-Request-Id: [0e41c009-30b7-4135-91bb-3f745842a841]
143 X-Runtime: ['0.027378'] 144 X-Runtime: ['0.062819']
144 X-XSS-Protection: [1; mode=block] 145 X-XSS-Protection: [1; mode=block]
145 content-length: ['35'] 146 content-length: ['36']
146 status: {code: 200, message: OK} 147 status: {code: 200, message: OK}
147- request: 148- request:
148 body: null 149 body: null
@@ -160,7 +161,7 @@ interactions:
160 headers: 161 headers:
161 Cache-Control: ['max-age=0, private, must-revalidate'] 162 Cache-Control: ['max-age=0, private, must-revalidate']
162 Content-Type: [application/json; charset=utf-8] 163 Content-Type: [application/json; charset=utf-8]
163 ETag: [W/"78d855ca7c8355ade68a375107a29ae3"] 164 ETag: [W/"8f29f445514fac6569926c516a323b44"]
164 Referrer-Policy: [strict-origin-when-cross-origin] 165 Referrer-Policy: [strict-origin-when-cross-origin]
165 Transfer-Encoding: [chunked] 166 Transfer-Encoding: [chunked]
166 Vary: ['Accept-Encoding, Origin'] 167 Vary: ['Accept-Encoding, Origin']
@@ -168,8 +169,8 @@ interactions:
168 X-Download-Options: [noopen] 169 X-Download-Options: [noopen]
169 X-Frame-Options: [SAMEORIGIN] 170 X-Frame-Options: [SAMEORIGIN]
170 X-Permitted-Cross-Domain-Policies: [none] 171 X-Permitted-Cross-Domain-Policies: [none]
171 X-Request-Id: [227aee7e-4f8d-4dec-9e27-813b9870fe39] 172 X-Request-Id: [528732f0-22b6-4e38-add7-c40b233f1616]
172 X-Runtime: ['0.042813'] 173 X-Runtime: ['0.085867']
173 X-XSS-Protection: [1; mode=block] 174 X-XSS-Protection: [1; mode=block]
174 content-length: ['175'] 175 content-length: ['175']
175 status: {code: 200, message: OK} 176 status: {code: 200, message: OK}
@@ -183,13 +184,13 @@ interactions:
183 Content-Length: ['0'] 184 Content-Length: ['0']
184 User-Agent: [python-requests/2.18.4] 185 User-Agent: [python-requests/2.18.4]
185 method: DELETE 186 method: DELETE
186 uri: http://localhost:3000/api/v1/lists/9 187 uri: http://localhost:3000/api/v1/lists/12
187 response: 188 response:
188 body: {string: '{}'} 189 body: {string: '{}'}
189 headers: 190 headers:
190 Cache-Control: ['max-age=0, private, must-revalidate'] 191 Cache-Control: ['max-age=0, private, must-revalidate']
191 Content-Type: [application/json; charset=utf-8] 192 Content-Type: [application/json; charset=utf-8]
192 ETag: [W/"f39c5a269dd640bacf5a55db8d2d3e90"] 193 ETag: [W/"ffab38e79475e4159e128e2821989fd2"]
193 Referrer-Policy: [strict-origin-when-cross-origin] 194 Referrer-Policy: [strict-origin-when-cross-origin]
194 Transfer-Encoding: [chunked] 195 Transfer-Encoding: [chunked]
195 Vary: ['Accept-Encoding, Origin'] 196 Vary: ['Accept-Encoding, Origin']
@@ -197,8 +198,8 @@ interactions:
197 X-Download-Options: [noopen] 198 X-Download-Options: [noopen]
198 X-Frame-Options: [SAMEORIGIN] 199 X-Frame-Options: [SAMEORIGIN]
199 X-Permitted-Cross-Domain-Policies: [none] 200 X-Permitted-Cross-Domain-Policies: [none]
200 X-Request-Id: [76ebc393-c790-40fd-abb3-dcd7d35e351e] 201 X-Request-Id: [30abb974-4601-4cd7-9587-aba15accc618]
201 X-Runtime: ['0.047284'] 202 X-Runtime: ['0.056331']
202 X-XSS-Protection: [1; mode=block] 203 X-XSS-Protection: [1; mode=block]
203 content-length: ['2'] 204 content-length: ['2']
204 status: {code: 200, message: OK} 205 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)