aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_list_by_account.yaml')
-rw-r--r--tests/cassettes/test_list_by_account.yaml184
1 files changed, 184 insertions, 0 deletions
diff --git a/tests/cassettes/test_list_by_account.yaml b/tests/cassettes/test_list_by_account.yaml
new file mode 100644
index 0000000..d07bfb7
--- /dev/null
+++ b/tests/cassettes/test_list_by_account.yaml
@@ -0,0 +1,184 @@
1interactions:
2- request:
3 body: title=ham+burglars
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
8 Connection: [keep-alive]
9 Content-Length: ['18']
10 Content-Type: [application/x-www-form-urlencoded]
11 User-Agent: [python-requests/2.9.1]
12 method: POST
13 uri: http://localhost:3000/api/v1/lists
14 response:
15 body: {string: '{"id":"24","title":"ham burglars"}'}
16 headers:
17 Cache-Control: ['max-age=0, private, must-revalidate']
18 Content-Type: [application/json; charset=utf-8]
19 ETag: [W/"be955eaf8be280515d5ba0ba9ecb1a50"]
20 Transfer-Encoding: [chunked]
21 Vary: ['Accept-Encoding, Origin']
22 X-Content-Type-Options: [nosniff]
23 X-Frame-Options: [SAMEORIGIN]
24 X-Request-Id: [672adb20-033a-4630-82f4-4646ce737155]
25 X-Runtime: ['0.055324']
26 X-XSS-Protection: [1; mode=block]
27 content-length: ['34']
28 status: {code: 200, message: OK}
29- request:
30 body: null
31 headers:
32 Accept: ['*/*']
33 Accept-Encoding: ['gzip, deflate']
34 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
35 Connection: [keep-alive]
36 User-Agent: [python-requests/2.9.1]
37 method: GET
38 uri: http://localhost:3000/api/v1/accounts/verify_credentials
39 response:
40 body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-04-17T21:40:55.626Z","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":51,"source":{"privacy":"public","sensitive":false,"note":""}}'}
41 headers:
42 Cache-Control: ['max-age=0, private, must-revalidate']
43 Content-Type: [application/json; charset=utf-8]
44 ETag: [W/"691f6bd96e64ff4fe001604d8861d949"]
45 Transfer-Encoding: [chunked]
46 Vary: ['Accept-Encoding, Origin']
47 X-Content-Type-Options: [nosniff]
48 X-Frame-Options: [SAMEORIGIN]
49 X-Request-Id: [d9788143-6fa1-4353-ab46-a4a157265615]
50 X-Runtime: ['0.059023']
51 X-XSS-Protection: [1; mode=block]
52 content-length: ['571']
53 status: {code: 200, message: OK}
54- request:
55 body: null
56 headers:
57 Accept: ['*/*']
58 Accept-Encoding: ['gzip, deflate']
59 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
60 Connection: [keep-alive]
61 Content-Length: ['0']
62 User-Agent: [python-requests/2.9.1]
63 method: POST
64 uri: http://localhost:3000/api/v1/accounts/1/follow
65 response:
66 body: {string: '{"id":"1","following":true,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'}
67 headers:
68 Cache-Control: ['max-age=0, private, must-revalidate']
69 Content-Type: [application/json; charset=utf-8]
70 ETag: [W/"f91b05337597468badfd19f87dd3fe7d"]
71 Transfer-Encoding: [chunked]
72 Vary: ['Accept-Encoding, Origin']
73 X-Content-Type-Options: [nosniff]
74 X-Frame-Options: [SAMEORIGIN]
75 X-Request-Id: [3d70f64d-6d49-403e-b666-a266faa93132]
76 X-Runtime: ['0.107833']
77 X-XSS-Protection: [1; mode=block]
78 content-length: ['174']
79 status: {code: 200, message: OK}
80- request:
81 body: account_ids%5B%5D=1
82 headers:
83 Accept: ['*/*']
84 Accept-Encoding: ['gzip, deflate']
85 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
86 Connection: [keep-alive]
87 Content-Length: ['19']
88 Content-Type: [application/x-www-form-urlencoded]
89 User-Agent: [python-requests/2.9.1]
90 method: POST
91 uri: http://localhost:3000/api/v1/lists/24/accounts
92 response:
93 body: {string: '{}'}
94 headers:
95 Cache-Control: ['max-age=0, private, must-revalidate']
96 Content-Type: [application/json; charset=utf-8]
97 ETag: [W/"7d75201dffe84268b8e3844d4dc96e56"]
98 Transfer-Encoding: [chunked]
99 Vary: ['Accept-Encoding, Origin']
100 X-Content-Type-Options: [nosniff]
101 X-Frame-Options: [SAMEORIGIN]
102 X-Request-Id: [75a29c9f-5126-4cb7-b446-b8cbc7800408]
103 X-Runtime: ['0.069586']
104 X-XSS-Protection: [1; mode=block]
105 content-length: ['2']
106 status: {code: 200, message: OK}
107- request:
108 body: null
109 headers:
110 Accept: ['*/*']
111 Accept-Encoding: ['gzip, deflate']
112 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
113 Connection: [keep-alive]
114 User-Agent: [python-requests/2.9.1]
115 method: GET
116 uri: http://localhost:3000/api/v1/accounts/1/lists
117 response:
118 body: {string: '[{"id":"24","title":"ham burglars"}]'}
119 headers:
120 Cache-Control: ['max-age=0, private, must-revalidate']
121 Content-Type: [application/json; charset=utf-8]
122 ETag: [W/"47f8168c1f7a8f3d8ff54544f88564d8"]
123 Transfer-Encoding: [chunked]
124 Vary: ['Accept-Encoding, Origin']
125 X-Content-Type-Options: [nosniff]
126 X-Frame-Options: [SAMEORIGIN]
127 X-Request-Id: [afb958a3-8002-4cc1-abbf-907d69032264]
128 X-Runtime: ['0.040643']
129 X-XSS-Protection: [1; mode=block]
130 content-length: ['36']
131 status: {code: 200, message: OK}
132- request:
133 body: null
134 headers:
135 Accept: ['*/*']
136 Accept-Encoding: ['gzip, deflate']
137 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
138 Connection: [keep-alive]
139 Content-Length: ['0']
140 User-Agent: [python-requests/2.9.1]
141 method: POST
142 uri: http://localhost:3000/api/v1/accounts/1/unfollow
143 response:
144 body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'}
145 headers:
146 Cache-Control: ['max-age=0, private, must-revalidate']
147 Content-Type: [application/json; charset=utf-8]
148 ETag: [W/"b2c35ec6363918f9324f60b9ce18ad00"]
149 Transfer-Encoding: [chunked]
150 Vary: ['Accept-Encoding, Origin']
151 X-Content-Type-Options: [nosniff]
152 X-Frame-Options: [SAMEORIGIN]
153 X-Request-Id: [0d09fa82-d5b4-440c-b5aa-4f995cbd452a]
154 X-Runtime: ['0.097106']
155 X-XSS-Protection: [1; mode=block]
156 content-length: ['175']
157 status: {code: 200, message: OK}
158- request:
159 body: null
160 headers:
161 Accept: ['*/*']
162 Accept-Encoding: ['gzip, deflate']
163 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
164 Connection: [keep-alive]
165 Content-Length: ['0']
166 User-Agent: [python-requests/2.9.1]
167 method: DELETE
168 uri: http://localhost:3000/api/v1/lists/24
169 response:
170 body: {string: '{}'}
171 headers:
172 Cache-Control: ['max-age=0, private, must-revalidate']
173 Content-Type: [application/json; charset=utf-8]
174 ETag: [W/"7d75201dffe84268b8e3844d4dc96e56"]
175 Transfer-Encoding: [chunked]
176 Vary: ['Accept-Encoding, Origin']
177 X-Content-Type-Options: [nosniff]
178 X-Frame-Options: [SAMEORIGIN]
179 X-Request-Id: [5918aefb-8fa2-465f-b513-5ef9f4036a88]
180 X-Runtime: ['0.063303']
181 X-XSS-Protection: [1; mode=block]
182 content-length: ['2']
183 status: {code: 200, message: OK}
184version: 1
Powered by cgit v1.2.3 (git 2.41.0)