Mastodon.py/tests/cassettes/test_account_pin_unpin.yaml

498 wiersze
17 KiB
YAML

interactions:
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2
Connection:
- keep-alive
User-Agent:
- tests/v311
method: GET
uri: http://localhost:3000/api/v1/accounts/verify_credentials
response:
body:
string: '{"id":"115045157726281124","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-17T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","uri":"http://localhost:3000/users/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":0,"following_count":0,"statuses_count":0,"last_status_at":null,"hide_collections":null,"noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0,"hide_collections":null,"discoverable":null,"indexable":false,"attribution_domains":[]},"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}'
headers:
Content-Length:
- '1027'
cache-control:
- private, no-store
content-security-policy:
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
content-type:
- application/json; charset=utf-8
etag:
- W/"f1be143f60ef51d99a3fdb4ce8158ab1"
referrer-policy:
- strict-origin-when-cross-origin
server-timing:
- cache_read.active_support;dur=0.05, sql.active_record;dur=1.49, cache_generate.active_support;dur=1.53,
cache_write.active_support;dur=0.12, instantiation.active_record;dur=0.30,
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=4.80,
process_action.action_controller;dur=31.23
vary:
- Authorization, Origin
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-permitted-cross-domain-policies:
- none
x-ratelimit-limit:
- '300'
x-ratelimit-remaining:
- '299'
x-ratelimit-reset:
- '2025-08-17T18:45:00.191590Z'
x-request-id:
- 4848de94-7fc8-495e-865d-9627162a6bdd
x-runtime:
- '0.048632'
x-xss-protection:
- '0'
status:
code: 200
message: OK
- request:
body: reblogs=1&notify=0
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
Content-Length:
- '18'
Content-Type:
- application/x-www-form-urlencoded
User-Agent:
- tests/v311
method: POST
uri: http://localhost:3000/api/v1/accounts/115045157726281124/follow
response:
body:
string: '{"id":"115045157726281124","following":true,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"requested_by":false,"domain_blocking":false,"endorsed":false,"note":""}'
headers:
Content-Length:
- '292'
cache-control:
- private, no-store
content-security-policy:
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
content-type:
- application/json; charset=utf-8
etag:
- W/"485cd8805047de216216472998d67888"
referrer-policy:
- strict-origin-when-cross-origin
server-timing:
- cache_read.active_support;dur=0.02, sql.active_record;dur=8.39, cache_generate.active_support;dur=1.03,
cache_write.active_support;dur=0.10, instantiation.active_record;dur=0.40,
start_processing.action_controller;dur=0.00, start_transaction.active_record;dur=0.00,
transaction.active_record;dur=8.39, cache_delete.active_support;dur=0.03,
cache_read_multi.active_support;dur=0.04, cache_write_multi.active_support;dur=0.07,
render.active_model_serializers;dur=0.20, process_action.action_controller;dur=51.58
vary:
- Authorization, Origin
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-permitted-cross-domain-policies:
- none
x-ratelimit-limit:
- '300'
x-ratelimit-remaining:
- '299'
x-ratelimit-reset:
- '2025-08-17T18:45:00.262385Z'
x-request-id:
- 2a5432ab-1d9b-4afd-add5-dc839f09185b
x-runtime:
- '0.068927'
x-xss-protection:
- '0'
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- tests/v311
method: POST
uri: http://localhost:3000/api/v1/accounts/115045157726281124/unpin
response:
body:
string: '{"id":"115045157726281124","following":true,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"requested_by":false,"domain_blocking":false,"endorsed":false,"note":""}'
headers:
Content-Length:
- '292'
cache-control:
- private, no-store
content-security-policy:
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
content-type:
- application/json; charset=utf-8
etag:
- W/"485cd8805047de216216472998d67888"
referrer-policy:
- strict-origin-when-cross-origin
server-timing:
- cache_read.active_support;dur=0.03, sql.active_record;dur=2.12, cache_generate.active_support;dur=0.97,
cache_write.active_support;dur=0.08, instantiation.active_record;dur=0.29,
start_processing.action_controller;dur=0.00, cache_read_multi.active_support;dur=0.04,
cache_write_multi.active_support;dur=0.07, render.active_model_serializers;dur=0.17,
process_action.action_controller;dur=34.65
vary:
- Authorization, Origin
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-permitted-cross-domain-policies:
- none
x-ratelimit-limit:
- '300'
x-ratelimit-remaining:
- '299'
x-ratelimit-reset:
- '2025-08-17T18:45:00.344240Z'
x-request-id:
- 58cbd974-304c-4c8a-a9c7-a68008a10056
x-runtime:
- '0.053525'
x-xss-protection:
- '0'
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- tests/v311
method: POST
uri: http://localhost:3000/api/v1/accounts/115045157726281124/pin
response:
body:
string: '{"id":"115045157726281124","following":true,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"requested_by":false,"domain_blocking":false,"endorsed":true,"note":""}'
headers:
Content-Length:
- '291'
cache-control:
- private, no-store
content-security-policy:
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
content-type:
- application/json; charset=utf-8
etag:
- W/"dc51e3b5472571dbda12ca3e705bcbc9"
referrer-policy:
- strict-origin-when-cross-origin
server-timing:
- cache_read.active_support;dur=0.03, sql.active_record;dur=6.77, cache_generate.active_support;dur=0.89,
cache_write.active_support;dur=0.07, instantiation.active_record;dur=0.24,
start_processing.action_controller;dur=0.00, start_transaction.active_record;dur=0.00,
transaction.active_record;dur=5.81, cache_delete.active_support;dur=0.02,
cache_read_multi.active_support;dur=0.03, cache_write_multi.active_support;dur=0.07,
render.active_model_serializers;dur=0.15, process_action.action_controller;dur=40.99
vary:
- Authorization, Origin
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-permitted-cross-domain-policies:
- none
x-ratelimit-limit:
- '300'
x-ratelimit-remaining:
- '299'
x-ratelimit-reset:
- '2025-08-17T18:45:00.407751Z'
x-request-id:
- bce37b09-4601-44de-bddb-59764e38a8b1
x-runtime:
- '0.057512'
x-xss-protection:
- '0'
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
User-Agent:
- tests/v311
method: GET
uri: http://localhost:3000/api/v1/endorsements
response:
body:
string: '[{"id":"115045157726281124","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-17T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","uri":"http://localhost:3000/users/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":0,"last_status_at":null,"hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]}]'
headers:
Content-Length:
- '743'
cache-control:
- private, no-store
content-security-policy:
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
content-type:
- application/json; charset=utf-8
etag:
- W/"f9b2f4e8dd89ba0424cf21ba53faf70b"
link:
- <http://localhost:3000/api/v1/endorsements?since_id=115045157726281124>; rel="prev"
referrer-policy:
- strict-origin-when-cross-origin
server-timing:
- cache_read.active_support;dur=0.05, sql.active_record;dur=1.58, cache_generate.active_support;dur=1.52,
cache_write.active_support;dur=0.11, instantiation.active_record;dur=0.30,
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=2.53,
process_action.action_controller;dur=31.18
vary:
- Authorization, Origin
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-permitted-cross-domain-policies:
- none
x-ratelimit-limit:
- '300'
x-ratelimit-remaining:
- '299'
x-ratelimit-reset:
- '2025-08-17T18:45:00.471974Z'
x-request-id:
- cd801b59-af1a-4370-98a9-c11ff59b0514
x-runtime:
- '0.047630'
x-xss-protection:
- '0'
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- tests/v311
method: POST
uri: http://localhost:3000/api/v1/accounts/115045157726281124/unpin
response:
body:
string: '{"id":"115045157726281124","following":true,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"requested_by":false,"domain_blocking":false,"endorsed":false,"note":""}'
headers:
Content-Length:
- '292'
cache-control:
- private, no-store
content-security-policy:
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
content-type:
- application/json; charset=utf-8
etag:
- W/"485cd8805047de216216472998d67888"
referrer-policy:
- strict-origin-when-cross-origin
server-timing:
- cache_read.active_support;dur=0.03, sql.active_record;dur=6.20, cache_generate.active_support;dur=1.00,
cache_write.active_support;dur=0.10, instantiation.active_record;dur=0.30,
start_processing.action_controller;dur=0.00, start_transaction.active_record;dur=0.00,
transaction.active_record;dur=12.30, cache_delete.active_support;dur=0.01,
cache_read_multi.active_support;dur=0.03, cache_write_multi.active_support;dur=0.06,
render.active_model_serializers;dur=0.17, process_action.action_controller;dur=46.93
vary:
- Authorization, Origin
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-permitted-cross-domain-policies:
- none
x-ratelimit-limit:
- '300'
x-ratelimit-remaining:
- '299'
x-ratelimit-reset:
- '2025-08-17T18:45:00.546432Z'
x-request-id:
- d70229f7-d3cb-4915-b830-31b8f127711e
x-runtime:
- '0.064146'
x-xss-protection:
- '0'
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
User-Agent:
- tests/v311
method: GET
uri: http://localhost:3000/api/v1/endorsements
response:
body:
string: '[]'
headers:
Content-Length:
- '2'
cache-control:
- private, no-store
content-security-policy:
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
content-type:
- application/json; charset=utf-8
etag:
- W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"
referrer-policy:
- strict-origin-when-cross-origin
server-timing:
- cache_read.active_support;dur=0.03, sql.active_record;dur=1.05, cache_generate.active_support;dur=1.00,
cache_write.active_support;dur=0.08, instantiation.active_record;dur=0.15,
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=0.04,
process_action.action_controller;dur=27.25
vary:
- Authorization, Origin
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-permitted-cross-domain-policies:
- none
x-ratelimit-limit:
- '300'
x-ratelimit-remaining:
- '299'
x-ratelimit-reset:
- '2025-08-17T18:45:00.623767Z'
x-request-id:
- ba924c2c-a49f-442c-b2e0-c5ebe21ba5fd
x-runtime:
- '0.045153'
x-xss-protection:
- '0'
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- tests/v311
method: POST
uri: http://localhost:3000/api/v1/accounts/115045157726281124/unfollow
response:
body:
string: '{"id":"115045157726281124","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"requested_by":false,"domain_blocking":false,"endorsed":false,"note":""}'
headers:
Content-Length:
- '294'
cache-control:
- private, no-store
content-security-policy:
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
content-type:
- application/json; charset=utf-8
etag:
- W/"10e3c01158741bacb67dfa4f370e5199"
referrer-policy:
- strict-origin-when-cross-origin
server-timing:
- cache_read.active_support;dur=0.03, sql.active_record;dur=7.88, cache_generate.active_support;dur=1.09,
cache_write.active_support;dur=0.08, instantiation.active_record;dur=0.35,
start_processing.action_controller;dur=0.00, start_transaction.active_record;dur=0.00,
transaction.active_record;dur=9.20, cache_delete.active_support;dur=0.02,
cache_read_multi.active_support;dur=0.04, cache_write_multi.active_support;dur=0.07,
render.active_model_serializers;dur=0.16, process_action.action_controller;dur=47.49
vary:
- Authorization, Origin
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-permitted-cross-domain-policies:
- none
x-ratelimit-limit:
- '300'
x-ratelimit-remaining:
- '299'
x-ratelimit-reset:
- '2025-08-17T18:45:00.680836Z'
x-request-id:
- 2b23eecd-245b-455e-8e90-37a33aa03ab9
x-runtime:
- '0.066644'
x-xss-protection:
- '0'
status:
code: 200
message: OK
version: 1