diff options
Diffstat (limited to 'tests/cassettes/test_status.yaml')
-rw-r--r-- | tests/cassettes/test_status.yaml | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/tests/cassettes/test_status.yaml b/tests/cassettes/test_status.yaml index d7fde82..d63eca0 100644 --- a/tests/cassettes/test_status.yaml +++ b/tests/cassettes/test_status.yaml | |||
@@ -83,4 +83,88 @@ interactions: | |||
83 | X-XSS-Protection: [1; mode=block] | 83 | X-XSS-Protection: [1; mode=block] |
84 | content-length: ['2'] | 84 | content-length: ['2'] |
85 | status: {code: 200, message: OK} | 85 | status: {code: 200, message: OK} |
86 | - request: | ||
87 | body: status=Toot%21 | ||
88 | headers: | ||
89 | Accept: ['*/*'] | ||
90 | Accept-Encoding: ['gzip, deflate'] | ||
91 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
92 | Connection: [keep-alive] | ||
93 | Content-Length: ['14'] | ||
94 | Content-Type: [application/x-www-form-urlencoded] | ||
95 | User-Agent: [python-requests/2.9.1] | ||
96 | method: POST | ||
97 | uri: http://localhost:3000/api/v1/statuses | ||
98 | response: | ||
99 | body: {string: '{"id":"99882234542210141","created_at":"2018-04-18T20:05:47.988Z","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/99882234542210141","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882234542210141","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
100 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
101 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI | ||
102 | 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_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":21},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | ||
103 | headers: | ||
104 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
105 | Content-Type: [application/json; charset=utf-8] | ||
106 | ETag: [W/"228d282a645614bac452449e38571b98"] | ||
107 | Transfer-Encoding: [chunked] | ||
108 | Vary: ['Accept-Encoding, Origin'] | ||
109 | X-Content-Type-Options: [nosniff] | ||
110 | X-Frame-Options: [SAMEORIGIN] | ||
111 | X-Request-Id: [e795cb6e-bf78-4e37-b4a3-06f2f940124e] | ||
112 | X-Runtime: ['0.201912'] | ||
113 | X-XSS-Protection: [1; mode=block] | ||
114 | content-length: ['1397'] | ||
115 | status: {code: 200, message: OK} | ||
116 | - request: | ||
117 | body: null | ||
118 | headers: | ||
119 | Accept: ['*/*'] | ||
120 | Accept-Encoding: ['gzip, deflate'] | ||
121 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
122 | Connection: [keep-alive] | ||
123 | User-Agent: [python-requests/2.9.1] | ||
124 | method: GET | ||
125 | uri: http://localhost:3000/api/v1/statuses/99882234542210141 | ||
126 | response: | ||
127 | body: {string: '{"id":"99882234542210141","created_at":"2018-04-18T20:05:47.988Z","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/99882234542210141","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882234542210141","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
128 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
129 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI | ||
130 | 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_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":21},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | ||
131 | headers: | ||
132 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
133 | Content-Type: [application/json; charset=utf-8] | ||
134 | ETag: [W/"228d282a645614bac452449e38571b98"] | ||
135 | Transfer-Encoding: [chunked] | ||
136 | Vary: ['Accept-Encoding, Origin'] | ||
137 | X-Content-Type-Options: [nosniff] | ||
138 | X-Frame-Options: [SAMEORIGIN] | ||
139 | X-Request-Id: [e95f5baa-3bc3-45d9-8e1c-68a39e6dc8cc] | ||
140 | X-Runtime: ['0.077645'] | ||
141 | X-XSS-Protection: [1; mode=block] | ||
142 | content-length: ['1397'] | ||
143 | status: {code: 200, message: OK} | ||
144 | - request: | ||
145 | body: null | ||
146 | headers: | ||
147 | Accept: ['*/*'] | ||
148 | Accept-Encoding: ['gzip, deflate'] | ||
149 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
150 | Connection: [keep-alive] | ||
151 | Content-Length: ['0'] | ||
152 | User-Agent: [python-requests/2.9.1] | ||
153 | method: DELETE | ||
154 | uri: http://localhost:3000/api/v1/statuses/99882234542210141 | ||
155 | response: | ||
156 | body: {string: '{}'} | ||
157 | headers: | ||
158 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
159 | Content-Type: [application/json; charset=utf-8] | ||
160 | ETag: [W/"5c34b94901725effc18eaaac8fbc3b2f"] | ||
161 | Transfer-Encoding: [chunked] | ||
162 | Vary: ['Accept-Encoding, Origin'] | ||
163 | X-Content-Type-Options: [nosniff] | ||
164 | X-Frame-Options: [SAMEORIGIN] | ||
165 | X-Request-Id: [29c9bdf8-9396-46d6-a4c1-94f894e18414] | ||
166 | X-Runtime: ['0.052778'] | ||
167 | X-XSS-Protection: [1; mode=block] | ||
168 | content-length: ['2'] | ||
169 | status: {code: 200, message: OK} | ||
86 | version: 1 | 170 | version: 1 |