diff options
Diffstat (limited to 'tests/cassettes/test_account_search.yaml')
-rw-r--r-- | tests/cassettes/test_account_search.yaml | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/tests/cassettes/test_account_search.yaml b/tests/cassettes/test_account_search.yaml index b8698c5..8b62a2c 100644 --- a/tests/cassettes/test_account_search.yaml +++ b/tests/cassettes/test_account_search.yaml | |||
@@ -8,13 +8,13 @@ interactions: | |||
8 | Connection: [keep-alive] | 8 | Connection: [keep-alive] |
9 | User-Agent: [python-requests/2.18.4] | 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 | 11 | uri: http://localhost:3000/api/v1/accounts/search?following=0&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":67,"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":1,"following_count":0,"statuses_count":81,"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/"db85ef2b54ebcf74ab2a62a3611b32f9"] | 17 | ETag: [W/"26546ccfc2cf4b2e657f2b0cf992234b"] |
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,19 +22,19 @@ 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: [d64736d5-872b-4576-a016-507e5a6210c9] | 25 | X-Request-Id: [97762efb-4888-4bc5-92cc-181250dd36b4] |
26 | X-Runtime: ['0.593596'] | 26 | X-Runtime: ['0.030619'] |
27 | X-XSS-Protection: [1; mode=block] | 27 | X-XSS-Protection: [1; mode=block] |
28 | content-length: ['551'] | 28 | content-length: ['551'] |
29 | status: {code: 200, message: OK} | 29 | status: {code: 200, message: OK} |
30 | - request: | 30 | - request: |
31 | body: reblogs=True&id=1 | 31 | body: reblogs=1&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: ['17'] | 37 | Content-Length: ['14'] |
38 | Content-Type: [application/x-www-form-urlencoded] | 38 | Content-Type: [application/x-www-form-urlencoded] |
39 | User-Agent: [python-requests/2.18.4] | 39 | User-Agent: [python-requests/2.18.4] |
40 | method: POST | 40 | method: POST |
@@ -44,7 +44,7 @@ interactions: | |||
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/"73b11b0fc7e76756964f8713cfbd32d3"] | 47 | ETag: [W/"bc9fd39e41f439919274b937387bab3e"] |
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,8 +52,8 @@ 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: [9d397398-5005-4e02-bb24-6be14263e449] | 55 | X-Request-Id: [d0540e33-59ac-477c-9677-1e693af60b4e] |
56 | X-Runtime: ['0.281744'] | 56 | X-Runtime: ['0.041764'] |
57 | X-XSS-Protection: [1; mode=block] | 57 | X-XSS-Protection: [1; mode=block] |
58 | content-length: ['173'] | 58 | content-length: ['173'] |
59 | status: {code: 200, message: OK} | 59 | status: {code: 200, message: OK} |
@@ -66,13 +66,13 @@ interactions: | |||
66 | Connection: [keep-alive] | 66 | Connection: [keep-alive] |
67 | User-Agent: [python-requests/2.18.4] | 67 | User-Agent: [python-requests/2.18.4] |
68 | method: GET | 68 | method: GET |
69 | uri: http://localhost:3000/api/v1/accounts/search?following=True&q=admin | 69 | uri: http://localhost:3000/api/v1/accounts/search?following=1&q=admin |
70 | response: | 70 | response: |
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 | 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":81,"emojis":[],"fields":[]}]'} |
72 | headers: | 72 | headers: |
73 | Cache-Control: ['max-age=0, private, must-revalidate'] | 73 | Cache-Control: ['max-age=0, private, must-revalidate'] |
74 | Content-Type: [application/json; charset=utf-8] | 74 | Content-Type: [application/json; charset=utf-8] |
75 | ETag: [W/"d684e220cc20b462f23ae1d44d5ef8e2"] | 75 | ETag: [W/"26546ccfc2cf4b2e657f2b0cf992234b"] |
76 | Referrer-Policy: [strict-origin-when-cross-origin] | 76 | Referrer-Policy: [strict-origin-when-cross-origin] |
77 | Transfer-Encoding: [chunked] | 77 | Transfer-Encoding: [chunked] |
78 | Vary: ['Accept-Encoding, Origin'] | 78 | Vary: ['Accept-Encoding, Origin'] |
@@ -80,8 +80,8 @@ interactions: | |||
80 | X-Download-Options: [noopen] | 80 | X-Download-Options: [noopen] |
81 | X-Frame-Options: [SAMEORIGIN] | 81 | X-Frame-Options: [SAMEORIGIN] |
82 | X-Permitted-Cross-Domain-Policies: [none] | 82 | X-Permitted-Cross-Domain-Policies: [none] |
83 | X-Request-Id: [e511d32a-a026-447c-b4c9-aa10bec732d7] | 83 | X-Request-Id: [ada3f62d-2271-4bf7-90a1-3d8d1eb3145f] |
84 | X-Runtime: ['0.057559'] | 84 | X-Runtime: ['0.032362'] |
85 | X-XSS-Protection: [1; mode=block] | 85 | X-XSS-Protection: [1; mode=block] |
86 | content-length: ['551'] | 86 | content-length: ['551'] |
87 | status: {code: 200, message: OK} | 87 | status: {code: 200, message: OK} |
@@ -101,7 +101,7 @@ interactions: | |||
101 | headers: | 101 | headers: |
102 | Cache-Control: ['max-age=0, private, must-revalidate'] | 102 | Cache-Control: ['max-age=0, private, must-revalidate'] |
103 | Content-Type: [application/json; charset=utf-8] | 103 | Content-Type: [application/json; charset=utf-8] |
104 | ETag: [W/"97b254dec020382a063f788a6984808f"] | 104 | ETag: [W/"2faa51ebd74eb174c9125d103f2f9731"] |
105 | Referrer-Policy: [strict-origin-when-cross-origin] | 105 | Referrer-Policy: [strict-origin-when-cross-origin] |
106 | Transfer-Encoding: [chunked] | 106 | Transfer-Encoding: [chunked] |
107 | Vary: ['Accept-Encoding, Origin'] | 107 | Vary: ['Accept-Encoding, Origin'] |
@@ -109,8 +109,8 @@ interactions: | |||
109 | X-Download-Options: [noopen] | 109 | X-Download-Options: [noopen] |
110 | X-Frame-Options: [SAMEORIGIN] | 110 | X-Frame-Options: [SAMEORIGIN] |
111 | X-Permitted-Cross-Domain-Policies: [none] | 111 | X-Permitted-Cross-Domain-Policies: [none] |
112 | X-Request-Id: [1e249c7b-04fe-42d7-b6c6-330d072b38db] | 112 | X-Request-Id: [b2348e30-50b8-4c3d-a415-9ef923977a0c] |
113 | X-Runtime: ['0.116435'] | 113 | X-Runtime: ['0.076637'] |
114 | X-XSS-Protection: [1; mode=block] | 114 | X-XSS-Protection: [1; mode=block] |
115 | content-length: ['175'] | 115 | content-length: ['175'] |
116 | status: {code: 200, message: OK} | 116 | status: {code: 200, message: OK} |
@@ -123,13 +123,13 @@ interactions: | |||
123 | Connection: [keep-alive] | 123 | Connection: [keep-alive] |
124 | User-Agent: [python-requests/2.18.4] | 124 | User-Agent: [python-requests/2.18.4] |
125 | method: GET | 125 | method: GET |
126 | uri: http://localhost:3000/api/v1/accounts/search?following=True&q=admin | 126 | uri: http://localhost:3000/api/v1/accounts/search?following=1&q=admin |
127 | response: | 127 | response: |
128 | body: {string: '[]'} | 128 | body: {string: '[]'} |
129 | headers: | 129 | headers: |
130 | Cache-Control: ['max-age=0, private, must-revalidate'] | 130 | Cache-Control: ['max-age=0, private, must-revalidate'] |
131 | Content-Type: [application/json; charset=utf-8] | 131 | Content-Type: [application/json; charset=utf-8] |
132 | ETag: [W/"98911f27999fb7ceab3f494fc3157179"] | 132 | ETag: [W/"4583a3914eef81c28ec55fd5f366846b"] |
133 | Referrer-Policy: [strict-origin-when-cross-origin] | 133 | Referrer-Policy: [strict-origin-when-cross-origin] |
134 | Transfer-Encoding: [chunked] | 134 | Transfer-Encoding: [chunked] |
135 | Vary: ['Accept-Encoding, Origin'] | 135 | Vary: ['Accept-Encoding, Origin'] |
@@ -137,8 +137,8 @@ interactions: | |||
137 | X-Download-Options: [noopen] | 137 | X-Download-Options: [noopen] |
138 | X-Frame-Options: [SAMEORIGIN] | 138 | X-Frame-Options: [SAMEORIGIN] |
139 | X-Permitted-Cross-Domain-Policies: [none] | 139 | X-Permitted-Cross-Domain-Policies: [none] |
140 | X-Request-Id: [c75c8037-cfe2-40f5-a780-f76fe720e6d0] | 140 | X-Request-Id: [91318d35-f87b-4fe1-ab79-410944655feb] |
141 | X-Runtime: ['0.066532'] | 141 | X-Runtime: ['0.039220'] |
142 | X-XSS-Protection: [1; mode=block] | 142 | X-XSS-Protection: [1; mode=block] |
143 | content-length: ['2'] | 143 | content-length: ['2'] |
144 | status: {code: 200, message: OK} | 144 | status: {code: 200, message: OK} |
@@ -151,13 +151,13 @@ interactions: | |||
151 | Connection: [keep-alive] | 151 | Connection: [keep-alive] |
152 | User-Agent: [python-requests/2.18.4] | 152 | User-Agent: [python-requests/2.18.4] |
153 | method: GET | 153 | method: GET |
154 | uri: http://localhost:3000/api/v1/accounts/search?q=admin | 154 | uri: http://localhost:3000/api/v1/accounts/search?following=0&q=admin |
155 | response: | 155 | response: |
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 | 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":81,"emojis":[],"fields":[]}]'} |
157 | headers: | 157 | headers: |
158 | Cache-Control: ['max-age=0, private, must-revalidate'] | 158 | Cache-Control: ['max-age=0, private, must-revalidate'] |
159 | Content-Type: [application/json; charset=utf-8] | 159 | Content-Type: [application/json; charset=utf-8] |
160 | ETag: [W/"db85ef2b54ebcf74ab2a62a3611b32f9"] | 160 | ETag: [W/"c391d6c92bdd48743f3f208e5f8e554a"] |
161 | Referrer-Policy: [strict-origin-when-cross-origin] | 161 | Referrer-Policy: [strict-origin-when-cross-origin] |
162 | Transfer-Encoding: [chunked] | 162 | Transfer-Encoding: [chunked] |
163 | Vary: ['Accept-Encoding, Origin'] | 163 | Vary: ['Accept-Encoding, Origin'] |
@@ -165,8 +165,8 @@ interactions: | |||
165 | X-Download-Options: [noopen] | 165 | X-Download-Options: [noopen] |
166 | X-Frame-Options: [SAMEORIGIN] | 166 | X-Frame-Options: [SAMEORIGIN] |
167 | X-Permitted-Cross-Domain-Policies: [none] | 167 | X-Permitted-Cross-Domain-Policies: [none] |
168 | X-Request-Id: [d2d1d56b-fd97-4998-b364-2a8c1d9e6e33] | 168 | X-Request-Id: [b35c23a8-5e9b-418f-b90d-c9eb14ccaf1e] |
169 | X-Runtime: ['0.053387'] | 169 | X-Runtime: ['0.025489'] |
170 | X-XSS-Protection: [1; mode=block] | 170 | X-XSS-Protection: [1; mode=block] |
171 | content-length: ['551'] | 171 | content-length: ['551'] |
172 | status: {code: 200, message: OK} | 172 | status: {code: 200, message: OK} |