diff options
author | Lorenz Diener <[email protected]> | 2020-02-22 20:31:33 +0100 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2020-02-22 20:31:33 +0100 |
commit | 4f90728a4a8c98f3ee7e9aab5a05f93c152a375d (patch) | |
tree | a06d71bfcc7be6e8fe6d17a881cebfbafbe51963 /tests/cassettes/test_follow_suggestions.yaml | |
parent | 2132615269aa80a01d9af63d90e075197603fa3e (diff) | |
download | mastodon.py-4f90728a4a8c98f3ee7e9aab5a05f93c152a375d.tar.gz |
Fix tests for 3.1.1
Diffstat (limited to 'tests/cassettes/test_follow_suggestions.yaml')
-rw-r--r-- | tests/cassettes/test_follow_suggestions.yaml | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/tests/cassettes/test_follow_suggestions.yaml b/tests/cassettes/test_follow_suggestions.yaml index 0b8d817..8257559 100644 --- a/tests/cassettes/test_follow_suggestions.yaml +++ b/tests/cassettes/test_follow_suggestions.yaml | |||
@@ -12,10 +12,10 @@ 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":"102951420698979546","created_at":"2019-10-12T21:00:12.138Z","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/102951420698979546","url":"http://localhost/@mastodonpy_test/102951420698979546","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 | 15 | body: {string: '{"id":"103704145104257230","created_at":"2020-02-22T19:27:55.062Z","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/103704145104257230","url":"http://localhost/@mastodonpy_test/103704145104257230","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":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":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003eI | 17 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T20:26:54.402Z","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?1570914010","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570914010","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570914011","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570914011","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2019-10-12T21:00:12.147Z","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/4cb344b864cbd0bf.jpeg?1582399672","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/4cb344b864cbd0bf.jpeg?1582399672","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/9b01d187d95da821.jpeg?1582399672","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/9b01d187d95da821.jpeg?1582399672","followers_count":0,"following_count":0,"statuses_count":1,"last_status_at":"2020-02-22","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: ['no-cache, no-store'] | 20 | Cache-Control: ['no-cache, no-store'] |
21 | Content-Type: [application/json; charset=utf-8] | 21 | Content-Type: [application/json; charset=utf-8] |
@@ -26,10 +26,10 @@ interactions: | |||
26 | X-Download-Options: [noopen] | 26 | X-Download-Options: [noopen] |
27 | X-Frame-Options: [SAMEORIGIN] | 27 | X-Frame-Options: [SAMEORIGIN] |
28 | X-Permitted-Cross-Domain-Policies: [none] | 28 | X-Permitted-Cross-Domain-Policies: [none] |
29 | X-Request-Id: [4fc2e27a-277d-42e9-a5e8-4f42d35ed45d] | 29 | X-Request-Id: [0d5e8161-80a2-4e21-bf8c-cbc6a8bed842] |
30 | X-Runtime: ['0.136059'] | 30 | X-Runtime: ['0.171074'] |
31 | X-XSS-Protection: [1; mode=block] | 31 | X-XSS-Protection: [1; mode=block] |
32 | content-length: ['1642'] | 32 | content-length: ['1676'] |
33 | status: {code: 200, message: OK} | 33 | status: {code: 200, message: OK} |
34 | - request: | 34 | - request: |
35 | body: null | 35 | body: null |
@@ -41,12 +41,12 @@ interactions: | |||
41 | Content-Length: ['0'] | 41 | Content-Length: ['0'] |
42 | User-Agent: [python-requests/2.18.4] | 42 | User-Agent: [python-requests/2.18.4] |
43 | method: POST | 43 | method: POST |
44 | uri: http://localhost:3000/api/v1/statuses/102951420698979546/favourite | 44 | uri: http://localhost:3000/api/v1/statuses/103704145104257230/favourite |
45 | response: | 45 | response: |
46 | body: {string: '{"id":"102951420698979546","created_at":"2019-10-12T21:00:12.138Z","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/102951420698979546","url":"http://localhost/@mastodonpy_test/102951420698979546","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 | 46 | body: {string: '{"id":"103704145104257230","created_at":"2020-02-22T19:27:55.062Z","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/103704145104257230","url":"http://localhost/@mastodonpy_test/103704145104257230","replies_count":0,"reblogs_count":0,"favourites_count":1,"favourited":true,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py |
47 | 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 |
48 | Lennon","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003eI | 48 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003eI |
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?1570914010","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570914010","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570914011","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570914011","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2019-10-12T21:00:12.147Z","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/4cb344b864cbd0bf.jpeg?1582399672","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/4cb344b864cbd0bf.jpeg?1582399672","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/9b01d187d95da821.jpeg?1582399672","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/9b01d187d95da821.jpeg?1582399672","followers_count":0,"following_count":0,"statuses_count":1,"last_status_at":"2020-02-22","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}'} |
50 | headers: | 50 | headers: |
51 | Cache-Control: ['no-cache, no-store'] | 51 | Cache-Control: ['no-cache, no-store'] |
52 | Content-Type: [application/json; charset=utf-8] | 52 | Content-Type: [application/json; charset=utf-8] |
@@ -57,10 +57,10 @@ interactions: | |||
57 | X-Download-Options: [noopen] | 57 | X-Download-Options: [noopen] |
58 | X-Frame-Options: [SAMEORIGIN] | 58 | X-Frame-Options: [SAMEORIGIN] |
59 | X-Permitted-Cross-Domain-Policies: [none] | 59 | X-Permitted-Cross-Domain-Policies: [none] |
60 | X-Request-Id: [140e5ceb-d5dc-4b72-9995-6b378924a9da] | 60 | X-Request-Id: [e752854a-4750-4cb2-96dd-0c6fc1b6c265] |
61 | X-Runtime: ['0.125288'] | 61 | X-Runtime: ['0.267016'] |
62 | X-XSS-Protection: [1; mode=block] | 62 | X-XSS-Protection: [1; mode=block] |
63 | content-length: ['1626'] | 63 | content-length: ['1660'] |
64 | status: {code: 200, message: OK} | 64 | status: {code: 200, message: OK} |
65 | - request: | 65 | - request: |
66 | body: null | 66 | body: null |
@@ -74,8 +74,8 @@ interactions: | |||
74 | uri: http://localhost:3000/api/v1/suggestions | 74 | uri: http://localhost:3000/api/v1/suggestions |
75 | response: | 75 | response: |
76 | 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 |
77 | Lennon","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003eI | 77 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003eI |
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?1570914010","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570914010","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570914011","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570914011","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2019-10-12T21:00:12.147Z","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/4cb344b864cbd0bf.jpeg?1582399672","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/4cb344b864cbd0bf.jpeg?1582399672","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/9b01d187d95da821.jpeg?1582399672","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/9b01d187d95da821.jpeg?1582399672","followers_count":0,"following_count":0,"statuses_count":1,"last_status_at":"2020-02-22","emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]}]'} |
79 | headers: | 79 | headers: |
80 | Cache-Control: ['no-cache, no-store'] | 80 | Cache-Control: ['no-cache, no-store'] |
81 | Content-Type: [application/json; charset=utf-8] | 81 | Content-Type: [application/json; charset=utf-8] |
@@ -86,10 +86,10 @@ interactions: | |||
86 | X-Download-Options: [noopen] | 86 | X-Download-Options: [noopen] |
87 | X-Frame-Options: [SAMEORIGIN] | 87 | X-Frame-Options: [SAMEORIGIN] |
88 | X-Permitted-Cross-Domain-Policies: [none] | 88 | X-Permitted-Cross-Domain-Policies: [none] |
89 | X-Request-Id: [5fe018f6-5924-4ba0-83c2-48df58b264aa] | 89 | X-Request-Id: [bdfe65e7-0c31-438e-be64-9ec129c2ee90] |
90 | X-Runtime: ['0.020310'] | 90 | X-Runtime: ['0.053187'] |
91 | X-XSS-Protection: [1; mode=block] | 91 | X-XSS-Protection: [1; mode=block] |
92 | content-length: ['976'] | 92 | content-length: ['991'] |
93 | status: {code: 200, message: OK} | 93 | status: {code: 200, message: OK} |
94 | - request: | 94 | - request: |
95 | body: null | 95 | body: null |
@@ -114,8 +114,8 @@ interactions: | |||
114 | X-Download-Options: [noopen] | 114 | X-Download-Options: [noopen] |
115 | X-Frame-Options: [SAMEORIGIN] | 115 | X-Frame-Options: [SAMEORIGIN] |
116 | X-Permitted-Cross-Domain-Policies: [none] | 116 | X-Permitted-Cross-Domain-Policies: [none] |
117 | X-Request-Id: [15d3b26d-2f88-45f8-9b91-3b643f1a18bf] | 117 | X-Request-Id: [2a8a190c-a1b7-4b4a-975b-115086622dc4] |
118 | X-Runtime: ['0.016807'] | 118 | X-Runtime: ['0.052815'] |
119 | X-XSS-Protection: [1; mode=block] | 119 | X-XSS-Protection: [1; mode=block] |
120 | content-length: ['2'] | 120 | content-length: ['2'] |
121 | status: {code: 200, message: OK} | 121 | status: {code: 200, message: OK} |
@@ -141,8 +141,8 @@ interactions: | |||
141 | X-Download-Options: [noopen] | 141 | X-Download-Options: [noopen] |
142 | X-Frame-Options: [SAMEORIGIN] | 142 | X-Frame-Options: [SAMEORIGIN] |
143 | X-Permitted-Cross-Domain-Policies: [none] | 143 | X-Permitted-Cross-Domain-Policies: [none] |
144 | X-Request-Id: [3b05963d-3380-441c-a748-68de8f755133] | 144 | X-Request-Id: [fb363cf2-181f-4cca-a94e-2d250b7e80b5] |
145 | X-Runtime: ['0.015068'] | 145 | X-Runtime: ['0.028023'] |
146 | X-XSS-Protection: [1; mode=block] | 146 | X-XSS-Protection: [1; mode=block] |
147 | content-length: ['2'] | 147 | content-length: ['2'] |
148 | status: {code: 200, message: OK} | 148 | status: {code: 200, message: OK} |
@@ -156,12 +156,12 @@ interactions: | |||
156 | Content-Length: ['0'] | 156 | Content-Length: ['0'] |
157 | User-Agent: [python-requests/2.18.4] | 157 | User-Agent: [python-requests/2.18.4] |
158 | method: DELETE | 158 | method: DELETE |
159 | uri: http://localhost:3000/api/v1/statuses/102951420698979546 | 159 | uri: http://localhost:3000/api/v1/statuses/103704145104257230 |
160 | response: | 160 | response: |
161 | body: {string: '{"id":"102951420698979546","created_at":"2019-10-12T21:00:12.138Z","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/102951420698979546","url":"http://localhost/@mastodonpy_test/102951420698979546","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 | 161 | body: {string: '{"id":"103704145104257230","created_at":"2020-02-22T19:27:55.062Z","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/103704145104257230","url":"http://localhost/@mastodonpy_test/103704145104257230","replies_count":0,"reblogs_count":0,"favourites_count":1,"favourited":false,"reblogged":false,"muted":false,"bookmarked":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 | 162 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
163 | Lennon","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003eI | 163 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T20:26:54.402Z","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?1570914010","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570914010","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570914011","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570914011","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2019-10-12T21:00:12.147Z","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}'} | 164 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/4cb344b864cbd0bf.jpeg?1582399672","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/4cb344b864cbd0bf.jpeg?1582399672","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/9b01d187d95da821.jpeg?1582399672","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/9b01d187d95da821.jpeg?1582399672","followers_count":0,"following_count":0,"statuses_count":1,"last_status_at":"2020-02-22","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}'} |
165 | headers: | 165 | headers: |
166 | Cache-Control: ['no-cache, no-store'] | 166 | Cache-Control: ['no-cache, no-store'] |
167 | Content-Type: [application/json; charset=utf-8] | 167 | Content-Type: [application/json; charset=utf-8] |
@@ -172,9 +172,9 @@ interactions: | |||
172 | X-Download-Options: [noopen] | 172 | X-Download-Options: [noopen] |
173 | X-Frame-Options: [SAMEORIGIN] | 173 | X-Frame-Options: [SAMEORIGIN] |
174 | X-Permitted-Cross-Domain-Policies: [none] | 174 | X-Permitted-Cross-Domain-Policies: [none] |
175 | X-Request-Id: [a564bcf2-0fed-4ebc-b64f-da11a71a5a05] | 175 | X-Request-Id: [d2c3dfc8-cc86-49e9-bc2b-c975e94cf7b5] |
176 | X-Runtime: ['0.136461'] | 176 | X-Runtime: ['0.137386'] |
177 | X-XSS-Protection: [1; mode=block] | 177 | X-XSS-Protection: [1; mode=block] |
178 | content-length: ['1612'] | 178 | content-length: ['1646'] |
179 | status: {code: 200, message: OK} | 179 | status: {code: 200, message: OK} |
180 | version: 1 | 180 | version: 1 |