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_id_hook_in_reply_to.yaml | |
parent | 36194fd60c8e5c6d30134134e32dd24981aee324 (diff) | |
download | mastodon.py-18c6b3b90ff8bd607df18af86d092ac1205ffbf7.tar.gz |
New casettes, small fixes
Diffstat (limited to 'tests/cassettes/test_id_hook_in_reply_to.yaml')
-rw-r--r-- | tests/cassettes/test_id_hook_in_reply_to.yaml | 60 |
1 files changed, 36 insertions, 24 deletions
diff --git a/tests/cassettes/test_id_hook_in_reply_to.yaml b/tests/cassettes/test_id_hook_in_reply_to.yaml index b08984e..49ce9d2 100644 --- a/tests/cassettes/test_id_hook_in_reply_to.yaml +++ b/tests/cassettes/test_id_hook_in_reply_to.yaml | |||
@@ -12,52 +12,58 @@ 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":"99984770571080110","created_at":"2018-05-06T22:42:03.626Z","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/99984770571080110","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984770571080110","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 15 | body: {string: '{"id":"100154005043647299","created_at":"2018-06-05T20:00:36.812Z","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/100154005043647299","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100154005043647299","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":0,"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":0,"statuses_count":2,"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/"3381df07e2c2fd4496641032a7059df4"] | 22 | ETag: [W/"4b2ed835f8a6807bd881934298f025b8"] |
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: [65ebb470-d9b4-44b7-8848-453da7931247] | 29 | X-Permitted-Cross-Domain-Policies: [none] |
28 | X-Runtime: ['0.371388'] | 30 | X-Request-Id: [3449f1d3-e040-4003-8b51-630fbc121611] |
31 | X-Runtime: ['0.664248'] | ||
29 | X-XSS-Protection: [1; mode=block] | 32 | X-XSS-Protection: [1; mode=block] |
30 | content-length: ['1400'] | 33 | content-length: ['1504'] |
31 | status: {code: 200, message: OK} | 34 | status: {code: 200, message: OK} |
32 | - request: | 35 | - request: |
33 | body: status=Reply%21&in_reply_to_id=99984770571080110 | 36 | body: status=Reply%21&in_reply_to_id=100154005043647299 |
34 | headers: | 37 | headers: |
35 | Accept: ['*/*'] | 38 | Accept: ['*/*'] |
36 | Accept-Encoding: ['gzip, deflate'] | 39 | Accept-Encoding: ['gzip, deflate'] |
37 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 40 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] |
38 | Connection: [keep-alive] | 41 | Connection: [keep-alive] |
39 | Content-Length: ['48'] | 42 | Content-Length: ['49'] |
40 | Content-Type: [application/x-www-form-urlencoded] | 43 | Content-Type: [application/x-www-form-urlencoded] |
41 | User-Agent: [python-requests/2.9.1] | 44 | User-Agent: [python-requests/2.9.1] |
42 | method: POST | 45 | method: POST |
43 | uri: http://localhost:3000/api/v1/statuses | 46 | uri: http://localhost:3000/api/v1/statuses |
44 | response: | 47 | response: |
45 | body: {string: '{"id":"99984770599740284","created_at":"2018-05-06T22:42:04.050Z","in_reply_to_id":"99984770571080110","in_reply_to_account_id":"1234567890123456","sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99984770599740284","content":"\u003cp\u003eReply!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984770599740284","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 48 | body: {string: '{"id":"100154005096704419","created_at":"2018-06-05T20:00:37.585Z","in_reply_to_id":"100154005043647299","in_reply_to_account_id":"1234567890123456","sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/100154005096704419","content":"\u003cp\u003eReply!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100154005096704419","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py |
46 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 49 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
47 | Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI | 50 | Lennon","locked":true,"bot":false,"created_at":"2018-06-05T21:58:43.069Z","note":"\u003cp\u003eI |
48 | 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":3},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | 51 | 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":0,"statuses_count":3,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} |
49 | headers: | 52 | headers: |
50 | Cache-Control: ['max-age=0, private, must-revalidate'] | 53 | Cache-Control: ['max-age=0, private, must-revalidate'] |
51 | Content-Type: [application/json; charset=utf-8] | 54 | Content-Type: [application/json; charset=utf-8] |
52 | ETag: [W/"b75638d6371f7dff9244a5904f1fb696"] | 55 | ETag: [W/"064619df5c2309821511deed386adba7"] |
56 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
53 | Transfer-Encoding: [chunked] | 57 | Transfer-Encoding: [chunked] |
54 | Vary: ['Accept-Encoding, Origin'] | 58 | Vary: ['Accept-Encoding, Origin'] |
55 | X-Content-Type-Options: [nosniff] | 59 | X-Content-Type-Options: [nosniff] |
60 | X-Download-Options: [noopen] | ||
56 | X-Frame-Options: [SAMEORIGIN] | 61 | X-Frame-Options: [SAMEORIGIN] |
57 | X-Request-Id: [728dfa8b-0ffb-4c4f-a1b5-28560eba4de1] | 62 | X-Permitted-Cross-Domain-Policies: [none] |
58 | X-Runtime: ['0.352035'] | 63 | X-Request-Id: [0dcc255f-c628-4753-932a-837a67fb6c77] |
64 | X-Runtime: ['1.483628'] | ||
59 | X-XSS-Protection: [1; mode=block] | 65 | X-XSS-Protection: [1; mode=block] |
60 | content-length: ['1430'] | 66 | content-length: ['1535'] |
61 | status: {code: 200, message: OK} | 67 | status: {code: 200, message: OK} |
62 | - request: | 68 | - request: |
63 | body: null | 69 | body: null |
@@ -69,19 +75,22 @@ interactions: | |||
69 | Content-Length: ['0'] | 75 | Content-Length: ['0'] |
70 | User-Agent: [python-requests/2.9.1] | 76 | User-Agent: [python-requests/2.9.1] |
71 | method: DELETE | 77 | method: DELETE |
72 | uri: http://localhost:3000/api/v1/statuses/99984770599740284 | 78 | uri: http://localhost:3000/api/v1/statuses/100154005096704419 |
73 | response: | 79 | response: |
74 | body: {string: '{}'} | 80 | body: {string: '{}'} |
75 | headers: | 81 | headers: |
76 | Cache-Control: ['max-age=0, private, must-revalidate'] | 82 | Cache-Control: ['max-age=0, private, must-revalidate'] |
77 | Content-Type: [application/json; charset=utf-8] | 83 | Content-Type: [application/json; charset=utf-8] |
78 | ETag: [W/"0c1a6f73b62143b70de48849d6c61a43"] | 84 | ETag: [W/"3e9213ff658dfd16d6544d0e26f1361d"] |
85 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
79 | Transfer-Encoding: [chunked] | 86 | Transfer-Encoding: [chunked] |
80 | Vary: ['Accept-Encoding, Origin'] | 87 | Vary: ['Accept-Encoding, Origin'] |
81 | X-Content-Type-Options: [nosniff] | 88 | X-Content-Type-Options: [nosniff] |
89 | X-Download-Options: [noopen] | ||
82 | X-Frame-Options: [SAMEORIGIN] | 90 | X-Frame-Options: [SAMEORIGIN] |
83 | X-Request-Id: [0a0d1c75-4183-49dc-ac60-ab0c4c2e846a] | 91 | X-Permitted-Cross-Domain-Policies: [none] |
84 | X-Runtime: ['0.283850'] | 92 | X-Request-Id: [84215267-ed1c-43d5-b43f-b5b946614be3] |
93 | X-Runtime: ['0.350299'] | ||
85 | X-XSS-Protection: [1; mode=block] | 94 | X-XSS-Protection: [1; mode=block] |
86 | content-length: ['2'] | 95 | content-length: ['2'] |
87 | status: {code: 200, message: OK} | 96 | status: {code: 200, message: OK} |
@@ -95,19 +104,22 @@ interactions: | |||
95 | Content-Length: ['0'] | 104 | Content-Length: ['0'] |
96 | User-Agent: [python-requests/2.9.1] | 105 | User-Agent: [python-requests/2.9.1] |
97 | method: DELETE | 106 | method: DELETE |
98 | uri: http://localhost:3000/api/v1/statuses/99984770571080110 | 107 | uri: http://localhost:3000/api/v1/statuses/100154005043647299 |
99 | response: | 108 | response: |
100 | body: {string: '{}'} | 109 | body: {string: '{}'} |
101 | headers: | 110 | headers: |
102 | Cache-Control: ['max-age=0, private, must-revalidate'] | 111 | Cache-Control: ['max-age=0, private, must-revalidate'] |
103 | Content-Type: [application/json; charset=utf-8] | 112 | Content-Type: [application/json; charset=utf-8] |
104 | ETag: [W/"0c1a6f73b62143b70de48849d6c61a43"] | 113 | ETag: [W/"3e9213ff658dfd16d6544d0e26f1361d"] |
114 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
105 | Transfer-Encoding: [chunked] | 115 | Transfer-Encoding: [chunked] |
106 | Vary: ['Accept-Encoding, Origin'] | 116 | Vary: ['Accept-Encoding, Origin'] |
107 | X-Content-Type-Options: [nosniff] | 117 | X-Content-Type-Options: [nosniff] |
118 | X-Download-Options: [noopen] | ||
108 | X-Frame-Options: [SAMEORIGIN] | 119 | X-Frame-Options: [SAMEORIGIN] |
109 | X-Request-Id: [d0e7f2af-19bb-4a26-b530-8280b1ebef77] | 120 | X-Permitted-Cross-Domain-Policies: [none] |
110 | X-Runtime: ['0.110012'] | 121 | X-Request-Id: [8f9822bf-120b-4284-b2f2-624a04f85c90] |
122 | X-Runtime: ['0.227419'] | ||
111 | X-XSS-Protection: [1; mode=block] | 123 | X-XSS-Protection: [1; mode=block] |
112 | content-length: ['2'] | 124 | content-length: ['2'] |
113 | status: {code: 200, message: OK} | 125 | status: {code: 200, message: OK} |