diff options
Diffstat (limited to 'tests/cassettes/test_follow_suggestions.yaml')
-rw-r--r-- | tests/cassettes/test_follow_suggestions.yaml | 75 |
1 files changed, 36 insertions, 39 deletions
diff --git a/tests/cassettes/test_follow_suggestions.yaml b/tests/cassettes/test_follow_suggestions.yaml index d70bbfa..85e0f60 100644 --- a/tests/cassettes/test_follow_suggestions.yaml +++ b/tests/cassettes/test_follow_suggestions.yaml | |||
@@ -12,14 +12,13 @@ interactions: | |||
12 | method: POST | 12 | method: POST |
13 | uri: http://localhost:3000/api/v1/statuses | 13 | uri: http://localhost:3000/api/v1/statuses |
14 | response: | 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 | 15 | body: {string: '{"id":"102315364694961970","created_at":"2019-06-22T13:02:47.745Z","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/102315364694961970","url":"http://localhost/@mastodonpy_test/102315364694961970","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py |
16 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 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 | 17 | Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","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}'} | 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?1561208564","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","followers_count":0,"following_count":0,"statuses_count":1,"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: | 19 | headers: |
20 | Cache-Control: ['max-age=0, private, must-revalidate'] | 20 | Cache-Control: ['no-cache, no-store'] |
21 | Content-Type: [application/json; charset=utf-8] | 21 | Content-Type: [application/json; charset=utf-8] |
22 | ETag: [W/"c3f285e876a68f6e927cef0d1d1cb9fe"] | ||
23 | Referrer-Policy: [strict-origin-when-cross-origin] | 22 | Referrer-Policy: [strict-origin-when-cross-origin] |
24 | Transfer-Encoding: [chunked] | 23 | Transfer-Encoding: [chunked] |
25 | Vary: ['Accept-Encoding, Origin'] | 24 | Vary: ['Accept-Encoding, Origin'] |
@@ -27,10 +26,10 @@ interactions: | |||
27 | X-Download-Options: [noopen] | 26 | X-Download-Options: [noopen] |
28 | X-Frame-Options: [SAMEORIGIN] | 27 | X-Frame-Options: [SAMEORIGIN] |
29 | X-Permitted-Cross-Domain-Policies: [none] | 28 | X-Permitted-Cross-Domain-Policies: [none] |
30 | X-Request-Id: [bb855852-dec6-4310-9658-370222e58d3e] | 29 | X-Request-Id: [7fc9961a-bd11-4027-bd72-e5c8e51faae8] |
31 | X-Runtime: ['0.156394'] | 30 | X-Runtime: ['0.322650'] |
32 | X-XSS-Protection: [1; mode=block] | 31 | X-XSS-Protection: [1; mode=block] |
33 | content-length: ['1598'] | 32 | content-length: ['1597'] |
34 | status: {code: 200, message: OK} | 33 | status: {code: 200, message: OK} |
35 | - request: | 34 | - request: |
36 | body: null | 35 | body: null |
@@ -42,16 +41,15 @@ interactions: | |||
42 | Content-Length: ['0'] | 41 | Content-Length: ['0'] |
43 | User-Agent: [python-requests/2.18.4] | 42 | User-Agent: [python-requests/2.18.4] |
44 | method: POST | 43 | method: POST |
45 | uri: http://localhost:3000/api/v1/statuses/101999566652865150/favourite | 44 | uri: http://localhost:3000/api/v1/statuses/102315364694961970/favourite |
46 | response: | 45 | 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 | 46 | body: {string: '{"id":"102315364694961970","created_at":"2019-06-22T13:02:47.745Z","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/102315364694961970","url":"http://localhost/@mastodonpy_test/102315364694961970","replies_count":0,"reblogs_count":0,"favourites_count":1,"favourited":true,"reblogged":false,"muted":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py |
48 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 47 | 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 | 48 | Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","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}'} | 49 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","followers_count":0,"following_count":0,"statuses_count":1,"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: | 50 | headers: |
52 | Cache-Control: ['max-age=0, private, must-revalidate'] | 51 | Cache-Control: ['no-cache, no-store'] |
53 | Content-Type: [application/json; charset=utf-8] | 52 | Content-Type: [application/json; charset=utf-8] |
54 | ETag: [W/"7d3bedf90024c88f94060734a602970a"] | ||
55 | Referrer-Policy: [strict-origin-when-cross-origin] | 53 | Referrer-Policy: [strict-origin-when-cross-origin] |
56 | Transfer-Encoding: [chunked] | 54 | Transfer-Encoding: [chunked] |
57 | Vary: ['Accept-Encoding, Origin'] | 55 | Vary: ['Accept-Encoding, Origin'] |
@@ -59,10 +57,10 @@ interactions: | |||
59 | X-Download-Options: [noopen] | 57 | X-Download-Options: [noopen] |
60 | X-Frame-Options: [SAMEORIGIN] | 58 | X-Frame-Options: [SAMEORIGIN] |
61 | X-Permitted-Cross-Domain-Policies: [none] | 59 | X-Permitted-Cross-Domain-Policies: [none] |
62 | X-Request-Id: [eef1e0e8-9db7-4704-a137-6cbcc0a56034] | 60 | X-Request-Id: [d91b5a3d-b23f-42ed-b571-8dc7a353e620] |
63 | X-Runtime: ['0.177688'] | 61 | X-Runtime: ['0.563459'] |
64 | X-XSS-Protection: [1; mode=block] | 62 | X-XSS-Protection: [1; mode=block] |
65 | content-length: ['1582'] | 63 | content-length: ['1581'] |
66 | status: {code: 200, message: OK} | 64 | status: {code: 200, message: OK} |
67 | - request: | 65 | - request: |
68 | body: null | 66 | body: null |
@@ -76,12 +74,11 @@ interactions: | |||
76 | uri: http://localhost:3000/api/v1/suggestions | 74 | uri: http://localhost:3000/api/v1/suggestions |
77 | response: | 75 | response: |
78 | body: {string: '[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 76 | body: {string: '[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
79 | Lennon","locked":true,"bot":false,"created_at":"2019-04-27T20:03:12.393Z","note":"\u003cp\u003eI | 77 | Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","note":"\u003cp\u003eI |
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}]}]'} | 78 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","followers_count":0,"following_count":0,"statuses_count":1,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]}]'} |
81 | headers: | 79 | headers: |
82 | Cache-Control: ['max-age=0, private, must-revalidate'] | 80 | Cache-Control: ['no-cache, no-store'] |
83 | Content-Type: [application/json; charset=utf-8] | 81 | Content-Type: [application/json; charset=utf-8] |
84 | ETag: [W/"f5fc20f36db05b447842aa50c237d66f"] | ||
85 | Referrer-Policy: [strict-origin-when-cross-origin] | 82 | Referrer-Policy: [strict-origin-when-cross-origin] |
86 | Transfer-Encoding: [chunked] | 83 | Transfer-Encoding: [chunked] |
87 | Vary: ['Accept-Encoding, Origin'] | 84 | Vary: ['Accept-Encoding, Origin'] |
@@ -89,10 +86,10 @@ interactions: | |||
89 | X-Download-Options: [noopen] | 86 | X-Download-Options: [noopen] |
90 | X-Frame-Options: [SAMEORIGIN] | 87 | X-Frame-Options: [SAMEORIGIN] |
91 | X-Permitted-Cross-Domain-Policies: [none] | 88 | X-Permitted-Cross-Domain-Policies: [none] |
92 | X-Request-Id: [5a67b07e-8380-4e7f-b462-9dcc7877b1ae] | 89 | X-Request-Id: [c841953f-e1be-4c9a-a661-ce5fcff3c30a] |
93 | X-Runtime: ['0.019551'] | 90 | X-Runtime: ['0.059090'] |
94 | X-XSS-Protection: [1; mode=block] | 91 | X-XSS-Protection: [1; mode=block] |
95 | content-length: ['932'] | 92 | content-length: ['931'] |
96 | status: {code: 200, message: OK} | 93 | status: {code: 200, message: OK} |
97 | - request: | 94 | - request: |
98 | body: null | 95 | body: null |
@@ -108,9 +105,8 @@ interactions: | |||
108 | response: | 105 | response: |
109 | body: {string: '{}'} | 106 | body: {string: '{}'} |
110 | headers: | 107 | headers: |
111 | Cache-Control: ['max-age=0, private, must-revalidate'] | 108 | Cache-Control: ['no-cache, no-store'] |
112 | Content-Type: [application/json; charset=utf-8] | 109 | Content-Type: [application/json; charset=utf-8] |
113 | ETag: [W/"a32095b18e61cd32984e3d6da4536825"] | ||
114 | Referrer-Policy: [strict-origin-when-cross-origin] | 110 | Referrer-Policy: [strict-origin-when-cross-origin] |
115 | Transfer-Encoding: [chunked] | 111 | Transfer-Encoding: [chunked] |
116 | Vary: ['Accept-Encoding, Origin'] | 112 | Vary: ['Accept-Encoding, Origin'] |
@@ -118,8 +114,8 @@ interactions: | |||
118 | X-Download-Options: [noopen] | 114 | X-Download-Options: [noopen] |
119 | X-Frame-Options: [SAMEORIGIN] | 115 | X-Frame-Options: [SAMEORIGIN] |
120 | X-Permitted-Cross-Domain-Policies: [none] | 116 | X-Permitted-Cross-Domain-Policies: [none] |
121 | X-Request-Id: [b4c22d5b-fbf0-4387-9888-0ebab3da023a] | 117 | X-Request-Id: [f599a468-8bd0-4be1-b4a0-fd7e6b1f7cbd] |
122 | X-Runtime: ['0.015695'] | 118 | X-Runtime: ['0.082804'] |
123 | X-XSS-Protection: [1; mode=block] | 119 | X-XSS-Protection: [1; mode=block] |
124 | content-length: ['2'] | 120 | content-length: ['2'] |
125 | status: {code: 200, message: OK} | 121 | status: {code: 200, message: OK} |
@@ -136,9 +132,8 @@ interactions: | |||
136 | response: | 132 | response: |
137 | body: {string: '[]'} | 133 | body: {string: '[]'} |
138 | headers: | 134 | headers: |
139 | Cache-Control: ['max-age=0, private, must-revalidate'] | 135 | Cache-Control: ['no-cache, no-store'] |
140 | Content-Type: [application/json; charset=utf-8] | 136 | Content-Type: [application/json; charset=utf-8] |
141 | ETag: [W/"237aa823c9dccb534cbd3f0f3da2818e"] | ||
142 | Referrer-Policy: [strict-origin-when-cross-origin] | 137 | Referrer-Policy: [strict-origin-when-cross-origin] |
143 | Transfer-Encoding: [chunked] | 138 | Transfer-Encoding: [chunked] |
144 | Vary: ['Accept-Encoding, Origin'] | 139 | Vary: ['Accept-Encoding, Origin'] |
@@ -146,8 +141,8 @@ interactions: | |||
146 | X-Download-Options: [noopen] | 141 | X-Download-Options: [noopen] |
147 | X-Frame-Options: [SAMEORIGIN] | 142 | X-Frame-Options: [SAMEORIGIN] |
148 | X-Permitted-Cross-Domain-Policies: [none] | 143 | X-Permitted-Cross-Domain-Policies: [none] |
149 | X-Request-Id: [7c64aae5-1f4d-49f1-86ae-ea68a8674fee] | 144 | X-Request-Id: [a99fc0ef-84a1-4aa7-a00d-7cb0be952f0a] |
150 | X-Runtime: ['0.014172'] | 145 | X-Runtime: ['0.027385'] |
151 | X-XSS-Protection: [1; mode=block] | 146 | X-XSS-Protection: [1; mode=block] |
152 | content-length: ['2'] | 147 | content-length: ['2'] |
153 | status: {code: 200, message: OK} | 148 | status: {code: 200, message: OK} |
@@ -161,13 +156,15 @@ interactions: | |||
161 | Content-Length: ['0'] | 156 | Content-Length: ['0'] |
162 | User-Agent: [python-requests/2.18.4] | 157 | User-Agent: [python-requests/2.18.4] |
163 | method: DELETE | 158 | method: DELETE |
164 | uri: http://localhost:3000/api/v1/statuses/101999566652865150 | 159 | uri: http://localhost:3000/api/v1/statuses/102315364694961970 |
165 | response: | 160 | response: |
166 | body: {string: '{}'} | 161 | body: {string: '{"id":"102315364694961970","created_at":"2019-06-22T13:02:47.745Z","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/102315364694961970","url":"http://localhost/@mastodonpy_test/102315364694961970","replies_count":0,"reblogs_count":0,"favourites_count":1,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"text":"Toot!","reblog":null,"application":{"name":"Mastodon.py |
162 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
163 | Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","note":"\u003cp\u003eI | ||
164 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","followers_count":0,"following_count":0,"statuses_count":1,"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}'} | ||
167 | headers: | 165 | headers: |
168 | Cache-Control: ['max-age=0, private, must-revalidate'] | 166 | Cache-Control: ['no-cache, no-store'] |
169 | Content-Type: [application/json; charset=utf-8] | 167 | Content-Type: [application/json; charset=utf-8] |
170 | ETag: [W/"a32095b18e61cd32984e3d6da4536825"] | ||
171 | Referrer-Policy: [strict-origin-when-cross-origin] | 168 | Referrer-Policy: [strict-origin-when-cross-origin] |
172 | Transfer-Encoding: [chunked] | 169 | Transfer-Encoding: [chunked] |
173 | Vary: ['Accept-Encoding, Origin'] | 170 | Vary: ['Accept-Encoding, Origin'] |
@@ -175,9 +172,9 @@ interactions: | |||
175 | X-Download-Options: [noopen] | 172 | X-Download-Options: [noopen] |
176 | X-Frame-Options: [SAMEORIGIN] | 173 | X-Frame-Options: [SAMEORIGIN] |
177 | X-Permitted-Cross-Domain-Policies: [none] | 174 | X-Permitted-Cross-Domain-Policies: [none] |
178 | X-Request-Id: [a31dd745-e6d3-4449-9bd5-5e2894fd56da] | 175 | X-Request-Id: [0ccbf81f-4930-4b85-bb78-5b0d9c724c42] |
179 | X-Runtime: ['0.024104'] | 176 | X-Runtime: ['0.132072'] |
180 | X-XSS-Protection: [1; mode=block] | 177 | X-XSS-Protection: [1; mode=block] |
181 | content-length: ['2'] | 178 | content-length: ['1567'] |
182 | status: {code: 200, message: OK} | 179 | status: {code: 200, message: OK} |
183 | version: 1 | 180 | version: 1 |