aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_account_search.yaml')
-rw-r--r--tests/cassettes/test_account_search.yaml57
1 files changed, 29 insertions, 28 deletions
diff --git a/tests/cassettes/test_account_search.yaml b/tests/cassettes/test_account_search.yaml
index 78f20e8..b8698c5 100644
--- a/tests/cassettes/test_account_search.yaml
+++ b/tests/cassettes/test_account_search.yaml
@@ -10,11 +10,11 @@ interactions:
10 method: GET 10 method: GET
11 uri: http://localhost:3000/api/v1/accounts/search?q=admin 11 uri: http://localhost:3000/api/v1/accounts/search?q=admin
12 response: 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":[]}]'} 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":67,"emojis":[],"fields":[]}]'}
14 headers: 14 headers:
15 Cache-Control: ['max-age=0, private, must-revalidate'] 15 Cache-Control: ['max-age=0, private, must-revalidate']
16 Content-Type: [application/json; charset=utf-8] 16 Content-Type: [application/json; charset=utf-8]
17 ETag: [W/"9ed38f78d86f3323e4d890f7fde996fe"] 17 ETag: [W/"db85ef2b54ebcf74ab2a62a3611b32f9"]
18 Referrer-Policy: [strict-origin-when-cross-origin] 18 Referrer-Policy: [strict-origin-when-cross-origin]
19 Transfer-Encoding: [chunked] 19 Transfer-Encoding: [chunked]
20 Vary: ['Accept-Encoding, Origin'] 20 Vary: ['Accept-Encoding, Origin']
@@ -22,28 +22,29 @@ interactions:
22 X-Download-Options: [noopen] 22 X-Download-Options: [noopen]
23 X-Frame-Options: [SAMEORIGIN] 23 X-Frame-Options: [SAMEORIGIN]
24 X-Permitted-Cross-Domain-Policies: [none] 24 X-Permitted-Cross-Domain-Policies: [none]
25 X-Request-Id: [7a7d43e4-0b13-4e23-aa34-560855b13366] 25 X-Request-Id: [d64736d5-872b-4576-a016-507e5a6210c9]
26 X-Runtime: ['0.028422'] 26 X-Runtime: ['0.593596']
27 X-XSS-Protection: [1; mode=block] 27 X-XSS-Protection: [1; mode=block]
28 content-length: ['550'] 28 content-length: ['551']
29 status: {code: 200, message: OK} 29 status: {code: 200, message: OK}
30- request: 30- request:
31 body: null 31 body: reblogs=True&id=1
32 headers: 32 headers:
33 Accept: ['*/*'] 33 Accept: ['*/*']
34 Accept-Encoding: ['gzip, deflate'] 34 Accept-Encoding: ['gzip, deflate']
35 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 35 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
36 Connection: [keep-alive] 36 Connection: [keep-alive]
37 Content-Length: ['0'] 37 Content-Length: ['17']
38 Content-Type: [application/x-www-form-urlencoded]
38 User-Agent: [python-requests/2.18.4] 39 User-Agent: [python-requests/2.18.4]
39 method: POST 40 method: POST
40 uri: http://localhost:3000/api/v1/accounts/1/follow 41 uri: http://localhost:3000/api/v1/accounts/1/follow
41 response: 42 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 body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'}
43 headers: 44 headers:
44 Cache-Control: ['max-age=0, private, must-revalidate'] 45 Cache-Control: ['max-age=0, private, must-revalidate']
45 Content-Type: [application/json; charset=utf-8] 46 Content-Type: [application/json; charset=utf-8]
46 ETag: [W/"2aac633ba6c8db22698d7975d76a2350"] 47 ETag: [W/"73b11b0fc7e76756964f8713cfbd32d3"]
47 Referrer-Policy: [strict-origin-when-cross-origin] 48 Referrer-Policy: [strict-origin-when-cross-origin]
48 Transfer-Encoding: [chunked] 49 Transfer-Encoding: [chunked]
49 Vary: ['Accept-Encoding, Origin'] 50 Vary: ['Accept-Encoding, Origin']
@@ -51,10 +52,10 @@ interactions:
51 X-Download-Options: [noopen] 52 X-Download-Options: [noopen]
52 X-Frame-Options: [SAMEORIGIN] 53 X-Frame-Options: [SAMEORIGIN]
53 X-Permitted-Cross-Domain-Policies: [none] 54 X-Permitted-Cross-Domain-Policies: [none]
54 X-Request-Id: [de297198-591f-4e6e-8515-24f1b7741899] 55 X-Request-Id: [9d397398-5005-4e02-bb24-6be14263e449]
55 X-Runtime: ['0.062917'] 56 X-Runtime: ['0.281744']
56 X-XSS-Protection: [1; mode=block] 57 X-XSS-Protection: [1; mode=block]
57 content-length: ['174'] 58 content-length: ['173']
58 status: {code: 200, message: OK} 59 status: {code: 200, message: OK}
59- request: 60- request:
60 body: null 61 body: null
@@ -67,11 +68,11 @@ interactions:
67 method: GET 68 method: GET
68 uri: http://localhost:3000/api/v1/accounts/search?following=True&q=admin 69 uri: http://localhost:3000/api/v1/accounts/search?following=True&q=admin
69 response: 70 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 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":67,"emojis":[],"fields":[]}]'}
71 headers: 72 headers:
72 Cache-Control: ['max-age=0, private, must-revalidate'] 73 Cache-Control: ['max-age=0, private, must-revalidate']
73 Content-Type: [application/json; charset=utf-8] 74 Content-Type: [application/json; charset=utf-8]
74 ETag: [W/"6420365b0c00860d2adcedbe18d93c46"] 75 ETag: [W/"d684e220cc20b462f23ae1d44d5ef8e2"]
75 Referrer-Policy: [strict-origin-when-cross-origin] 76 Referrer-Policy: [strict-origin-when-cross-origin]
76 Transfer-Encoding: [chunked] 77 Transfer-Encoding: [chunked]
77 Vary: ['Accept-Encoding, Origin'] 78 Vary: ['Accept-Encoding, Origin']
@@ -79,10 +80,10 @@ interactions:
79 X-Download-Options: [noopen] 80 X-Download-Options: [noopen]
80 X-Frame-Options: [SAMEORIGIN] 81 X-Frame-Options: [SAMEORIGIN]
81 X-Permitted-Cross-Domain-Policies: [none] 82 X-Permitted-Cross-Domain-Policies: [none]
82 X-Request-Id: [9c9011c5-cc1b-40a4-9d1b-56f669adc944] 83 X-Request-Id: [e511d32a-a026-447c-b4c9-aa10bec732d7]
83 X-Runtime: ['0.035517'] 84 X-Runtime: ['0.057559']
84 X-XSS-Protection: [1; mode=block] 85 X-XSS-Protection: [1; mode=block]
85 content-length: ['550'] 86 content-length: ['551']
86 status: {code: 200, message: OK} 87 status: {code: 200, message: OK}
87- request: 88- request:
88 body: null 89 body: null
@@ -100,7 +101,7 @@ interactions:
100 headers: 101 headers:
101 Cache-Control: ['max-age=0, private, must-revalidate'] 102 Cache-Control: ['max-age=0, private, must-revalidate']
102 Content-Type: [application/json; charset=utf-8] 103 Content-Type: [application/json; charset=utf-8]
103 ETag: [W/"567fcb76cedd3fab2d295958338f60e1"] 104 ETag: [W/"97b254dec020382a063f788a6984808f"]
104 Referrer-Policy: [strict-origin-when-cross-origin] 105 Referrer-Policy: [strict-origin-when-cross-origin]
105 Transfer-Encoding: [chunked] 106 Transfer-Encoding: [chunked]
106 Vary: ['Accept-Encoding, Origin'] 107 Vary: ['Accept-Encoding, Origin']
@@ -108,8 +109,8 @@ interactions:
108 X-Download-Options: [noopen] 109 X-Download-Options: [noopen]
109 X-Frame-Options: [SAMEORIGIN] 110 X-Frame-Options: [SAMEORIGIN]
110 X-Permitted-Cross-Domain-Policies: [none] 111 X-Permitted-Cross-Domain-Policies: [none]
111 X-Request-Id: [e9a45781-41e5-4184-86b3-bf528fd342df] 112 X-Request-Id: [1e249c7b-04fe-42d7-b6c6-330d072b38db]
112 X-Runtime: ['0.045182'] 113 X-Runtime: ['0.116435']
113 X-XSS-Protection: [1; mode=block] 114 X-XSS-Protection: [1; mode=block]
114 content-length: ['175'] 115 content-length: ['175']
115 status: {code: 200, message: OK} 116 status: {code: 200, message: OK}
@@ -128,7 +129,7 @@ interactions:
128 headers: 129 headers:
129 Cache-Control: ['max-age=0, private, must-revalidate'] 130 Cache-Control: ['max-age=0, private, must-revalidate']
130 Content-Type: [application/json; charset=utf-8] 131 Content-Type: [application/json; charset=utf-8]
131 ETag: [W/"573082b711c5e9cb9dfd1bef03d669a2"] 132 ETag: [W/"98911f27999fb7ceab3f494fc3157179"]
132 Referrer-Policy: [strict-origin-when-cross-origin] 133 Referrer-Policy: [strict-origin-when-cross-origin]
133 Transfer-Encoding: [chunked] 134 Transfer-Encoding: [chunked]
134 Vary: ['Accept-Encoding, Origin'] 135 Vary: ['Accept-Encoding, Origin']
@@ -136,8 +137,8 @@ interactions:
136 X-Download-Options: [noopen] 137 X-Download-Options: [noopen]
137 X-Frame-Options: [SAMEORIGIN] 138 X-Frame-Options: [SAMEORIGIN]
138 X-Permitted-Cross-Domain-Policies: [none] 139 X-Permitted-Cross-Domain-Policies: [none]
139 X-Request-Id: [1381d7b9-67d0-423c-82c8-91e34f24b010] 140 X-Request-Id: [c75c8037-cfe2-40f5-a780-f76fe720e6d0]
140 X-Runtime: ['0.021078'] 141 X-Runtime: ['0.066532']
141 X-XSS-Protection: [1; mode=block] 142 X-XSS-Protection: [1; mode=block]
142 content-length: ['2'] 143 content-length: ['2']
143 status: {code: 200, message: OK} 144 status: {code: 200, message: OK}
@@ -152,11 +153,11 @@ interactions:
152 method: GET 153 method: GET
153 uri: http://localhost:3000/api/v1/accounts/search?q=admin 154 uri: http://localhost:3000/api/v1/accounts/search?q=admin
154 response: 155 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 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,"emojis":[],"fields":[]}]'}
156 headers: 157 headers:
157 Cache-Control: ['max-age=0, private, must-revalidate'] 158 Cache-Control: ['max-age=0, private, must-revalidate']
158 Content-Type: [application/json; charset=utf-8] 159 Content-Type: [application/json; charset=utf-8]
159 ETag: [W/"9ed38f78d86f3323e4d890f7fde996fe"] 160 ETag: [W/"db85ef2b54ebcf74ab2a62a3611b32f9"]
160 Referrer-Policy: [strict-origin-when-cross-origin] 161 Referrer-Policy: [strict-origin-when-cross-origin]
161 Transfer-Encoding: [chunked] 162 Transfer-Encoding: [chunked]
162 Vary: ['Accept-Encoding, Origin'] 163 Vary: ['Accept-Encoding, Origin']
@@ -164,9 +165,9 @@ interactions:
164 X-Download-Options: [noopen] 165 X-Download-Options: [noopen]
165 X-Frame-Options: [SAMEORIGIN] 166 X-Frame-Options: [SAMEORIGIN]
166 X-Permitted-Cross-Domain-Policies: [none] 167 X-Permitted-Cross-Domain-Policies: [none]
167 X-Request-Id: [1dd3604c-c7d2-4938-8569-77c84b69b8b1] 168 X-Request-Id: [d2d1d56b-fd97-4998-b364-2a8c1d9e6e33]
168 X-Runtime: ['0.017571'] 169 X-Runtime: ['0.053387']
169 X-XSS-Protection: [1; mode=block] 170 X-XSS-Protection: [1; mode=block]
170 content-length: ['550'] 171 content-length: ['551']
171 status: {code: 200, message: OK} 172 status: {code: 200, message: OK}
172version: 1 173version: 1
Powered by cgit v1.2.3 (git 2.41.0)