Mastodon.py/tests/cassettes/test_account_mute_unmute.yaml

315 wiersze
11 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":"115033965466813222","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-15T00: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},"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}'
headers:
Cache-Control:
- private, no-store
Content-Length:
- '1002'
Content-Security-Policy:
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"ff57a4652fc51bf91f85caf39b38ae48"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.03, sql.active_record;dur=1.00, cache_generate.active_support;dur=1.42,
cache_write.active_support;dur=0.09, instantiation.active_record;dur=0.28,
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=4.31,
process_action.action_controller;dur=24.93
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-15T17:35:00.725827Z'
X-Request-Id:
- 5dafbe02-543f-48d1-bcca-3d97ec96a507
X-Runtime:
- '0.044854'
X-XSS-Protection:
- '0'
vary:
- Authorization, Origin
status:
code: 200
message: OK
- request:
body: notifications=1
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
Content-Length:
- '15'
Content-Type:
- application/x-www-form-urlencoded
User-Agent:
- tests/v311
method: POST
uri: http://localhost:3000/api/v1/accounts/115033965466813222/mute
response:
body:
string: '{"id":"115033965466813222","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":true,"muting_notifications":true,"requested":false,"requested_by":false,"domain_blocking":false,"endorsed":false,"note":""}'
headers:
Cache-Control:
- private, no-store
Content-Length:
- '292'
Content-Security-Policy:
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"22ce63333d18b27b040a4c415e1648e6"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.02, sql.active_record;dur=7.56, cache_generate.active_support;dur=0.81,
cache_write.active_support;dur=0.06, instantiation.active_record;dur=0.38,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=5.16,
cache_delete.active_support;dur=0.03, cache_read_multi.active_support;dur=0.03,
cache_write_multi.active_support;dur=0.05, render.active_model_serializers;dur=0.14,
process_action.action_controller;dur=40.61
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-15T17:35:00.791300Z'
X-Request-Id:
- ba083643-0b64-455c-b756-bf4ebb8c334e
X-Runtime:
- '0.059565'
X-XSS-Protection:
- '0'
vary:
- Authorization, Origin
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/115033965466813222/unmute
response:
body:
string: '{"id":"115033965466813222","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:
Cache-Control:
- private, no-store
Content-Length:
- '294'
Content-Security-Policy:
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"fe572ec4cc8d7e18e0f2b66935e77757"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.02, sql.active_record;dur=6.89, cache_generate.active_support;dur=0.84,
cache_write.active_support;dur=0.07, instantiation.active_record;dur=2.88,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=4.00,
cache_delete.active_support;dur=0.03, cache_read_multi.active_support;dur=0.04,
cache_write_multi.active_support;dur=0.05, render.active_model_serializers;dur=0.14,
process_action.action_controller;dur=38.91
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-15T17:35:00.868624Z'
X-Request-Id:
- b71dac12-d6ef-4e2f-a358-0b962b61e402
X-Runtime:
- '0.063850'
X-XSS-Protection:
- '0'
vary:
- Authorization, Origin
status:
code: 200
message: OK
- request:
body: notifications=1&duration=3
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
Content-Length:
- '26'
Content-Type:
- application/x-www-form-urlencoded
User-Agent:
- tests/v311
method: POST
uri: http://localhost:3000/api/v1/accounts/115033965466813222/mute
response:
body:
string: '{"id":"115033965466813222","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":true,"muting_notifications":true,"requested":false,"requested_by":false,"domain_blocking":false,"endorsed":false,"note":""}'
headers:
Cache-Control:
- private, no-store
Content-Length:
- '292'
Content-Security-Policy:
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"22ce63333d18b27b040a4c415e1648e6"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.02, sql.active_record;dur=6.58, cache_generate.active_support;dur=0.66,
cache_write.active_support;dur=0.06, instantiation.active_record;dur=0.34,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=5.97,
cache_delete.active_support;dur=0.03, cache_read_multi.active_support;dur=0.03,
cache_write_multi.active_support;dur=0.05, render.active_model_serializers;dur=0.14,
process_action.action_controller;dur=36.99
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-15T17:35:00.938301Z'
X-Request-Id:
- d5a3a60e-0895-4c8b-b0e3-cbe27dcacc2c
X-Runtime:
- '0.055283'
X-XSS-Protection:
- '0'
vary:
- Authorization, Origin
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/accounts/relationships?id=115033965466813222
response:
body:
string: '[{"id":"115033965466813222","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:
Cache-Control:
- private, no-store
Content-Length:
- '296'
Content-Security-Policy:
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"289a4e4d25f64de01cc3b1faeee8d77c"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.02, sql.active_record;dur=1.32, cache_generate.active_support;dur=0.99,
cache_write.active_support;dur=0.07, instantiation.active_record;dur=0.21,
start_processing.action_controller;dur=0.00, cache_read_multi.active_support;dur=0.04,
cache_write_multi.active_support;dur=0.06, render.active_model_serializers;dur=0.17,
process_action.action_controller;dur=25.75
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-15T17:35:00.011135Z'
X-Request-Id:
- e9f10ed8-f703-4785-a2e3-2040edc0ca25
X-Runtime:
- '0.046103'
X-XSS-Protection:
- '0'
vary:
- Authorization, Origin
status:
code: 200
message: OK
version: 1