aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2019-04-27 21:04:06 +0200
committerLorenz Diener <[email protected]>2019-04-27 21:04:06 +0200
commite3936649745a627fa2c31fc7b8602793b7d6027b (patch)
treec478eb7f45acbfe63faec6151a23658dfc0da3e6 /tests/cassettes/test_status_reblog_unreblog.yaml
parentc1418e9f3f37319d5142e0fa058e2eab434c4e5d (diff)
downloadmastodon.py-e3936649745a627fa2c31fc7b8602793b7d6027b.tar.gz
Test fixups and small 2.8 fixes
Pagination backwards is broken presently.
Diffstat (limited to 'tests/cassettes/test_status_reblog_unreblog.yaml')
-rw-r--r--tests/cassettes/test_status_reblog_unreblog.yaml62
1 files changed, 31 insertions, 31 deletions
diff --git a/tests/cassettes/test_status_reblog_unreblog.yaml b/tests/cassettes/test_status_reblog_unreblog.yaml
index 0455744..3943580 100644
--- a/tests/cassettes/test_status_reblog_unreblog.yaml
+++ b/tests/cassettes/test_status_reblog_unreblog.yaml
@@ -12,14 +12,14 @@ 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":"100465732268756649","created_at":"2018-07-30T21:16:56.711Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/100465732268756649","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100465732268756649","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 15 body: {string: '{"id":"101999517521227872","created_at":"2019-04-27T18:18:42.339Z","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/101999517521227872","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost/@mastodonpy_test/101999517521227872","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 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":"2018-07-13T23:02:25.260Z","note":"\u003cp\u003eI 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: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":114,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 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":63,"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: ['max-age=0, private, must-revalidate']
21 Content-Type: [application/json; charset=utf-8] 21 Content-Type: [application/json; charset=utf-8]
22 ETag: [W/"9f6e26b1136b65f4d84082378a6a690b"] 22 ETag: [W/"6db7103684f90b53b6efd5b7943e0902"]
23 Referrer-Policy: [strict-origin-when-cross-origin] 23 Referrer-Policy: [strict-origin-when-cross-origin]
24 Transfer-Encoding: [chunked] 24 Transfer-Encoding: [chunked]
25 Vary: ['Accept-Encoding, Origin'] 25 Vary: ['Accept-Encoding, Origin']
@@ -27,10 +27,10 @@ interactions:
27 X-Download-Options: [noopen] 27 X-Download-Options: [noopen]
28 X-Frame-Options: [SAMEORIGIN] 28 X-Frame-Options: [SAMEORIGIN]
29 X-Permitted-Cross-Domain-Policies: [none] 29 X-Permitted-Cross-Domain-Policies: [none]
30 X-Request-Id: [150e373d-e9d5-403a-9fdf-4bec5e59983f] 30 X-Request-Id: [7e9c1d71-07d3-4834-918e-fdab93b5b615]
31 X-Runtime: ['0.172229'] 31 X-Runtime: ['0.118711']
32 X-XSS-Protection: [1; mode=block] 32 X-XSS-Protection: [1; mode=block]
33 content-length: ['1510'] 33 content-length: ['1598']
34 status: {code: 200, message: OK} 34 status: {code: 200, message: OK}
35- request: 35- request:
36 body: null 36 body: null
@@ -42,21 +42,21 @@ interactions:
42 Content-Length: ['0'] 42 Content-Length: ['0']
43 User-Agent: [python-requests/2.18.4] 43 User-Agent: [python-requests/2.18.4]
44 method: POST 44 method: POST
45 uri: http://localhost:3000/api/v1/statuses/100465732268756649/reblog 45 uri: http://localhost:3000/api/v1/statuses/101999517521227872/reblog
46 response: 46 response:
47 body: {string: '{"id":"100465732283529211","created_at":"2018-07-30T21:16:56.933Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":null,"uri":"http://localhost:3000/users/mastodonpy_test/statuses/100465732283529211/activity","content":"\u003cp\u003eRT 47 body: {string: '{"id":"101999517533218750","created_at":"2019-04-27T18:18:42.525Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":null,"uri":"http://localhost/users/mastodonpy_test/statuses/101999517533218750/activity","content":"\u003cp\u003eRT
48 \u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" 48 \u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost/@mastodonpy_test\"
49 class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e 49 class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e
50 Toot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100465732283529211","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":true,"muted":false,"reblog":{"id":"100465732268756649","created_at":"2018-07-30T21:16:56.711Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/100465732268756649","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100465732268756649","reblogs_count":1,"favourites_count":0,"favourited":false,"reblogged":true,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 50 Toot!\u003c/p\u003e","url":"http://localhost/@mastodonpy_test/101999517533218750","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":true,"muted":false,"reblog":{"id":"101999517521227872","created_at":"2019-04-27T18:18:42.339Z","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/101999517521227872","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost/@mastodonpy_test/101999517521227872","replies_count":0,"reblogs_count":1,"favourites_count":0,"favourited":false,"reblogged":true,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
51 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 51 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
52 Lennon","locked":true,"bot":false,"created_at":"2018-07-13T23:02:25.260Z","note":"\u003cp\u003eI 52 Lennon","locked":true,"bot":false,"created_at":"2019-04-27T20:03:12.393Z","note":"\u003cp\u003eI
53 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":114,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},"application":null,"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 53 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},"application":null,"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
54 Lennon","locked":true,"bot":false,"created_at":"2018-07-13T23:02:25.260Z","note":"\u003cp\u003eI 54 Lennon","locked":true,"bot":false,"created_at":"2019-04-27T20:03:12.393Z","note":"\u003cp\u003eI
55 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":115,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 55 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}'}
56 headers: 56 headers:
57 Cache-Control: ['max-age=0, private, must-revalidate'] 57 Cache-Control: ['max-age=0, private, must-revalidate']
58 Content-Type: [application/json; charset=utf-8] 58 Content-Type: [application/json; charset=utf-8]
59 ETag: [W/"c2504188f71840e76beafe411aa39c54"] 59 ETag: [W/"18798e29ab3953f386ac15fffb1dc681"]
60 Referrer-Policy: [strict-origin-when-cross-origin] 60 Referrer-Policy: [strict-origin-when-cross-origin]
61 Transfer-Encoding: [chunked] 61 Transfer-Encoding: [chunked]
62 Vary: ['Accept-Encoding, Origin'] 62 Vary: ['Accept-Encoding, Origin']
@@ -64,10 +64,10 @@ interactions:
64 X-Download-Options: [noopen] 64 X-Download-Options: [noopen]
65 X-Frame-Options: [SAMEORIGIN] 65 X-Frame-Options: [SAMEORIGIN]
66 X-Permitted-Cross-Domain-Policies: [none] 66 X-Permitted-Cross-Domain-Policies: [none]
67 X-Request-Id: [8c3d970a-8024-4590-b2dc-9058c83e7e11] 67 X-Request-Id: [591dd657-7feb-4c0a-bd59-73889445e6c0]
68 X-Runtime: ['0.250227'] 68 X-Runtime: ['0.287865']
69 X-XSS-Protection: [1; mode=block] 69 X-XSS-Protection: [1; mode=block]
70 content-length: ['3166'] 70 content-length: ['3337']
71 status: {code: 200, message: OK} 71 status: {code: 200, message: OK}
72- request: 72- request:
73 body: null 73 body: null
@@ -79,16 +79,16 @@ interactions:
79 Content-Length: ['0'] 79 Content-Length: ['0']
80 User-Agent: [python-requests/2.18.4] 80 User-Agent: [python-requests/2.18.4]
81 method: POST 81 method: POST
82 uri: http://localhost:3000/api/v1/statuses/100465732268756649/unreblog 82 uri: http://localhost:3000/api/v1/statuses/101999517521227872/unreblog
83 response: 83 response:
84 body: {string: '{"id":"100465732268756649","created_at":"2018-07-30T21:16:56.711Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/100465732268756649","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100465732268756649","reblogs_count":1,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 84 body: {string: '{"id":"101999517521227872","created_at":"2019-04-27T18:18:42.339Z","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/101999517521227872","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost/@mastodonpy_test/101999517521227872","replies_count":0,"reblogs_count":1,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
85 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 85 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
86 Lennon","locked":true,"bot":false,"created_at":"2018-07-13T23:02:25.260Z","note":"\u003cp\u003eI 86 Lennon","locked":true,"bot":false,"created_at":"2019-04-27T20:03:12.393Z","note":"\u003cp\u003eI
87 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":115,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 87 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}'}
88 headers: 88 headers:
89 Cache-Control: ['max-age=0, private, must-revalidate'] 89 Cache-Control: ['max-age=0, private, must-revalidate']
90 Content-Type: [application/json; charset=utf-8] 90 Content-Type: [application/json; charset=utf-8]
91 ETag: [W/"8bd613ffef6c37777547d960ce2e1162"] 91 ETag: [W/"b7783fe2d327a88e64a96ee2762dd5dc"]
92 Referrer-Policy: [strict-origin-when-cross-origin] 92 Referrer-Policy: [strict-origin-when-cross-origin]
93 Transfer-Encoding: [chunked] 93 Transfer-Encoding: [chunked]
94 Vary: ['Accept-Encoding, Origin'] 94 Vary: ['Accept-Encoding, Origin']
@@ -96,10 +96,10 @@ interactions:
96 X-Download-Options: [noopen] 96 X-Download-Options: [noopen]
97 X-Frame-Options: [SAMEORIGIN] 97 X-Frame-Options: [SAMEORIGIN]
98 X-Permitted-Cross-Domain-Policies: [none] 98 X-Permitted-Cross-Domain-Policies: [none]
99 X-Request-Id: [49c1a8ab-5250-40bd-b6ef-fda8e1ac0a5d] 99 X-Request-Id: [138c748b-74de-454b-a747-cc4b9db7058d]
100 X-Runtime: ['0.094739'] 100 X-Runtime: ['0.068494']
101 X-XSS-Protection: [1; mode=block] 101 X-XSS-Protection: [1; mode=block]
102 content-length: ['1510'] 102 content-length: ['1598']
103 status: {code: 200, message: OK} 103 status: {code: 200, message: OK}
104- request: 104- request:
105 body: null 105 body: null
@@ -111,13 +111,13 @@ interactions:
111 Content-Length: ['0'] 111 Content-Length: ['0']
112 User-Agent: [python-requests/2.18.4] 112 User-Agent: [python-requests/2.18.4]
113 method: DELETE 113 method: DELETE
114 uri: http://localhost:3000/api/v1/statuses/100465732268756649 114 uri: http://localhost:3000/api/v1/statuses/101999517521227872
115 response: 115 response:
116 body: {string: '{}'} 116 body: {string: '{}'}
117 headers: 117 headers:
118 Cache-Control: ['max-age=0, private, must-revalidate'] 118 Cache-Control: ['max-age=0, private, must-revalidate']
119 Content-Type: [application/json; charset=utf-8] 119 Content-Type: [application/json; charset=utf-8]
120 ETag: [W/"81850b7d164d2e3521307c1d77e0d176"] 120 ETag: [W/"cb6c07d89597cfa64d140d572188e632"]
121 Referrer-Policy: [strict-origin-when-cross-origin] 121 Referrer-Policy: [strict-origin-when-cross-origin]
122 Transfer-Encoding: [chunked] 122 Transfer-Encoding: [chunked]
123 Vary: ['Accept-Encoding, Origin'] 123 Vary: ['Accept-Encoding, Origin']
@@ -125,8 +125,8 @@ interactions:
125 X-Download-Options: [noopen] 125 X-Download-Options: [noopen]
126 X-Frame-Options: [SAMEORIGIN] 126 X-Frame-Options: [SAMEORIGIN]
127 X-Permitted-Cross-Domain-Policies: [none] 127 X-Permitted-Cross-Domain-Policies: [none]
128 X-Request-Id: [c07c611d-d08e-4dff-b4f8-0150804aff60] 128 X-Request-Id: [f13b887f-85d7-4ef1-a187-18286b4cfb3a]
129 X-Runtime: ['0.068429'] 129 X-Runtime: ['0.046478']
130 X-XSS-Protection: [1; mode=block] 130 X-XSS-Protection: [1; mode=block]
131 content-length: ['2'] 131 content-length: ['2']
132 status: {code: 200, message: OK} 132 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)