aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_account_search.yaml')
-rw-r--r--tests/cassettes/test_account_search.yaml152
1 files changed, 147 insertions, 5 deletions
diff --git a/tests/cassettes/test_account_search.yaml b/tests/cassettes/test_account_search.yaml
index 0ed2baa..78f20e8 100644
--- a/tests/cassettes/test_account_search.yaml
+++ b/tests/cassettes/test_account_search.yaml
@@ -6,15 +6,129 @@ interactions:
6 Accept-Encoding: ['gzip, deflate'] 6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
8 Connection: [keep-alive] 8 Connection: [keep-alive]
9 User-Agent: [python-requests/2.9.1] 9 User-Agent: [python-requests/2.18.4]
10 method: GET 10 method: GET
11 uri: http://localhost:3000/api/v1/accounts/search?q=admin&following=False 11 uri: http://localhost:3000/api/v1/accounts/search?q=admin
12 response:
13 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,"emojis":[],"fields":[]}]'}
14 headers:
15 Cache-Control: ['max-age=0, private, must-revalidate']
16 Content-Type: [application/json; charset=utf-8]
17 ETag: [W/"9ed38f78d86f3323e4d890f7fde996fe"]
18 Referrer-Policy: [strict-origin-when-cross-origin]
19 Transfer-Encoding: [chunked]
20 Vary: ['Accept-Encoding, Origin']
21 X-Content-Type-Options: [nosniff]
22 X-Download-Options: [noopen]
23 X-Frame-Options: [SAMEORIGIN]
24 X-Permitted-Cross-Domain-Policies: [none]
25 X-Request-Id: [7a7d43e4-0b13-4e23-aa34-560855b13366]
26 X-Runtime: ['0.028422']
27 X-XSS-Protection: [1; mode=block]
28 content-length: ['550']
29 status: {code: 200, message: OK}
30- request:
31 body: null
32 headers:
33 Accept: ['*/*']
34 Accept-Encoding: ['gzip, deflate']
35 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
36 Connection: [keep-alive]
37 Content-Length: ['0']
38 User-Agent: [python-requests/2.18.4]
39 method: POST
40 uri: http://localhost:3000/api/v1/accounts/1/follow
41 response:
42 body: {string: '{"id":"1","following":true,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'}
43 headers:
44 Cache-Control: ['max-age=0, private, must-revalidate']
45 Content-Type: [application/json; charset=utf-8]
46 ETag: [W/"2aac633ba6c8db22698d7975d76a2350"]
47 Referrer-Policy: [strict-origin-when-cross-origin]
48 Transfer-Encoding: [chunked]
49 Vary: ['Accept-Encoding, Origin']
50 X-Content-Type-Options: [nosniff]
51 X-Download-Options: [noopen]
52 X-Frame-Options: [SAMEORIGIN]
53 X-Permitted-Cross-Domain-Policies: [none]
54 X-Request-Id: [de297198-591f-4e6e-8515-24f1b7741899]
55 X-Runtime: ['0.062917']
56 X-XSS-Protection: [1; mode=block]
57 content-length: ['174']
58 status: {code: 200, message: OK}
59- request:
60 body: null
61 headers:
62 Accept: ['*/*']
63 Accept-Encoding: ['gzip, deflate']
64 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
65 Connection: [keep-alive]
66 User-Agent: [python-requests/2.18.4]
67 method: GET
68 uri: http://localhost:3000/api/v1/accounts/search?following=True&q=admin
69 response:
70 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":1,"following_count":0,"statuses_count":5,"emojis":[],"fields":[]}]'}
71 headers:
72 Cache-Control: ['max-age=0, private, must-revalidate']
73 Content-Type: [application/json; charset=utf-8]
74 ETag: [W/"6420365b0c00860d2adcedbe18d93c46"]
75 Referrer-Policy: [strict-origin-when-cross-origin]
76 Transfer-Encoding: [chunked]
77 Vary: ['Accept-Encoding, Origin']
78 X-Content-Type-Options: [nosniff]
79 X-Download-Options: [noopen]
80 X-Frame-Options: [SAMEORIGIN]
81 X-Permitted-Cross-Domain-Policies: [none]
82 X-Request-Id: [9c9011c5-cc1b-40a4-9d1b-56f669adc944]
83 X-Runtime: ['0.035517']
84 X-XSS-Protection: [1; mode=block]
85 content-length: ['550']
86 status: {code: 200, message: OK}
87- request:
88 body: null
89 headers:
90 Accept: ['*/*']
91 Accept-Encoding: ['gzip, deflate']
92 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
93 Connection: [keep-alive]
94 Content-Length: ['0']
95 User-Agent: [python-requests/2.18.4]
96 method: POST
97 uri: http://localhost:3000/api/v1/accounts/1/unfollow
98 response:
99 body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'}
100 headers:
101 Cache-Control: ['max-age=0, private, must-revalidate']
102 Content-Type: [application/json; charset=utf-8]
103 ETag: [W/"567fcb76cedd3fab2d295958338f60e1"]
104 Referrer-Policy: [strict-origin-when-cross-origin]
105 Transfer-Encoding: [chunked]
106 Vary: ['Accept-Encoding, Origin']
107 X-Content-Type-Options: [nosniff]
108 X-Download-Options: [noopen]
109 X-Frame-Options: [SAMEORIGIN]
110 X-Permitted-Cross-Domain-Policies: [none]
111 X-Request-Id: [e9a45781-41e5-4184-86b3-bf528fd342df]
112 X-Runtime: ['0.045182']
113 X-XSS-Protection: [1; mode=block]
114 content-length: ['175']
115 status: {code: 200, message: OK}
116- request:
117 body: null
118 headers:
119 Accept: ['*/*']
120 Accept-Encoding: ['gzip, deflate']
121 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
122 Connection: [keep-alive]
123 User-Agent: [python-requests/2.18.4]
124 method: GET
125 uri: http://localhost:3000/api/v1/accounts/search?following=True&q=admin
12 response: 126 response:
13 body: {string: '[]'} 127 body: {string: '[]'}
14 headers: 128 headers:
15 Cache-Control: ['max-age=0, private, must-revalidate'] 129 Cache-Control: ['max-age=0, private, must-revalidate']
16 Content-Type: [application/json; charset=utf-8] 130 Content-Type: [application/json; charset=utf-8]
17 ETag: [W/"e79cf4b296234465ae50e0c0797c57ae"] 131 ETag: [W/"573082b711c5e9cb9dfd1bef03d669a2"]
18 Referrer-Policy: [strict-origin-when-cross-origin] 132 Referrer-Policy: [strict-origin-when-cross-origin]
19 Transfer-Encoding: [chunked] 133 Transfer-Encoding: [chunked]
20 Vary: ['Accept-Encoding, Origin'] 134 Vary: ['Accept-Encoding, Origin']
@@ -22,9 +136,37 @@ interactions:
22 X-Download-Options: [noopen] 136 X-Download-Options: [noopen]
23 X-Frame-Options: [SAMEORIGIN] 137 X-Frame-Options: [SAMEORIGIN]
24 X-Permitted-Cross-Domain-Policies: [none] 138 X-Permitted-Cross-Domain-Policies: [none]
25 X-Request-Id: [d551880e-9635-4861-a81a-1cf2eb6e10cf] 139 X-Request-Id: [1381d7b9-67d0-423c-82c8-91e34f24b010]
26 X-Runtime: ['0.202419'] 140 X-Runtime: ['0.021078']
27 X-XSS-Protection: [1; mode=block] 141 X-XSS-Protection: [1; mode=block]
28 content-length: ['2'] 142 content-length: ['2']
29 status: {code: 200, message: OK} 143 status: {code: 200, message: OK}
144- request:
145 body: null
146 headers:
147 Accept: ['*/*']
148 Accept-Encoding: ['gzip, deflate']
149 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
150 Connection: [keep-alive]
151 User-Agent: [python-requests/2.18.4]
152 method: GET
153 uri: http://localhost:3000/api/v1/accounts/search?q=admin
154 response:
155 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,"emojis":[],"fields":[]}]'}
156 headers:
157 Cache-Control: ['max-age=0, private, must-revalidate']
158 Content-Type: [application/json; charset=utf-8]
159 ETag: [W/"9ed38f78d86f3323e4d890f7fde996fe"]
160 Referrer-Policy: [strict-origin-when-cross-origin]
161 Transfer-Encoding: [chunked]
162 Vary: ['Accept-Encoding, Origin']
163 X-Content-Type-Options: [nosniff]
164 X-Download-Options: [noopen]
165 X-Frame-Options: [SAMEORIGIN]
166 X-Permitted-Cross-Domain-Policies: [none]
167 X-Request-Id: [1dd3604c-c7d2-4938-8569-77c84b69b8b1]
168 X-Runtime: ['0.017571']
169 X-XSS-Protection: [1; mode=block]
170 content-length: ['550']
171 status: {code: 200, message: OK}
30version: 1 172version: 1
Powered by cgit v1.2.3 (git 2.41.0)