diff options
Diffstat (limited to 'tests/cassettes_pre_2_9_2')
-rw-r--r-- | tests/cassettes_pre_2_9_2/test_search.yaml | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/tests/cassettes_pre_2_9_2/test_search.yaml b/tests/cassettes_pre_2_9_2/test_search.yaml new file mode 100644 index 0000000..08282ae --- /dev/null +++ b/tests/cassettes_pre_2_9_2/test_search.yaml | |||
@@ -0,0 +1,110 @@ | |||
1 | interactions: | ||
2 | - request: | ||
3 | body: null | ||
4 | headers: | ||
5 | Accept: ['*/*'] | ||
6 | Accept-Encoding: ['gzip, deflate'] | ||
7 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
8 | Connection: [keep-alive] | ||
9 | User-Agent: [python-requests/2.18.4] | ||
10 | method: GET | ||
11 | uri: http://localhost:3000/api/v1/search?q=mastodonpy_test | ||
12 | response: | ||
13 | body: {string: '{"hashtags":[],"accounts":[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","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":0,"emojis":[],"fields":[]},{"id":"1234567890123457","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":true,"bot":false,"created_at":"2019-06-22T23:11:52.445Z","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,"emojis":[],"fields":[]}],"statuses":[]}'} | ||
14 | headers: | ||
15 | Cache-Control: ['no-cache, no-store'] | ||
16 | Content-Type: [application/json; charset=utf-8] | ||
17 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
18 | Transfer-Encoding: [chunked] | ||
19 | Vary: ['Accept-Encoding, Origin'] | ||
20 | X-Content-Type-Options: [nosniff] | ||
21 | X-Download-Options: [noopen] | ||
22 | X-Frame-Options: [SAMEORIGIN] | ||
23 | X-Permitted-Cross-Domain-Policies: [none] | ||
24 | X-Request-Id: [ac4caed7-ee8f-4afa-bf01-ea8e76febf2c] | ||
25 | X-Runtime: ['0.074508'] | ||
26 | X-XSS-Protection: [1; mode=block] | ||
27 | content-length: ['1185'] | ||
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] | ||
35 | Connection: [keep-alive] | ||
36 | User-Agent: [python-requests/2.18.4] | ||
37 | method: GET | ||
38 | uri: http://localhost:3000/api/v2/search?resolve=1&q=mastodonpy_test | ||
39 | response: | ||
40 | body: {string: '{"accounts":[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","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":0,"emojis":[],"fields":[]},{"id":"1234567890123457","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":true,"bot":false,"created_at":"2019-06-22T23:11:52.445Z","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,"emojis":[],"fields":[]}],"statuses":[],"hashtags":[]}'} | ||
41 | headers: | ||
42 | Cache-Control: ['no-cache, no-store'] | ||
43 | Content-Type: [application/json; charset=utf-8] | ||
44 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
45 | Transfer-Encoding: [chunked] | ||
46 | Vary: ['Accept-Encoding, Origin'] | ||
47 | X-Content-Type-Options: [nosniff] | ||
48 | X-Download-Options: [noopen] | ||
49 | X-Frame-Options: [SAMEORIGIN] | ||
50 | X-Permitted-Cross-Domain-Policies: [none] | ||
51 | X-Request-Id: [e68a99bb-37a6-4f63-a4bd-ca8d42e05f34] | ||
52 | X-Runtime: ['0.062043'] | ||
53 | X-XSS-Protection: [1; mode=block] | ||
54 | content-length: ['1185'] | ||
55 | status: {code: 200, message: OK} | ||
56 | - request: | ||
57 | body: null | ||
58 | headers: | ||
59 | Accept: ['*/*'] | ||
60 | Accept-Encoding: ['gzip, deflate'] | ||
61 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
62 | Connection: [keep-alive] | ||
63 | User-Agent: [python-requests/2.18.4] | ||
64 | method: GET | ||
65 | uri: http://localhost:3000/api/v2/search?resolve=1&q=mastodonpy_test | ||
66 | response: | ||
67 | body: {string: '{"accounts":[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","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":0,"emojis":[],"fields":[]},{"id":"1234567890123457","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":true,"bot":false,"created_at":"2019-06-22T23:11:52.445Z","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,"emojis":[],"fields":[]}],"statuses":[],"hashtags":[]}'} | ||
68 | headers: | ||
69 | Cache-Control: ['no-cache, no-store'] | ||
70 | Content-Type: [application/json; charset=utf-8] | ||
71 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
72 | Transfer-Encoding: [chunked] | ||
73 | Vary: ['Accept-Encoding, Origin'] | ||
74 | X-Content-Type-Options: [nosniff] | ||
75 | X-Download-Options: [noopen] | ||
76 | X-Frame-Options: [SAMEORIGIN] | ||
77 | X-Permitted-Cross-Domain-Policies: [none] | ||
78 | X-Request-Id: [1efaffda-bc4f-4a40-9a1c-1dbd6e609238] | ||
79 | X-Runtime: ['0.027617'] | ||
80 | X-XSS-Protection: [1; mode=block] | ||
81 | content-length: ['1185'] | ||
82 | status: {code: 200, message: OK} | ||
83 | - request: | ||
84 | body: null | ||
85 | headers: | ||
86 | Accept: ['*/*'] | ||
87 | Accept-Encoding: ['gzip, deflate'] | ||
88 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
89 | Connection: [keep-alive] | ||
90 | User-Agent: [python-requests/2.18.4] | ||
91 | method: GET | ||
92 | uri: http://localhost:3000/api/v2/search?resolve=1&q=mastodonpy_test&type=statuses | ||
93 | response: | ||
94 | body: {string: '{"accounts":[],"statuses":[],"hashtags":[]}'} | ||
95 | headers: | ||
96 | Cache-Control: ['no-cache, no-store'] | ||
97 | Content-Type: [application/json; charset=utf-8] | ||
98 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
99 | Transfer-Encoding: [chunked] | ||
100 | Vary: ['Accept-Encoding, Origin'] | ||
101 | X-Content-Type-Options: [nosniff] | ||
102 | X-Download-Options: [noopen] | ||
103 | X-Frame-Options: [SAMEORIGIN] | ||
104 | X-Permitted-Cross-Domain-Policies: [none] | ||
105 | X-Request-Id: [f8f002d4-e3ea-4146-8af0-e2164bf82700] | ||
106 | X-Runtime: ['0.016728'] | ||
107 | X-XSS-Protection: [1; mode=block] | ||
108 | content-length: ['43'] | ||
109 | status: {code: 200, message: OK} | ||
110 | version: 1 | ||