Mastodonplus.py/tests/cassettes/test_list_timeline.yaml

272 líneas
13 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]
User-Agent: [python-requests/2.9.1]
method: POST
uri: http://localhost:3000/api/v1/lists
response:
2018-06-05 22:10:31 +02:00
body: {string: '{"id":"6","title":"ham burglars"}'}
2018-05-06 15:42:38 +02:00
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-06-05 22:10:31 +02:00
ETag: [W/"0c2717f6c1c5d08386e10b6562765e85"]
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]
X-Request-Id: [6721d2c1-4840-400d-9e45-27e997edce3d]
X-Runtime: ['0.033269']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
2018-06-05 22:10:31 +02:00
content-length: ['33']
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]
User-Agent: [python-requests/2.9.1]
method: GET
uri: http://localhost:3000/api/v1/accounts/verify_credentials
response:
2018-06-05 22:10:31 +02:00
body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-06-05T19:58:37.960Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":3,"source":{"privacy":"public","sensitive":false,"note":"","fields":[]},"emojis":[],"fields":[]}'}
2018-05-06 15:42:38 +02:00
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-06-05 22:10:31 +02:00
ETag: [W/"87c03ce4263ff02da2e95eca7d943bc2"]
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]
X-Request-Id: [83a6c552-7144-4ac6-86f9-53f1fe1b1749]
X-Runtime: ['0.071956']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
2018-06-05 22:10:31 +02:00
content-length: ['618']
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']
User-Agent: [python-requests/2.9.1]
method: POST
uri: http://localhost:3000/api/v1/accounts/1/follow
response:
body: {string: '{"id":"1","following":true,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-06-05 22:10:31 +02:00
ETag: [W/"8e7abca73c946d9bbd2a464713e20ff0"]
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]
X-Request-Id: [4fda44f4-a609-489c-8311-ad88c48abfed]
X-Runtime: ['0.069386']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['174']
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]
User-Agent: [python-requests/2.9.1]
method: POST
2018-06-05 22:10:31 +02:00
uri: http://localhost:3000/api/v1/lists/6/accounts
2018-05-06 15:42:38 +02:00
response:
body: {string: '{}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-06-05 22:10:31 +02:00
ETag: [W/"e9860857695aa0d9d73a4ecdbab94309"]
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]
X-Request-Id: [e2d623a9-689a-4c61-b652-e8e578d7b51d]
X-Runtime: ['0.051432']
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]
User-Agent: [python-requests/2.9.1]
method: POST
uri: http://localhost:3000/api/v1/statuses
response:
2018-06-05 22:10:31 +02:00
body: {string: '{"id":"100154030964539690","created_at":"2018-06-05T20:07:12.265Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/100154030964539690","content":"\u003cp\u003eI
have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost:3000/@admin/100154030964539690","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-06-05T19:58:37.960Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":4,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
2018-05-06 15:42:38 +02:00
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-06-05 22:10:31 +02:00
ETag: [W/"870d9260cd62e77eddec33601f1e2eec"]
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]
X-Request-Id: [caf68b5c-8274-4ffa-b9e5-ae6138bd7c93]
X-Runtime: ['0.174434']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
2018-06-05 22:10:31 +02:00
content-length: ['1196']
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]
User-Agent: [python-requests/2.9.1]
method: GET
2018-06-05 22:10:31 +02:00
uri: http://localhost:3000/api/v1/timelines/list/6
2018-05-06 15:42:38 +02:00
response:
2018-06-05 22:10:31 +02:00
body: {string: '[{"id":"100154030964539690","created_at":"2018-06-05T20:07:12.265Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/100154030964539690","content":"\u003cp\u003eI
have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost:3000/@admin/100154030964539690","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"reblog":null,"application":{"name":"Mastodon.py
test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-06-05T19:58:37.960Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":4,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}]'}
2018-05-06 15:42:38 +02:00
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-06-05 22:10:31 +02:00
ETag: [W/"4b26424a4de0ff441f366b4f2097a0f8"]
Link: ['<http://localhost:3000/api/v1/timelines/list/6?max_id=100154030964539690>;
rel="next", <http://localhost:3000/api/v1/timelines/list/6?since_id=100154030964539690>;
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]
X-Request-Id: [c81b9b47-5ca0-4aa8-85f0-7b5ba43b93f9]
X-Runtime: ['0.056506']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
2018-06-05 22:10:31 +02:00
content-length: ['1183']
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']
User-Agent: [python-requests/2.9.1]
method: DELETE
2018-06-05 22:10:31 +02:00
uri: http://localhost:3000/api/v1/statuses/100154030964539690
2018-05-06 15:42:38 +02:00
response:
body: {string: '{}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-06-05 22:10:31 +02:00
ETag: [W/"15a29e4a21d7872677d426d09d5cba28"]
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]
X-Request-Id: [38c61809-1dc9-4d62-ba3a-3df026ccaf00]
X-Runtime: ['0.032685']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['2']
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']
User-Agent: [python-requests/2.9.1]
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,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-06-05 22:10:31 +02:00
ETag: [W/"3ef967632dec28ea9dc2761a494a191d"]
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]
X-Request-Id: [233ae870-8653-40b5-9555-d344369b0d11]
X-Runtime: ['0.126611']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['175']
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']
User-Agent: [python-requests/2.9.1]
method: DELETE
2018-06-05 22:10:31 +02:00
uri: http://localhost:3000/api/v1/lists/6
2018-05-06 15:42:38 +02:00
response:
body: {string: '{}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-06-05 22:10:31 +02:00
ETag: [W/"15a29e4a21d7872677d426d09d5cba28"]
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]
X-Request-Id: [c7b1bf59-7c43-42d6-9384-b25851731c75]
X-Runtime: ['0.052907']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['2']
status: {code: 200, message: OK}
version: 1