diff options
Diffstat (limited to 'tests/cassettes/test_follow_suggestions.yaml')
-rw-r--r-- | tests/cassettes/test_follow_suggestions.yaml | 124 |
1 files changed, 109 insertions, 15 deletions
diff --git a/tests/cassettes/test_follow_suggestions.yaml b/tests/cassettes/test_follow_suggestions.yaml index f8b82a0..d70bbfa 100644 --- a/tests/cassettes/test_follow_suggestions.yaml +++ b/tests/cassettes/test_follow_suggestions.yaml | |||
@@ -1,22 +1,87 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: null | 3 | body: status=Toot%21 |
4 | headers: | 4 | headers: |
5 | Accept: ['*/*'] | 5 | Accept: ['*/*'] |
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 | Content-Length: ['14'] | ||
10 | Content-Type: [application/x-www-form-urlencoded] | ||
11 | User-Agent: [python-requests/2.18.4] | ||
12 | method: POST | ||
13 | uri: http://localhost:3000/api/v1/statuses | ||
14 | response: | ||
15 | body: {string: '{"id":"101999566652865150","created_at":"2019-04-27T18:31:12.027Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/101999566652865150","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost/@mastodonpy_test/101999566652865150","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
16 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
17 | Lennon","locked":true,"bot":false,"created_at":"2019-04-27T20:03:12.393Z","note":"\u003cp\u003eI | ||
18 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","followers_count":0,"following_count":0,"statuses_count":64,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} | ||
19 | headers: | ||
20 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
21 | Content-Type: [application/json; charset=utf-8] | ||
22 | ETag: [W/"c3f285e876a68f6e927cef0d1d1cb9fe"] | ||
23 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
24 | Transfer-Encoding: [chunked] | ||
25 | Vary: ['Accept-Encoding, Origin'] | ||
26 | X-Content-Type-Options: [nosniff] | ||
27 | X-Download-Options: [noopen] | ||
28 | X-Frame-Options: [SAMEORIGIN] | ||
29 | X-Permitted-Cross-Domain-Policies: [none] | ||
30 | X-Request-Id: [bb855852-dec6-4310-9658-370222e58d3e] | ||
31 | X-Runtime: ['0.156394'] | ||
32 | X-XSS-Protection: [1; mode=block] | ||
33 | content-length: ['1598'] | ||
34 | status: {code: 200, message: OK} | ||
35 | - request: | ||
36 | body: null | ||
37 | headers: | ||
38 | Accept: ['*/*'] | ||
39 | Accept-Encoding: ['gzip, deflate'] | ||
40 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] | ||
41 | Connection: [keep-alive] | ||
42 | Content-Length: ['0'] | ||
43 | User-Agent: [python-requests/2.18.4] | ||
44 | method: POST | ||
45 | uri: http://localhost:3000/api/v1/statuses/101999566652865150/favourite | ||
46 | response: | ||
47 | body: {string: '{"id":"101999566652865150","created_at":"2019-04-27T18:31:12.027Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/101999566652865150","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost/@mastodonpy_test/101999566652865150","replies_count":0,"reblogs_count":0,"favourites_count":1,"favourited":true,"reblogged":false,"muted":false,"reblog":null,"application":{"name":"Mastodon.py | ||
48 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
49 | Lennon","locked":true,"bot":false,"created_at":"2019-04-27T20:03:12.393Z","note":"\u003cp\u003eI | ||
50 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","followers_count":0,"following_count":0,"statuses_count":64,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} | ||
51 | headers: | ||
52 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
53 | Content-Type: [application/json; charset=utf-8] | ||
54 | ETag: [W/"7d3bedf90024c88f94060734a602970a"] | ||
55 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
56 | Transfer-Encoding: [chunked] | ||
57 | Vary: ['Accept-Encoding, Origin'] | ||
58 | X-Content-Type-Options: [nosniff] | ||
59 | X-Download-Options: [noopen] | ||
60 | X-Frame-Options: [SAMEORIGIN] | ||
61 | X-Permitted-Cross-Domain-Policies: [none] | ||
62 | X-Request-Id: [eef1e0e8-9db7-4704-a137-6cbcc0a56034] | ||
63 | X-Runtime: ['0.177688'] | ||
64 | X-XSS-Protection: [1; mode=block] | ||
65 | content-length: ['1582'] | ||
66 | status: {code: 200, message: OK} | ||
67 | - request: | ||
68 | body: null | ||
69 | headers: | ||
70 | Accept: ['*/*'] | ||
71 | Accept-Encoding: ['gzip, deflate'] | ||
72 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] | ||
73 | Connection: [keep-alive] | ||
9 | User-Agent: [python-requests/2.18.4] | 74 | User-Agent: [python-requests/2.18.4] |
10 | method: GET | 75 | method: GET |
11 | uri: http://localhost:3000/api/v1/suggestions | 76 | uri: http://localhost:3000/api/v1/suggestions |
12 | response: | 77 | response: |
13 | body: {string: '[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 78 | body: {string: '[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
14 | Lennon","locked":true,"bot":false,"created_at":"2018-07-13T23:02:25.260Z","note":"\u003cp\u003eI | 79 | Lennon","locked":true,"bot":false,"created_at":"2019-04-27T20:03:12.393Z","note":"\u003cp\u003eI |
15 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":90,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]}]'} | 80 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","followers_count":0,"following_count":0,"statuses_count":64,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]}]'} |
16 | headers: | 81 | headers: |
17 | Cache-Control: ['max-age=0, private, must-revalidate'] | 82 | Cache-Control: ['max-age=0, private, must-revalidate'] |
18 | Content-Type: [application/json; charset=utf-8] | 83 | Content-Type: [application/json; charset=utf-8] |
19 | ETag: [W/"a8a5830de1c455c106d49ae63b3c3214"] | 84 | ETag: [W/"f5fc20f36db05b447842aa50c237d66f"] |
20 | Referrer-Policy: [strict-origin-when-cross-origin] | 85 | Referrer-Policy: [strict-origin-when-cross-origin] |
21 | Transfer-Encoding: [chunked] | 86 | Transfer-Encoding: [chunked] |
22 | Vary: ['Accept-Encoding, Origin'] | 87 | Vary: ['Accept-Encoding, Origin'] |
@@ -24,17 +89,17 @@ interactions: | |||
24 | X-Download-Options: [noopen] | 89 | X-Download-Options: [noopen] |
25 | X-Frame-Options: [SAMEORIGIN] | 90 | X-Frame-Options: [SAMEORIGIN] |
26 | X-Permitted-Cross-Domain-Policies: [none] | 91 | X-Permitted-Cross-Domain-Policies: [none] |
27 | X-Request-Id: [83a1b7b5-e8c7-4879-a409-dd0952636e47] | 92 | X-Request-Id: [5a67b07e-8380-4e7f-b462-9dcc7877b1ae] |
28 | X-Runtime: ['0.024926'] | 93 | X-Runtime: ['0.019551'] |
29 | X-XSS-Protection: [1; mode=block] | 94 | X-XSS-Protection: [1; mode=block] |
30 | content-length: ['875'] | 95 | content-length: ['932'] |
31 | status: {code: 200, message: OK} | 96 | status: {code: 200, message: OK} |
32 | - request: | 97 | - request: |
33 | body: null | 98 | body: null |
34 | headers: | 99 | headers: |
35 | Accept: ['*/*'] | 100 | Accept: ['*/*'] |
36 | Accept-Encoding: ['gzip, deflate'] | 101 | Accept-Encoding: ['gzip, deflate'] |
37 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 102 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] |
38 | Connection: [keep-alive] | 103 | Connection: [keep-alive] |
39 | Content-Length: ['0'] | 104 | Content-Length: ['0'] |
40 | User-Agent: [python-requests/2.18.4] | 105 | User-Agent: [python-requests/2.18.4] |
@@ -45,7 +110,7 @@ interactions: | |||
45 | headers: | 110 | headers: |
46 | Cache-Control: ['max-age=0, private, must-revalidate'] | 111 | Cache-Control: ['max-age=0, private, must-revalidate'] |
47 | Content-Type: [application/json; charset=utf-8] | 112 | Content-Type: [application/json; charset=utf-8] |
48 | ETag: [W/"00bcb22f763257dc53dacce85525334a"] | 113 | ETag: [W/"a32095b18e61cd32984e3d6da4536825"] |
49 | Referrer-Policy: [strict-origin-when-cross-origin] | 114 | Referrer-Policy: [strict-origin-when-cross-origin] |
50 | Transfer-Encoding: [chunked] | 115 | Transfer-Encoding: [chunked] |
51 | Vary: ['Accept-Encoding, Origin'] | 116 | Vary: ['Accept-Encoding, Origin'] |
@@ -53,8 +118,8 @@ interactions: | |||
53 | X-Download-Options: [noopen] | 118 | X-Download-Options: [noopen] |
54 | X-Frame-Options: [SAMEORIGIN] | 119 | X-Frame-Options: [SAMEORIGIN] |
55 | X-Permitted-Cross-Domain-Policies: [none] | 120 | X-Permitted-Cross-Domain-Policies: [none] |
56 | X-Request-Id: [99ccadef-2880-4390-a915-84ed54c08ee8] | 121 | X-Request-Id: [b4c22d5b-fbf0-4387-9888-0ebab3da023a] |
57 | X-Runtime: ['0.026851'] | 122 | X-Runtime: ['0.015695'] |
58 | X-XSS-Protection: [1; mode=block] | 123 | X-XSS-Protection: [1; mode=block] |
59 | content-length: ['2'] | 124 | content-length: ['2'] |
60 | status: {code: 200, message: OK} | 125 | status: {code: 200, message: OK} |
@@ -63,7 +128,7 @@ interactions: | |||
63 | headers: | 128 | headers: |
64 | Accept: ['*/*'] | 129 | Accept: ['*/*'] |
65 | Accept-Encoding: ['gzip, deflate'] | 130 | Accept-Encoding: ['gzip, deflate'] |
66 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 131 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] |
67 | Connection: [keep-alive] | 132 | Connection: [keep-alive] |
68 | User-Agent: [python-requests/2.18.4] | 133 | User-Agent: [python-requests/2.18.4] |
69 | method: GET | 134 | method: GET |
@@ -73,7 +138,36 @@ interactions: | |||
73 | headers: | 138 | headers: |
74 | Cache-Control: ['max-age=0, private, must-revalidate'] | 139 | Cache-Control: ['max-age=0, private, must-revalidate'] |
75 | Content-Type: [application/json; charset=utf-8] | 140 | Content-Type: [application/json; charset=utf-8] |
76 | ETag: [W/"2754f9333f4794de1152cb8dcf004ea0"] | 141 | ETag: [W/"237aa823c9dccb534cbd3f0f3da2818e"] |
142 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
143 | Transfer-Encoding: [chunked] | ||
144 | Vary: ['Accept-Encoding, Origin'] | ||
145 | X-Content-Type-Options: [nosniff] | ||
146 | X-Download-Options: [noopen] | ||
147 | X-Frame-Options: [SAMEORIGIN] | ||
148 | X-Permitted-Cross-Domain-Policies: [none] | ||
149 | X-Request-Id: [7c64aae5-1f4d-49f1-86ae-ea68a8674fee] | ||
150 | X-Runtime: ['0.014172'] | ||
151 | X-XSS-Protection: [1; mode=block] | ||
152 | content-length: ['2'] | ||
153 | status: {code: 200, message: OK} | ||
154 | - request: | ||
155 | body: null | ||
156 | headers: | ||
157 | Accept: ['*/*'] | ||
158 | Accept-Encoding: ['gzip, deflate'] | ||
159 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
160 | Connection: [keep-alive] | ||
161 | Content-Length: ['0'] | ||
162 | User-Agent: [python-requests/2.18.4] | ||
163 | method: DELETE | ||
164 | uri: http://localhost:3000/api/v1/statuses/101999566652865150 | ||
165 | response: | ||
166 | body: {string: '{}'} | ||
167 | headers: | ||
168 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
169 | Content-Type: [application/json; charset=utf-8] | ||
170 | ETag: [W/"a32095b18e61cd32984e3d6da4536825"] | ||
77 | Referrer-Policy: [strict-origin-when-cross-origin] | 171 | Referrer-Policy: [strict-origin-when-cross-origin] |
78 | Transfer-Encoding: [chunked] | 172 | Transfer-Encoding: [chunked] |
79 | Vary: ['Accept-Encoding, Origin'] | 173 | Vary: ['Accept-Encoding, Origin'] |
@@ -81,8 +175,8 @@ interactions: | |||
81 | X-Download-Options: [noopen] | 175 | X-Download-Options: [noopen] |
82 | X-Frame-Options: [SAMEORIGIN] | 176 | X-Frame-Options: [SAMEORIGIN] |
83 | X-Permitted-Cross-Domain-Policies: [none] | 177 | X-Permitted-Cross-Domain-Policies: [none] |
84 | X-Request-Id: [1a00fb51-a5e5-4d8e-afe4-180c7c145b4c] | 178 | X-Request-Id: [a31dd745-e6d3-4449-9bd5-5e2894fd56da] |
85 | X-Runtime: ['0.015997'] | 179 | X-Runtime: ['0.024104'] |
86 | X-XSS-Protection: [1; mode=block] | 180 | X-XSS-Protection: [1; mode=block] |
87 | content-length: ['2'] | 181 | content-length: ['2'] |
88 | status: {code: 200, message: OK} | 182 | status: {code: 200, message: OK} |