Mastodon.py/tests/cassettes/test_follow_request_reject....

255 wiersze
9.9 KiB
YAML

interactions:
- 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/accounts/verify_credentials
response:
body:
string: '{"id":"115045158004229352","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
Lennon","locked":true,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-17T00:00:00.000Z","note":"\u003cp\u003eI
walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","uri":"http://localhost:3000/users/mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/115/045/158/004/229/352/original/228aadcd9f964064.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/115/045/158/004/229/352/original/228aadcd9f964064.jpg","header":"http://localhost:3000/system/accounts/headers/115/045/158/004/229/352/original/75c82cb34a6eb173.jpg","header_static":"http://localhost:3000/system/accounts/headers/115/045/158/004/229/352/original/75c82cb34a6eb173.jpg","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":"2025-08-17","hide_collections":null,"noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"I
walk funny","fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}],"follow_requests_count":0,"hide_collections":null,"discoverable":null,"indexable":false,"attribution_domains":["example.com","another-example.com"]},"emojis":[],"roles":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}],"role":{"id":"-99","name":"","permissions":"65536","color":"","highlighted":false}}'
headers:
Content-Length:
- '1541'
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/"ea82012277fa6808a4e61872c0a349c7"
referrer-policy:
- strict-origin-when-cross-origin
server-timing:
- cache_read.active_support;dur=0.06, sql.active_record;dur=2.04, cache_generate.active_support;dur=1.87,
cache_write.active_support;dur=0.13, instantiation.active_record;dur=0.38,
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=8.00,
process_action.action_controller;dur=36.21
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.189235Z'
x-request-id:
- fd67703b-4759-4edb-8472-6fea40cf14ad
x-runtime:
- '0.056503'
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_2
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/115045158004229352/follow
response:
body:
string: '{"id":"115045158004229352","following":false,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":true,"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/"9e5900a4a2e6b5c8409621a1f6147a85"
referrer-policy:
- strict-origin-when-cross-origin
server-timing:
- cache_read.active_support;dur=0.03, sql.active_record;dur=6.78, cache_generate.active_support;dur=1.11,
cache_write.active_support;dur=0.08, instantiation.active_record;dur=0.36,
start_processing.action_controller;dur=0.00, start_transaction.active_record;dur=0.00,
transaction.active_record;dur=6.29, cache_delete.active_support;dur=0.02,
cache_read_multi.active_support;dur=0.03, cache_write_multi.active_support;dur=0.06,
render.active_model_serializers;dur=0.29, process_action.action_controller;dur=46.92
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.264953Z'
x-request-id:
- bf7e199f-617c-4e82-b532-5455f7d57334
x-runtime:
- '0.064549'
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/follow_requests
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":"2025-08-17","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]}]'
headers:
Content-Length:
- '751'
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/"c33913cfabd39ab78afe14aef7707ab6"
link:
- <http://localhost:3000/api/v1/follow_requests?since_id=2>; rel="prev"
referrer-policy:
- strict-origin-when-cross-origin
server-timing:
- cache_read.active_support;dur=0.05, sql.active_record;dur=1.75, cache_generate.active_support;dur=1.52,
cache_write.active_support;dur=0.11, instantiation.active_record;dur=0.35,
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=2.46,
process_action.action_controller;dur=31.47
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.338975Z'
x-request-id:
- edef0cd1-74f3-4d2e-b425-8df9242ef4f2
x-runtime:
- '0.049215'
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/follow_requests/115045157726281124/reject
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":"top
ebayer gerne wieder"}'
headers:
Content-Length:
- '317'
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/"f8ddc0759cdbbb09a25a48584ab50595"
referrer-policy:
- strict-origin-when-cross-origin
server-timing:
- cache_read.active_support;dur=0.03, sql.active_record;dur=5.93, cache_generate.active_support;dur=1.15,
cache_write.active_support;dur=0.08, instantiation.active_record;dur=0.32,
start_processing.action_controller;dur=0.00, start_transaction.active_record;dur=0.00,
transaction.active_record;dur=5.45, cache_delete.active_support;dur=0.02,
cache_read_multi.active_support;dur=0.03, cache_write_multi.active_support;dur=0.06,
render.active_model_serializers;dur=0.16, process_action.action_controller;dur=39.01
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.405038Z'
x-request-id:
- b24ab7e4-1053-43ae-91b2-22f806747c06
x-runtime:
- '0.055754'
x-xss-protection:
- '0'
status:
code: 200
message: OK
version: 1