diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-07 23:11:30 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-07 23:11:30 +0200 |
commit | 3277ca777821e76955fb26d80788939a311db9db (patch) | |
tree | bef0749a451464d00e59fb3c685e6eb6d69a8a78 /tests/cassettes/test_search.yaml | |
parent | 33d1e17e2e75884abd6e0a8a3e4a4da388e97e55 (diff) | |
download | mastodon.py-3277ca777821e76955fb26d80788939a311db9db.tar.gz |
Initial test fixing pass. Four tests still fail.
Diffstat (limited to 'tests/cassettes/test_search.yaml')
-rw-r--r-- | tests/cassettes/test_search.yaml | 223 |
1 files changed, 160 insertions, 63 deletions
diff --git a/tests/cassettes/test_search.yaml b/tests/cassettes/test_search.yaml index b95a7ce..e7b892c 100644 --- a/tests/cassettes/test_search.yaml +++ b/tests/cassettes/test_search.yaml | |||
@@ -2,82 +2,179 @@ interactions: | |||
2 | - request: | 2 | - request: |
3 | body: null | 3 | body: null |
4 | headers: | 4 | headers: |
5 | Accept: ['*/*'] | 5 | Accept: |
6 | Accept-Encoding: ['gzip, deflate'] | 6 | - '*/*' |
7 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 7 | Accept-Encoding: |
8 | Connection: [keep-alive] | 8 | - gzip, deflate |
9 | User-Agent: [python-requests/2.18.4] | 9 | Authorization: |
10 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
11 | Connection: | ||
12 | - keep-alive | ||
13 | User-Agent: | ||
14 | - tests/v311 | ||
10 | method: GET | 15 | method: GET |
11 | uri: http://localhost:3000/api/v2/search?exclude_unreviewed=1&resolve=1&q=mastodonpy_test | 16 | uri: http://localhost:3000/api/v2/search?q=mastodonpy_test&resolve=1&exclude_unreviewed=1 |
12 | response: | 17 | response: |
13 | body: {string: '{"accounts":[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2020-02-22","emojis":[],"fields":[]},{"id":"1234567890123457","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":true,"bot":false,"discoverable":true,"group":false,"created_at":"2020-02-22T20:26:54.405Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test_2","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"emojis":[],"fields":[]}],"statuses":[],"hashtags":[]}'} | 18 | body: |
19 | string: '{"accounts":[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
20 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI | ||
21 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":0,"statuses_count":9,"last_status_at":"2022-11-07","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},{"id":"1234567890123457","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test_2","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":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]}],"statuses":[],"hashtags":[]}' | ||
14 | headers: | 22 | headers: |
15 | Cache-Control: ['no-cache, no-store'] | 23 | Cache-Control: |
16 | Content-Type: [application/json; charset=utf-8] | 24 | - no-store |
17 | Referrer-Policy: [strict-origin-when-cross-origin] | 25 | Content-Security-Policy: |
18 | Transfer-Encoding: [chunked] | 26 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
19 | Vary: ['Accept-Encoding, Origin'] | 27 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
20 | X-Content-Type-Options: [nosniff] | 28 | style-src ''self'' http://localhost:3000 ''nonce-vwIOHkbP2p9mjgIbQz2RTQ==''; |
21 | X-Download-Options: [noopen] | 29 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
22 | X-Frame-Options: [SAMEORIGIN] | 30 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
23 | X-Permitted-Cross-Domain-Policies: [none] | 31 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
24 | X-Request-Id: [3cbc2b0c-f90e-45ba-a108-db4984a204de] | 32 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
25 | X-Runtime: ['0.118354'] | 33 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
26 | X-XSS-Protection: [1; mode=block] | 34 | worker-src ''self'' blob: http://localhost:3000' |
27 | content-length: ['1306'] | 35 | Content-Type: |
28 | status: {code: 200, message: OK} | 36 | - application/json; charset=utf-8 |
37 | ETag: | ||
38 | - W/"e2e1b4a38c899d25e7617ab454abec40" | ||
39 | Referrer-Policy: | ||
40 | - strict-origin-when-cross-origin | ||
41 | Transfer-Encoding: | ||
42 | - chunked | ||
43 | Vary: | ||
44 | - Accept, Origin | ||
45 | X-Content-Type-Options: | ||
46 | - nosniff | ||
47 | X-Download-Options: | ||
48 | - noopen | ||
49 | X-Frame-Options: | ||
50 | - SAMEORIGIN | ||
51 | X-Permitted-Cross-Domain-Policies: | ||
52 | - none | ||
53 | X-Request-Id: | ||
54 | - 16d504aa-f25b-488e-add2-83204987a816 | ||
55 | X-Runtime: | ||
56 | - '0.023576' | ||
57 | X-XSS-Protection: | ||
58 | - 1; mode=block | ||
59 | status: | ||
60 | code: 200 | ||
61 | message: OK | ||
29 | - request: | 62 | - request: |
30 | body: null | 63 | body: null |
31 | headers: | 64 | headers: |
32 | Accept: ['*/*'] | 65 | Accept: |
33 | Accept-Encoding: ['gzip, deflate'] | 66 | - '*/*' |
34 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 67 | Accept-Encoding: |
35 | Connection: [keep-alive] | 68 | - gzip, deflate |
36 | User-Agent: [python-requests/2.18.4] | 69 | Authorization: |
70 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
71 | Connection: | ||
72 | - keep-alive | ||
73 | User-Agent: | ||
74 | - tests/v311 | ||
37 | method: GET | 75 | method: GET |
38 | uri: http://localhost:3000/api/v2/search?exclude_unreviewed=1&resolve=1&q=mastodonpy_test | 76 | uri: http://localhost:3000/api/v2/search?q=mastodonpy_test&resolve=1&exclude_unreviewed=1 |
39 | response: | 77 | response: |
40 | body: {string: '{"accounts":[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2020-02-22","emojis":[],"fields":[]},{"id":"1234567890123457","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":true,"bot":false,"discoverable":true,"group":false,"created_at":"2020-02-22T20:26:54.405Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test_2","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"emojis":[],"fields":[]}],"statuses":[],"hashtags":[]}'} | 78 | body: |
79 | string: '{"accounts":[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
80 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI | ||
81 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":0,"statuses_count":9,"last_status_at":"2022-11-07","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},{"id":"1234567890123457","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test_2","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":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]}],"statuses":[],"hashtags":[]}' | ||
41 | headers: | 82 | headers: |
42 | Cache-Control: ['no-cache, no-store'] | 83 | Cache-Control: |
43 | Content-Type: [application/json; charset=utf-8] | 84 | - no-store |
44 | Referrer-Policy: [strict-origin-when-cross-origin] | 85 | Content-Security-Policy: |
45 | Transfer-Encoding: [chunked] | 86 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
46 | Vary: ['Accept-Encoding, Origin'] | 87 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
47 | X-Content-Type-Options: [nosniff] | 88 | style-src ''self'' http://localhost:3000 ''nonce-MGv3NyMMfMM7SxQ2Yp+Oiw==''; |
48 | X-Download-Options: [noopen] | 89 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
49 | X-Frame-Options: [SAMEORIGIN] | 90 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
50 | X-Permitted-Cross-Domain-Policies: [none] | 91 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
51 | X-Request-Id: [02327990-ff9c-4c44-a42d-3988317bba3a] | 92 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
52 | X-Runtime: ['0.064352'] | 93 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
53 | X-XSS-Protection: [1; mode=block] | 94 | worker-src ''self'' blob: http://localhost:3000' |
54 | content-length: ['1306'] | 95 | Content-Type: |
55 | status: {code: 200, message: OK} | 96 | - application/json; charset=utf-8 |
97 | ETag: | ||
98 | - W/"e2e1b4a38c899d25e7617ab454abec40" | ||
99 | Referrer-Policy: | ||
100 | - strict-origin-when-cross-origin | ||
101 | Transfer-Encoding: | ||
102 | - chunked | ||
103 | Vary: | ||
104 | - Accept, Origin | ||
105 | X-Content-Type-Options: | ||
106 | - nosniff | ||
107 | X-Download-Options: | ||
108 | - noopen | ||
109 | X-Frame-Options: | ||
110 | - SAMEORIGIN | ||
111 | X-Permitted-Cross-Domain-Policies: | ||
112 | - none | ||
113 | X-Request-Id: | ||
114 | - d1684ea3-e771-4bf8-901c-85526025656f | ||
115 | X-Runtime: | ||
116 | - '0.016880' | ||
117 | X-XSS-Protection: | ||
118 | - 1; mode=block | ||
119 | status: | ||
120 | code: 200 | ||
121 | message: OK | ||
56 | - request: | 122 | - request: |
57 | body: null | 123 | body: null |
58 | headers: | 124 | headers: |
59 | Accept: ['*/*'] | 125 | Accept: |
60 | Accept-Encoding: ['gzip, deflate'] | 126 | - '*/*' |
61 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 127 | Accept-Encoding: |
62 | Connection: [keep-alive] | 128 | - gzip, deflate |
63 | User-Agent: [python-requests/2.18.4] | 129 | Authorization: |
130 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
131 | Connection: | ||
132 | - keep-alive | ||
133 | User-Agent: | ||
134 | - tests/v311 | ||
64 | method: GET | 135 | method: GET |
65 | uri: http://localhost:3000/api/v2/search?exclude_unreviewed=1&resolve=1&q=mastodonpy_test&type=statuses | 136 | uri: http://localhost:3000/api/v2/search?q=mastodonpy_test&resolve=1&exclude_unreviewed=1&type=statuses |
66 | response: | 137 | response: |
67 | body: {string: '{"accounts":[],"statuses":[],"hashtags":[]}'} | 138 | body: |
139 | string: '{"accounts":[],"statuses":[],"hashtags":[]}' | ||
68 | headers: | 140 | headers: |
69 | Cache-Control: ['no-cache, no-store'] | 141 | Cache-Control: |
70 | Content-Type: [application/json; charset=utf-8] | 142 | - no-store |
71 | Referrer-Policy: [strict-origin-when-cross-origin] | 143 | Content-Security-Policy: |
72 | Transfer-Encoding: [chunked] | 144 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
73 | Vary: ['Accept-Encoding, Origin'] | 145 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
74 | X-Content-Type-Options: [nosniff] | 146 | style-src ''self'' http://localhost:3000 ''nonce-ylyGhpeShx8MIOw/FFvNCA==''; |
75 | X-Download-Options: [noopen] | 147 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
76 | X-Frame-Options: [SAMEORIGIN] | 148 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
77 | X-Permitted-Cross-Domain-Policies: [none] | 149 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
78 | X-Request-Id: [4c3c41b5-6ac9-4c89-84f2-a05aa61e184b] | 150 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
79 | X-Runtime: ['0.032472'] | 151 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
80 | X-XSS-Protection: [1; mode=block] | 152 | worker-src ''self'' blob: http://localhost:3000' |
81 | content-length: ['43'] | 153 | Content-Type: |
82 | status: {code: 200, message: OK} | 154 | - application/json; charset=utf-8 |
155 | ETag: | ||
156 | - W/"80e643200b4aece67dbe6d242a4e5722" | ||
157 | Referrer-Policy: | ||
158 | - strict-origin-when-cross-origin | ||
159 | Transfer-Encoding: | ||
160 | - chunked | ||
161 | Vary: | ||
162 | - Accept, Origin | ||
163 | X-Content-Type-Options: | ||
164 | - nosniff | ||
165 | X-Download-Options: | ||
166 | - noopen | ||
167 | X-Frame-Options: | ||
168 | - SAMEORIGIN | ||
169 | X-Permitted-Cross-Domain-Policies: | ||
170 | - none | ||
171 | X-Request-Id: | ||
172 | - ee6d4077-336e-4ce3-9b86-d92e4d0482f1 | ||
173 | X-Runtime: | ||
174 | - '0.007612' | ||
175 | X-XSS-Protection: | ||
176 | - 1; mode=block | ||
177 | status: | ||
178 | code: 200 | ||
179 | message: OK | ||
83 | version: 1 | 180 | version: 1 |