Mastodon.py/tests/cassettes/test_markers.yaml

258 wiersze
11 KiB
YAML

interactions:
- request:
body: status=Toot%21
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
Content-Length:
- '14'
Content-Type:
- application/x-www-form-urlencoded
User-Agent:
- tests/v311
method: POST
uri: http://localhost:3000/api/v1/statuses
response:
body:
string: '{"id":"115045575552757678","created_at":"2025-08-17T18:42:49.935Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/115045575552757678","url":"http://localhost:3000/@mastodonpy_test/115045575552757678","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
test suite","website":null},"account":{"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":2,"last_status_at":"2025-08-17","hide_collections":null,"noindex":false,"emojis":[],"roles":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"quote":null,"card":null,"poll":null}'
headers:
Content-Length:
- '1846'
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/"0bcf2cf57d8df85a213afff27ced62ce"
referrer-policy:
- strict-origin-when-cross-origin
server-timing:
- cache_read.active_support;dur=0.07, sql.active_record;dur=15.24, cache_generate.active_support;dur=5.15,
cache_write.active_support;dur=0.14, instantiation.active_record;dur=0.58,
start_processing.action_controller;dur=0.00, start_transaction.active_record;dur=0.00,
transaction.active_record;dur=7.23, render.active_model_serializers;dur=22.22,
process_action.action_controller;dur=78.03
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:
- '288'
x-ratelimit-reset:
- '2025-08-17T21:00:00.976900Z'
x-request-id:
- e241c853-26ef-4fa9-a62e-21209db474d6
x-runtime:
- '0.098543'
x-xss-protection:
- '0'
status:
code: 200
message: OK
- request:
body: '{"home": {"last_read_id": "115045575552757678"}}'
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
Content-Length:
- '48'
Content-Type:
- application/json
User-Agent:
- tests/v311
method: POST
uri: http://localhost:3000/api/v1/markers
response:
body:
string: '{"home":{"last_read_id":"115045575552757678","version":1,"updated_at":"2025-08-17T18:42:50.074Z"}}'
headers:
Content-Length:
- '98'
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/"e0430f3238f3d7fc44c3e83b22abadbe"
referrer-policy:
- strict-origin-when-cross-origin
server-timing:
- cache_read.active_support;dur=0.03, sql.active_record;dur=8.56, cache_generate.active_support;dur=1.02,
cache_write.active_support;dur=0.08, instantiation.active_record;dur=0.21,
start_processing.action_controller;dur=0.00, start_transaction.active_record;dur=0.01,
transaction.active_record;dur=12.91, render.active_model_serializers;dur=0.13,
process_action.action_controller;dur=42.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.063176Z'
x-request-id:
- fca435ef-8d09-4d1f-8451-93a0608fc09d
x-runtime:
- '0.067363'
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/markers?timeline%5B%5D=home
response:
body:
string: '{"home":{"last_read_id":"115045575552757678","version":1,"updated_at":"2025-08-17T18:42:50.074Z"}}'
headers:
Content-Length:
- '98'
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/"e0430f3238f3d7fc44c3e83b22abadbe"
referrer-policy:
- strict-origin-when-cross-origin
server-timing:
- cache_read.active_support;dur=0.03, sql.active_record;dur=2.97, cache_generate.active_support;dur=1.33,
cache_write.active_support;dur=0.39, instantiation.active_record;dur=3.24,
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=0.12,
process_action.action_controller;dur=36.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.145928Z'
x-request-id:
- 568f1dc3-2670-4df7-a200-4f10a76475aa
x-runtime:
- '0.065541'
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: DELETE
uri: http://localhost:3000/api/v1/statuses/115045575552757678
response:
body:
string: '{"id":"115045575552757678","created_at":"2025-08-17T18:42:49.935Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/115045575552757678","url":"http://localhost:3000/@mastodonpy_test/115045575552757678","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
test suite","website":null},"account":{"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":1,"last_status_at":"2025-08-17","hide_collections":null,"noindex":false,"emojis":[],"roles":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"quote":null,"card":null,"poll":null}'
headers:
Content-Length:
- '1816'
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/"5f2abefbf896f0644c9458776b83b9ab"
referrer-policy:
- strict-origin-when-cross-origin
server-timing:
- cache_read.active_support;dur=0.06, sql.active_record;dur=9.05, cache_generate.active_support;dur=3.57,
cache_write.active_support;dur=0.17, instantiation.active_record;dur=0.52,
start_processing.action_controller;dur=0.00, start_transaction.active_record;dur=0.00,
transaction.active_record;dur=5.09, render.active_model_serializers;dur=21.69,
process_action.action_controller;dur=61.51
vary:
- Authorization, Origin
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-permitted-cross-domain-policies:
- none
x-ratelimit-limit:
- '30'
x-ratelimit-remaining:
- '29'
x-ratelimit-reset:
- '2025-08-17T19:00:00.212225Z'
x-request-id:
- a490dd53-8807-4ff5-ae38-271d704fab58
x-runtime:
- '0.081672'
x-xss-protection:
- '0'
status:
code: 200
message: OK
version: 1