Mastodonplus.py/tests/cassettes/test_account_pin_unpin.yaml

226 líneas
9,9 KiB
YAML
Original Vista normal Històric

2019-04-27 22:13:27 +02:00
interactions:
- 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.18.4]
method: GET
uri: http://localhost:3000/api/v1/accounts/verify_credentials
response:
2020-02-22 20:31:33 +01:00
body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","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":0,"following_count":0,"statuses_count":0,"last_status_at":null,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[]}'}
2019-04-27 22:13:27 +02:00
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2019-04-27 22:13:27 +02:00
Content-Type: [application/json; charset=utf-8]
Referrer-Policy: [strict-origin-when-cross-origin]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
2020-02-22 20:31:33 +01:00
X-Request-Id: [1759aeac-c7c9-44e8-a945-3d4224bc572d]
X-Runtime: ['0.070126']
2019-04-27 22:13:27 +02:00
X-XSS-Protection: [1; mode=block]
2020-02-22 20:31:33 +01:00
content-length: ['691']
2019-04-27 22:13:27 +02:00
status: {code: 200, message: OK}
- request:
body: reblogs=1&id=1
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
Content-Length: ['14']
Content-Type: [application/x-www-form-urlencoded]
User-Agent: [python-requests/2.18.4]
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}'}
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2019-04-27 22:13:27 +02:00
Content-Type: [application/json; charset=utf-8]
Referrer-Policy: [strict-origin-when-cross-origin]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
2020-02-22 20:31:33 +01:00
X-Request-Id: [0b379cc5-182b-424b-9a8f-429e38b71e25]
X-Runtime: ['0.089844']
2019-04-27 22:13:27 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['209']
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.18.4]
method: POST
uri: http://localhost:3000/api/v1/accounts/1/unpin
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}'}
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2019-04-27 22:13:27 +02:00
Content-Type: [application/json; charset=utf-8]
Referrer-Policy: [strict-origin-when-cross-origin]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
2020-02-22 20:31:33 +01:00
X-Request-Id: [3df005da-d105-4b15-8376-47abdb7829b3]
X-Runtime: ['0.098275']
2019-04-27 22:13:27 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['209']
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.18.4]
method: POST
uri: http://localhost:3000/api/v1/accounts/1/pin
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":true}'}
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2019-04-27 22:13:27 +02:00
Content-Type: [application/json; charset=utf-8]
Referrer-Policy: [strict-origin-when-cross-origin]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
2020-02-22 20:31:33 +01:00
X-Request-Id: [81b184bc-ec1c-41c7-b48d-0f073381fa2d]
X-Runtime: ['0.056627']
2019-04-27 22:13:27 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['208']
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.18.4]
method: GET
uri: http://localhost:3000/api/v1/endorsements
response:
2020-02-22 20:31:33 +01:00
body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","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":1,"following_count":0,"statuses_count":0,"last_status_at":null,"emojis":[],"fields":[]}]'}
2019-04-27 22:13:27 +02:00
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2019-04-27 22:13:27 +02:00
Content-Type: [application/json; charset=utf-8]
Link: ['<http://localhost:3000/api/v1/endorsements?since_id=1>; rel="prev"']
Referrer-Policy: [strict-origin-when-cross-origin]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
2020-02-22 20:31:33 +01:00
X-Request-Id: [f8e2d655-3cb0-4bbc-8c34-c0bb7fb91b7e]
X-Runtime: ['0.053483']
2019-04-27 22:13:27 +02:00
X-XSS-Protection: [1; mode=block]
2020-02-22 20:31:33 +01:00
content-length: ['581']
2019-04-27 22:13:27 +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.18.4]
method: POST
uri: http://localhost:3000/api/v1/accounts/1/unpin
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}'}
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2019-04-27 22:13:27 +02:00
Content-Type: [application/json; charset=utf-8]
Referrer-Policy: [strict-origin-when-cross-origin]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
2020-02-22 20:31:33 +01:00
X-Request-Id: [fdd28069-66c1-4417-aff3-8056cc04c4c4]
X-Runtime: ['0.042610']
2019-04-27 22:13:27 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['209']
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.18.4]
method: GET
uri: http://localhost:3000/api/v1/endorsements
response:
body: {string: '[]'}
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2019-04-27 22:13:27 +02:00
Content-Type: [application/json; charset=utf-8]
Referrer-Policy: [strict-origin-when-cross-origin]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
2020-02-22 20:31:33 +01:00
X-Request-Id: [f7f28d03-c2e7-417b-a12f-e23a35a3df57]
X-Runtime: ['0.029372']
2019-04-27 22:13:27 +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.18.4]
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}'}
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2019-04-27 22:13:27 +02:00
Content-Type: [application/json; charset=utf-8]
Referrer-Policy: [strict-origin-when-cross-origin]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
2020-02-22 20:31:33 +01:00
X-Request-Id: [c8beb628-90be-458a-a8a3-097153d6befd]
X-Runtime: ['0.074431']
2019-04-27 22:13:27 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['211']
status: {code: 200, message: OK}
version: 1