diff options
author | Lorenz Diener <[email protected]> | 2018-06-05 22:10:31 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-06-05 22:10:31 +0200 |
commit | 18c6b3b90ff8bd607df18af86d092ac1205ffbf7 (patch) | |
tree | 203729696d2639d5bf221168ad6c76a150130ab0 /tests/cassettes/test_status_reblog_unreblog.yaml | |
parent | 36194fd60c8e5c6d30134134e32dd24981aee324 (diff) | |
download | mastodon.py-18c6b3b90ff8bd607df18af86d092ac1205ffbf7.tar.gz |
New casettes, small fixes
Diffstat (limited to 'tests/cassettes/test_status_reblog_unreblog.yaml')
-rw-r--r-- | tests/cassettes/test_status_reblog_unreblog.yaml | 72 |
1 files changed, 42 insertions, 30 deletions
diff --git a/tests/cassettes/test_status_reblog_unreblog.yaml b/tests/cassettes/test_status_reblog_unreblog.yaml index ce65c0f..d3f7f99 100644 --- a/tests/cassettes/test_status_reblog_unreblog.yaml +++ b/tests/cassettes/test_status_reblog_unreblog.yaml | |||
@@ -12,22 +12,25 @@ 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":"99984774570760254","created_at":"2018-05-06T22:43:04.648Z","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/99984774570760254","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984774570760254","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 15 | body: {string: '{"id":"100154010099597779","created_at":"2018-06-05T20:01:53.899Z","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/100154010099597779","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100154010099597779","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,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI | 17 | Lennon","locked":true,"bot":false,"created_at":"2018-06-05T21:58:43.069Z","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":1,"statuses_count":2},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | 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_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":1,"statuses_count":22,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} |
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/"ca8cbfbd0f23e4df23387d5364e86729"] | 22 | ETag: [W/"b63967d846d4160912c9ac077b7a65c2"] |
23 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
23 | Transfer-Encoding: [chunked] | 24 | Transfer-Encoding: [chunked] |
24 | Vary: ['Accept-Encoding, Origin'] | 25 | Vary: ['Accept-Encoding, Origin'] |
25 | X-Content-Type-Options: [nosniff] | 26 | X-Content-Type-Options: [nosniff] |
27 | X-Download-Options: [noopen] | ||
26 | X-Frame-Options: [SAMEORIGIN] | 28 | X-Frame-Options: [SAMEORIGIN] |
27 | X-Request-Id: [cc490ef0-6e2b-41f5-81d9-4d91bb29582d] | 29 | X-Permitted-Cross-Domain-Policies: [none] |
28 | X-Runtime: ['0.261054'] | 30 | X-Request-Id: [a7dcb39f-6301-412e-b651-ac764bfcd26c] |
31 | X-Runtime: ['0.382098'] | ||
29 | X-XSS-Protection: [1; mode=block] | 32 | X-XSS-Protection: [1; mode=block] |
30 | content-length: ['1400'] | 33 | content-length: ['1505'] |
31 | status: {code: 200, message: OK} | 34 | status: {code: 200, message: OK} |
32 | - request: | 35 | - request: |
33 | body: null | 36 | body: null |
@@ -39,29 +42,32 @@ interactions: | |||
39 | Content-Length: ['0'] | 42 | Content-Length: ['0'] |
40 | User-Agent: [python-requests/2.9.1] | 43 | User-Agent: [python-requests/2.9.1] |
41 | method: POST | 44 | method: POST |
42 | uri: http://localhost:3000/api/v1/statuses/99984774570760254/reblog | 45 | uri: http://localhost:3000/api/v1/statuses/100154010099597779/reblog |
43 | response: | 46 | response: |
44 | body: {string: '{"id":"99984774598831870","created_at":"2018-05-06T22:43:05.072Z","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/99984774598831870/activity","content":"\u003cp\u003eRT | 47 | body: {string: '{"id":"100154010139565589","created_at":"2018-06-05T20:01:54.498Z","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/100154010139565589/activity","content":"\u003cp\u003eRT |
45 | \u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | 48 | \u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" |
46 | 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 |
47 | Toot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984774598831870","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":true,"muted":false,"reblog":{"id":"99984774570760254","created_at":"2018-05-06T22:43:04.648Z","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/99984774570760254","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984774570760254","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:3000/@mastodonpy_test/100154010139565589","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":true,"muted":false,"reblog":{"id":"100154010099597779","created_at":"2018-06-05T20:01:53.899Z","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/100154010099597779","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100154010099597779","reblogs_count":1,"favourites_count":0,"favourited":false,"reblogged":true,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py |
48 | 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 |
49 | Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI | 52 | Lennon","locked":true,"bot":false,"created_at":"2018-06-05T21:58:43.069Z","note":"\u003cp\u003eI |
50 | 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":1,"statuses_count":2},"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:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":1,"statuses_count":22,"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 |
51 | Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI | 54 | Lennon","locked":true,"bot":false,"created_at":"2018-06-05T21:58:43.069Z","note":"\u003cp\u003eI |
52 | 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":1,"statuses_count":3},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | 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_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":1,"statuses_count":23,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} |
53 | headers: | 56 | headers: |
54 | Cache-Control: ['max-age=0, private, must-revalidate'] | 57 | Cache-Control: ['max-age=0, private, must-revalidate'] |
55 | Content-Type: [application/json; charset=utf-8] | 58 | Content-Type: [application/json; charset=utf-8] |
56 | ETag: [W/"52dca228fbebc94bf2e25664cbf1374f"] | 59 | ETag: [W/"113806f449daa6facc5474f0cb629d70"] |
60 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
57 | Transfer-Encoding: [chunked] | 61 | Transfer-Encoding: [chunked] |
58 | Vary: ['Accept-Encoding, Origin'] | 62 | Vary: ['Accept-Encoding, Origin'] |
59 | X-Content-Type-Options: [nosniff] | 63 | X-Content-Type-Options: [nosniff] |
64 | X-Download-Options: [noopen] | ||
60 | X-Frame-Options: [SAMEORIGIN] | 65 | X-Frame-Options: [SAMEORIGIN] |
61 | X-Request-Id: [1ceac8bf-61b7-4018-932a-f8fb3845b08f] | 66 | X-Permitted-Cross-Domain-Policies: [none] |
62 | X-Runtime: ['0.407328'] | 67 | X-Request-Id: [a06805b0-3a94-4c75-a5f3-84ccffd46d3a] |
68 | X-Runtime: ['0.761109'] | ||
63 | X-XSS-Protection: [1; mode=block] | 69 | X-XSS-Protection: [1; mode=block] |
64 | content-length: ['2946'] | 70 | content-length: ['3156'] |
65 | status: {code: 200, message: OK} | 71 | status: {code: 200, message: OK} |
66 | - request: | 72 | - request: |
67 | body: null | 73 | body: null |
@@ -73,24 +79,27 @@ interactions: | |||
73 | Content-Length: ['0'] | 79 | Content-Length: ['0'] |
74 | User-Agent: [python-requests/2.9.1] | 80 | User-Agent: [python-requests/2.9.1] |
75 | method: POST | 81 | method: POST |
76 | uri: http://localhost:3000/api/v1/statuses/99984774570760254/unreblog | 82 | uri: http://localhost:3000/api/v1/statuses/100154010099597779/unreblog |
77 | response: | 83 | response: |
78 | body: {string: '{"id":"99984774570760254","created_at":"2018-05-06T22:43:04.648Z","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/99984774570760254","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984774570760254","reblogs_count":1,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 84 | body: {string: '{"id":"100154010099597779","created_at":"2018-06-05T20:01:53.899Z","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/100154010099597779","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100154010099597779","reblogs_count":1,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py |
79 | 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 |
80 | Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI | 86 | Lennon","locked":true,"bot":false,"created_at":"2018-06-05T21:58:43.069Z","note":"\u003cp\u003eI |
81 | 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":1,"statuses_count":3},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | 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_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":1,"statuses_count":23,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} |
82 | headers: | 88 | headers: |
83 | Cache-Control: ['max-age=0, private, must-revalidate'] | 89 | Cache-Control: ['max-age=0, private, must-revalidate'] |
84 | Content-Type: [application/json; charset=utf-8] | 90 | Content-Type: [application/json; charset=utf-8] |
85 | ETag: [W/"1ba6a7e82698f5aef0c0ec89f246287c"] | 91 | ETag: [W/"83fae164b392972754d23e224fed43aa"] |
92 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
86 | Transfer-Encoding: [chunked] | 93 | Transfer-Encoding: [chunked] |
87 | Vary: ['Accept-Encoding, Origin'] | 94 | Vary: ['Accept-Encoding, Origin'] |
88 | X-Content-Type-Options: [nosniff] | 95 | X-Content-Type-Options: [nosniff] |
96 | X-Download-Options: [noopen] | ||
89 | X-Frame-Options: [SAMEORIGIN] | 97 | X-Frame-Options: [SAMEORIGIN] |
90 | X-Request-Id: [f3ed6edf-c376-4831-ba1a-0789aa3c6d89] | 98 | X-Permitted-Cross-Domain-Policies: [none] |
91 | X-Runtime: ['0.111573'] | 99 | X-Request-Id: [5f1fff8a-784d-452b-9b5d-d3176b24b207] |
100 | X-Runtime: ['0.142418'] | ||
92 | X-XSS-Protection: [1; mode=block] | 101 | X-XSS-Protection: [1; mode=block] |
93 | content-length: ['1400'] | 102 | content-length: ['1505'] |
94 | status: {code: 200, message: OK} | 103 | status: {code: 200, message: OK} |
95 | - request: | 104 | - request: |
96 | body: null | 105 | body: null |
@@ -102,19 +111,22 @@ interactions: | |||
102 | Content-Length: ['0'] | 111 | Content-Length: ['0'] |
103 | User-Agent: [python-requests/2.9.1] | 112 | User-Agent: [python-requests/2.9.1] |
104 | method: DELETE | 113 | method: DELETE |
105 | uri: http://localhost:3000/api/v1/statuses/99984774570760254 | 114 | uri: http://localhost:3000/api/v1/statuses/100154010099597779 |
106 | response: | 115 | response: |
107 | body: {string: '{}'} | 116 | body: {string: '{}'} |
108 | headers: | 117 | headers: |
109 | Cache-Control: ['max-age=0, private, must-revalidate'] | 118 | Cache-Control: ['max-age=0, private, must-revalidate'] |
110 | Content-Type: [application/json; charset=utf-8] | 119 | Content-Type: [application/json; charset=utf-8] |
111 | ETag: [W/"5eead9ec6d843dfb3a8df164ffdb987b"] | 120 | ETag: [W/"7fc7ddd3725cbe732cacf51f07faf97b"] |
121 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
112 | Transfer-Encoding: [chunked] | 122 | Transfer-Encoding: [chunked] |
113 | Vary: ['Accept-Encoding, Origin'] | 123 | Vary: ['Accept-Encoding, Origin'] |
114 | X-Content-Type-Options: [nosniff] | 124 | X-Content-Type-Options: [nosniff] |
125 | X-Download-Options: [noopen] | ||
115 | X-Frame-Options: [SAMEORIGIN] | 126 | X-Frame-Options: [SAMEORIGIN] |
116 | X-Request-Id: [3bf2e541-7f61-46d6-ae5d-84b90d7ca868] | 127 | X-Permitted-Cross-Domain-Policies: [none] |
117 | X-Runtime: ['0.120718'] | 128 | X-Request-Id: [d28e28d9-a4e8-43ed-91e1-5fe9454fb907] |
129 | X-Runtime: ['0.081965'] | ||
118 | X-XSS-Protection: [1; mode=block] | 130 | X-XSS-Protection: [1; mode=block] |
119 | content-length: ['2'] | 131 | content-length: ['2'] |
120 | status: {code: 200, message: OK} | 132 | status: {code: 200, message: OK} |