Mastodonplus.py/tests/cassettes/test_list_timeline.yaml

266 líneas
14 KiB
YAML
Original Vista normal Històric

2018-05-06 15:42:38 +02:00
interactions:
- request:
body: title=ham+burglars
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
Content-Length: ['18']
Content-Type: [application/x-www-form-urlencoded]
2018-07-14 01:07:26 +02:00
User-Agent: [python-requests/2.18.4]
2018-05-06 15:42:38 +02:00
method: POST
uri: http://localhost:3000/api/v1/lists
response:
2019-06-22 23:16:47 +02:00
body: {string: '{"id":"25","title":"ham burglars"}'}
2018-05-06 15:42:38 +02:00
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2018-05-06 15:42:38 +02:00
Content-Type: [application/json; charset=utf-8]
2018-06-05 22:10:31 +02:00
Referrer-Policy: [strict-origin-when-cross-origin]
2018-05-06 15:42:38 +02:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
2018-06-05 22:10:31 +02:00
X-Download-Options: [noopen]
2018-05-06 15:42:38 +02:00
X-Frame-Options: [SAMEORIGIN]
2018-06-05 22:10:31 +02:00
X-Permitted-Cross-Domain-Policies: [none]
2019-06-22 23:16:47 +02:00
X-Request-Id: [ba48641d-cf50-4b83-8560-08981737cf88]
X-Runtime: ['0.021952']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
2019-06-22 23:16:47 +02:00
content-length: ['34']
2018-05-06 15:42:38 +02:00
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
Connection: [keep-alive]
2018-07-14 01:07:26 +02:00
User-Agent: [python-requests/2.18.4]
2018-05-06 15:42:38 +02:00
method: GET
uri: http://localhost:3000/api/v1/accounts/verify_credentials
response:
2019-06-22 23:16:47 +02:00
body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":2,"following_count":1,"statuses_count":16,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'}
2018-05-06 15:42:38 +02:00
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2018-05-06 15:42:38 +02:00
Content-Type: [application/json; charset=utf-8]
2018-06-05 22:10:31 +02:00
Referrer-Policy: [strict-origin-when-cross-origin]
2018-05-06 15:42:38 +02:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
2018-06-05 22:10:31 +02:00
X-Download-Options: [noopen]
2018-05-06 15:42:38 +02:00
X-Frame-Options: [SAMEORIGIN]
2018-06-05 22:10:31 +02:00
X-Permitted-Cross-Domain-Policies: [none]
2019-06-22 23:16:47 +02:00
X-Request-Id: [78e34f89-3407-4a87-b9c3-abb13551f476]
X-Runtime: ['0.022950']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
2019-06-22 23:16:47 +02:00
content-length: ['610']
2018-05-06 15:42:38 +02:00
status: {code: 200, message: OK}
- request:
2018-07-30 23:19:51 +02:00
body: reblogs=1&id=1
2018-05-06 15:42:38 +02:00
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
2018-07-30 23:19:51 +02:00
Content-Length: ['14']
2018-07-30 20:25:25 +02:00
Content-Type: [application/x-www-form-urlencoded]
2018-07-14 01:07:26 +02:00
User-Agent: [python-requests/2.18.4]
2018-05-06 15:42:38 +02:00
method: POST
uri: http://localhost:3000/api/v1/accounts/1/follow
response:
body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'}
2018-05-06 15:42:38 +02:00
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2018-05-06 15:42:38 +02:00
Content-Type: [application/json; charset=utf-8]
2018-06-05 22:10:31 +02:00
Referrer-Policy: [strict-origin-when-cross-origin]
2018-05-06 15:42:38 +02:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
2018-06-05 22:10:31 +02:00
X-Download-Options: [noopen]
2018-05-06 15:42:38 +02:00
X-Frame-Options: [SAMEORIGIN]
2018-06-05 22:10:31 +02:00
X-Permitted-Cross-Domain-Policies: [none]
2019-06-22 23:16:47 +02:00
X-Request-Id: [c00a31f9-1a7b-4ed0-a1e0-28e5352a24f3]
X-Runtime: ['0.070776']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['209']
2018-05-06 15:42:38 +02:00
status: {code: 200, message: OK}
- request:
body: account_ids%5B%5D=1
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
Content-Length: ['19']
Content-Type: [application/x-www-form-urlencoded]
2018-07-14 01:07:26 +02:00
User-Agent: [python-requests/2.18.4]
2018-05-06 15:42:38 +02:00
method: POST
2019-06-22 23:16:47 +02:00
uri: http://localhost:3000/api/v1/lists/25/accounts
2018-05-06 15:42:38 +02:00
response:
body: {string: '{}'}
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2018-05-06 15:42:38 +02:00
Content-Type: [application/json; charset=utf-8]
2018-06-05 22:10:31 +02:00
Referrer-Policy: [strict-origin-when-cross-origin]
2018-05-06 15:42:38 +02:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
2018-06-05 22:10:31 +02:00
X-Download-Options: [noopen]
2018-05-06 15:42:38 +02:00
X-Frame-Options: [SAMEORIGIN]
2018-06-05 22:10:31 +02:00
X-Permitted-Cross-Domain-Policies: [none]
2019-06-22 23:16:47 +02:00
X-Request-Id: [05f3227d-bb62-4807-b6f4-2546522abac6]
X-Runtime: ['0.075572']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['2']
status: {code: 200, message: OK}
- request:
2018-06-05 22:10:31 +02:00
body: visibility=public&status=I+have+never+stolen+a+ham+in+my+life.
2018-05-06 15:42:38 +02:00
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
Connection: [keep-alive]
Content-Length: ['62']
Content-Type: [application/x-www-form-urlencoded]
2018-07-14 01:07:26 +02:00
User-Agent: [python-requests/2.18.4]
2018-05-06 15:42:38 +02:00
method: POST
uri: http://localhost:3000/api/v1/statuses
response:
2019-06-22 23:16:47 +02:00
body: {string: '{"id":"102317290726462285","created_at":"2019-06-22T21:12:36.659Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/102317290726462285","url":"http://localhost/@admin/102317290726462285","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003eI
2019-06-22 15:28:27 +02:00
have never stolen a ham in my life.\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py
2019-06-22 23:16:47 +02:00
test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":3,"following_count":1,"statuses_count":17,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
2018-05-06 15:42:38 +02:00
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2018-05-06 15:42:38 +02:00
Content-Type: [application/json; charset=utf-8]
2018-06-05 22:10:31 +02:00
Referrer-Policy: [strict-origin-when-cross-origin]
2018-05-06 15:42:38 +02:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
2018-06-05 22:10:31 +02:00
X-Download-Options: [noopen]
2018-05-06 15:42:38 +02:00
X-Frame-Options: [SAMEORIGIN]
2018-06-05 22:10:31 +02:00
X-Permitted-Cross-Domain-Policies: [none]
2019-06-22 23:16:47 +02:00
X-Request-Id: [6f69bb85-4635-4e9e-9a42-f26e4b683727]
X-Runtime: ['0.178400']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
2019-06-22 23:16:47 +02:00
content-length: ['1204']
2018-05-06 15:42:38 +02:00
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
2018-07-14 01:07:26 +02:00
User-Agent: [python-requests/2.18.4]
2018-05-06 15:42:38 +02:00
method: GET
2019-06-22 23:16:47 +02:00
uri: http://localhost:3000/api/v1/timelines/list/25
2018-05-06 15:42:38 +02:00
response:
2019-06-22 23:16:47 +02:00
body: {string: '[{"id":"102317290726462285","created_at":"2019-06-22T21:12:36.659Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/102317290726462285","url":"http://localhost/@admin/102317290726462285","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"content":"\u003cp\u003eI
2019-06-22 15:28:27 +02:00
have never stolen a ham in my life.\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py
2019-06-22 23:16:47 +02:00
test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":3,"following_count":1,"statuses_count":17,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}]'}
2018-05-06 15:42:38 +02:00
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2018-05-06 15:42:38 +02:00
Content-Type: [application/json; charset=utf-8]
2019-06-22 23:16:47 +02:00
Link: ['<http://localhost:3000/api/v1/timelines/list/25?max_id=102317290726462285>;
rel="next", <http://localhost:3000/api/v1/timelines/list/25?min_id=102317290726462285>;
2018-05-06 15:42:38 +02:00
rel="prev"']
2018-06-05 22:10:31 +02:00
Referrer-Policy: [strict-origin-when-cross-origin]
2018-05-06 15:42:38 +02:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
2018-06-05 22:10:31 +02:00
X-Download-Options: [noopen]
2018-05-06 15:42:38 +02:00
X-Frame-Options: [SAMEORIGIN]
2018-06-05 22:10:31 +02:00
X-Permitted-Cross-Domain-Policies: [none]
2019-06-22 23:16:47 +02:00
X-Request-Id: [65f03835-bd09-49c8-9a7c-7e912e4ddbe2]
X-Runtime: ['0.062445']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
2019-06-22 23:16:47 +02:00
content-length: ['1191']
2018-05-06 15:42:38 +02:00
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
Connection: [keep-alive]
Content-Length: ['0']
2018-07-14 01:07:26 +02:00
User-Agent: [python-requests/2.18.4]
2018-05-06 15:42:38 +02:00
method: DELETE
2019-06-22 23:16:47 +02:00
uri: http://localhost:3000/api/v1/statuses/102317290726462285
2018-05-06 15:42:38 +02:00
response:
2019-06-22 23:16:47 +02:00
body: {string: '{"id":"102317290726462285","created_at":"2019-06-22T21:12:36.659Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/102317290726462285","url":"http://localhost/@admin/102317290726462285","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"text":"I
2019-06-22 15:28:27 +02:00
have never stolen a ham in my life.","reblog":null,"application":{"name":"Mastodon.py
2019-06-22 23:16:47 +02:00
test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":3,"following_count":1,"statuses_count":17,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
2018-05-06 15:42:38 +02:00
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2018-05-06 15:42:38 +02:00
Content-Type: [application/json; charset=utf-8]
2018-06-05 22:10:31 +02:00
Referrer-Policy: [strict-origin-when-cross-origin]
2018-05-06 15:42:38 +02:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
2018-06-05 22:10:31 +02:00
X-Download-Options: [noopen]
2018-05-06 15:42:38 +02:00
X-Frame-Options: [SAMEORIGIN]
2018-06-05 22:10:31 +02:00
X-Permitted-Cross-Domain-Policies: [none]
2019-06-22 23:16:47 +02:00
X-Request-Id: [e62f4641-cdda-490b-9966-df6bb8127144]
X-Runtime: ['0.079065']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
2019-06-22 23:16:47 +02:00
content-length: ['1174']
2018-05-06 15:42:38 +02:00
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
Content-Length: ['0']
2018-07-14 01:07:26 +02:00
User-Agent: [python-requests/2.18.4]
2018-05-06 15:42:38 +02:00
method: POST
uri: http://localhost:3000/api/v1/accounts/1/unfollow
response:
body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'}
2018-05-06 15:42:38 +02:00
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2018-05-06 15:42:38 +02:00
Content-Type: [application/json; charset=utf-8]
2018-06-05 22:10:31 +02:00
Referrer-Policy: [strict-origin-when-cross-origin]
2018-05-06 15:42:38 +02:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
2018-06-05 22:10:31 +02:00
X-Download-Options: [noopen]
2018-05-06 15:42:38 +02:00
X-Frame-Options: [SAMEORIGIN]
2018-06-05 22:10:31 +02:00
X-Permitted-Cross-Domain-Policies: [none]
2019-06-22 23:16:47 +02:00
X-Request-Id: [85c8a500-8c01-4053-9782-cd28a56d23d5]
X-Runtime: ['0.088744']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['211']
2018-05-06 15:42:38 +02:00
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
Content-Length: ['0']
2018-07-14 01:07:26 +02:00
User-Agent: [python-requests/2.18.4]
2018-05-06 15:42:38 +02:00
method: DELETE
2019-06-22 23:16:47 +02:00
uri: http://localhost:3000/api/v1/lists/25
2018-05-06 15:42:38 +02:00
response:
body: {string: '{}'}
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2018-05-06 15:42:38 +02:00
Content-Type: [application/json; charset=utf-8]
2018-06-05 22:10:31 +02:00
Referrer-Policy: [strict-origin-when-cross-origin]
2018-05-06 15:42:38 +02:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
2018-06-05 22:10:31 +02:00
X-Download-Options: [noopen]
2018-05-06 15:42:38 +02:00
X-Frame-Options: [SAMEORIGIN]
2018-06-05 22:10:31 +02:00
X-Permitted-Cross-Domain-Policies: [none]
2019-06-22 23:16:47 +02:00
X-Request-Id: [0004f8b3-73e1-444f-8aff-cc2d20798dca]
X-Runtime: ['0.021890']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['2']
status: {code: 200, message: OK}
version: 1