kopia lustrzana https://github.com/halcy/Mastodon.py
				
				
				
			
		
			
				
	
	
		
			319 wiersze
		
	
	
		
			18 KiB
		
	
	
	
		
			YAML
		
	
	
			
		
		
	
	
			319 wiersze
		
	
	
		
			18 KiB
		
	
	
	
		
			YAML
		
	
	
| interactions:
 | |
| - request:
 | |
|     body: status=http%3A%2F%2Fexample.org%2F
 | |
|     headers:
 | |
|       Accept:
 | |
|       - '*/*'
 | |
|       Accept-Encoding:
 | |
|       - gzip, deflate, br
 | |
|       Authorization:
 | |
|       - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
 | |
|       Connection:
 | |
|       - keep-alive
 | |
|       Content-Length:
 | |
|       - '34'
 | |
|       Content-Type:
 | |
|       - application/x-www-form-urlencoded
 | |
|       User-Agent:
 | |
|       - tests/v311
 | |
|     method: POST
 | |
|     uri: http://localhost:3000/api/v1/statuses
 | |
|   response:
 | |
|     body:
 | |
|       string: '{"id":"115040001632721061","created_at":"2025-08-16T19:05:18.664Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"private","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/115040001632721061","url":"http://localhost:3000/@mastodonpy_test/115040001632721061","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003e\u003ca
 | |
|         href=\"http://example.org/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"
 | |
|         translate=\"no\"\u003e\u003cspan class=\"invisible\"\u003ehttp://\u003c/span\u003e\u003cspan
 | |
|         class=\"\"\u003eexample.org/\u003c/span\u003e\u003cspan class=\"invisible\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
 | |
|         test suite","website":null},"account":{"id":"115038701667226306","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-16T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test","uri":"http://localhost:3000/users/mastodonpy_test","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":11,"last_status_at":"2025-08-16","hide_collections":null,"noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'
 | |
|     headers:
 | |
|       Cache-Control:
 | |
|       - private, no-store
 | |
|       Content-Length:
 | |
|       - '1774'
 | |
|       Content-Security-Policy:
 | |
|       - default-src 'none'; frame-ancestors 'none'; form-action 'none'
 | |
|       Content-Type:
 | |
|       - application/json; charset=utf-8
 | |
|       ETag:
 | |
|       - W/"3450783c44d5c26f9938a4aa42634c8d"
 | |
|       Referrer-Policy:
 | |
|       - strict-origin-when-cross-origin
 | |
|       Server-Timing:
 | |
|       - cache_read.active_support;dur=0.05, sql.active_record;dur=14.54, cache_generate.active_support;dur=3.15,
 | |
|         cache_write.active_support;dur=0.13, instantiation.active_record;dur=0.61,
 | |
|         start_processing.action_controller;dur=0.00, transaction.active_record;dur=6.28,
 | |
|         render.active_model_serializers;dur=11.85, process_action.action_controller;dur=56.00
 | |
|       X-Content-Type-Options:
 | |
|       - nosniff
 | |
|       X-Frame-Options:
 | |
|       - SAMEORIGIN
 | |
|       X-Permitted-Cross-Domain-Policies:
 | |
|       - none
 | |
|       X-RateLimit-Limit:
 | |
|       - '300'
 | |
|       X-RateLimit-Remaining:
 | |
|       - '296'
 | |
|       X-RateLimit-Reset:
 | |
|       - '2025-08-16T21:00:00.692622Z'
 | |
|       X-Request-Id:
 | |
|       - 3b685537-71e3-4ba5-b308-4c3a75256a81
 | |
|       X-Runtime:
 | |
|       - '0.077544'
 | |
|       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/instance/
 | |
|   response:
 | |
|     body:
 | |
|       string: '{"uri":"localhost:3000","title":"Mastodon","short_description":"","description":"","email":"","version":"4.3.0","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":4,"status_count":101,"domain_count":0},"thumbnail":"http://localhost:3000/packs/media/images/preview-6399aebd96ccf025654e2977454f168f.png","languages":["en"],"registrations":true,"approval_required":true,"invites_enabled":true,"configuration":{"accounts":{"max_featured_tags":10},"statuses":{"max_characters":500,"max_media_attachments":4,"characters_reserved_per_url":23},"media_attachments":{"supported_mime_types":["image/jpeg","image/png","image/gif","image/heic","image/heif","image/webp","image/avif","video/webm","video/mp4","video/quicktime","video/ogg","audio/wave","audio/wav","audio/x-wav","audio/x-pn-wave","audio/vnd.wave","audio/ogg","audio/vorbis","audio/mpeg","audio/mp3","audio/webm","audio/flac","audio/aac","audio/m4a","audio/x-m4a","audio/mp4","audio/3gpp","video/x-ms-asf"],"image_size_limit":16777216,"image_matrix_limit":33177600,"video_size_limit":103809024,"video_frame_rate_limit":120,"video_matrix_limit":8294400},"polls":{"max_options":4,"max_characters_per_option":50,"min_expiration":300,"max_expiration":2629746}},"contact_account":null,"rules":[]}'
 | |
|     headers:
 | |
|       Cache-Control:
 | |
|       - max-age=300, public, stale-while-revalidate=30, stale-if-error=86400
 | |
|       Content-Length:
 | |
|       - '1260'
 | |
|       Content-Security-Policy:
 | |
|       - default-src 'none'; frame-ancestors 'none'; form-action 'none'
 | |
|       Content-Type:
 | |
|       - application/json; charset=utf-8
 | |
|       Date:
 | |
|       - Sat, 16 Aug 2025 19:05:38 GMT
 | |
|       ETag:
 | |
|       - W/"8f0217cc0f9164d31367ec26181fae62"
 | |
|       Referrer-Policy:
 | |
|       - strict-origin-when-cross-origin
 | |
|       Server-Timing:
 | |
|       - cache_read.active_support;dur=0.11, sql.active_record;dur=1.84, cache_generate.active_support;dur=7.12,
 | |
|         cache_write.active_support;dur=0.31, instantiation.active_record;dur=0.13,
 | |
|         start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
 | |
|         render.active_model_serializers;dur=10.05, process_action.action_controller;dur=29.30
 | |
|       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-16T19:10:00.787436Z'
 | |
|       X-Request-Id:
 | |
|       - 4b14f2ed-8577-4b81-b3c8-878c41731cde
 | |
|       X-Runtime:
 | |
|       - '0.050227'
 | |
|       X-XSS-Protection:
 | |
|       - '0'
 | |
|       vary:
 | |
|       - Accept, 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/v2/instance/
 | |
|   response:
 | |
|     body:
 | |
|       string: '{"domain":"localhost:3000","title":"Mastodon","version":"4.3.0","source_url":"https://github.com/mastodon/mastodon","description":"","usage":{"users":{"active_month":0}},"thumbnail":{"url":"http://localhost:3000/packs/media/images/preview-6399aebd96ccf025654e2977454f168f.png"},"icon":[{"src":"http://localhost:3000/packs/media/icons/android-chrome-36x36-4c61fdb42936428af85afdbf8c6a45a8.png","size":"36x36"},{"src":"http://localhost:3000/packs/media/icons/android-chrome-48x48-2027aead76dc906c981043d658a8258d.png","size":"48x48"},{"src":"http://localhost:3000/packs/media/icons/android-chrome-72x72-799d90b81f5b28cea7355a0c0b356381.png","size":"72x72"},{"src":"http://localhost:3000/packs/media/icons/android-chrome-96x96-c2dfcfa1268c56e59edddfe20d818b91.png","size":"96x96"},{"src":"http://localhost:3000/packs/media/icons/android-chrome-144x144-ff3110f7772743bdd0c1c47fb7b2d4e0.png","size":"144x144"},{"src":"http://localhost:3000/packs/media/icons/android-chrome-192x192-eddc1ed540e97b926202b7b857989d60.png","size":"192x192"},{"src":"http://localhost:3000/packs/media/icons/android-chrome-256x256-7b2b43926019259f7c9ddee627d80a0f.png","size":"256x256"},{"src":"http://localhost:3000/packs/media/icons/android-chrome-384x384-72068ed50b02828fc505a8d69b321dea.png","size":"384x384"},{"src":"http://localhost:3000/packs/media/icons/android-chrome-512x512-ccb53c9fcbb5f61bf741cc54998318f0.png","size":"512x512"}],"languages":["en"],"configuration":{"urls":{"streaming":"ws://localhost:4000","status":null},"vapid":{"public_key":"BM0khLcvEe3sNx-QO2PB1hqB-24BqdAh0_kG3nZKAHj348StAFL2EHzK1JJTplzKhmMoz3Z_cNfW6QY8ibUzdF4="},"accounts":{"max_featured_tags":10,"max_pinned_statuses":5},"statuses":{"max_characters":500,"max_media_attachments":4,"characters_reserved_per_url":23},"media_attachments":{"supported_mime_types":["image/jpeg","image/png","image/gif","image/heic","image/heif","image/webp","image/avif","video/webm","video/mp4","video/quicktime","video/ogg","audio/wave","audio/wav","audio/x-wav","audio/x-pn-wave","audio/vnd.wave","audio/ogg","audio/vorbis","audio/mpeg","audio/mp3","audio/webm","audio/flac","audio/aac","audio/m4a","audio/x-m4a","audio/mp4","audio/3gpp","video/x-ms-asf"],"image_size_limit":16777216,"image_matrix_limit":33177600,"video_size_limit":103809024,"video_frame_rate_limit":120,"video_matrix_limit":8294400},"polls":{"max_options":4,"max_characters_per_option":50,"min_expiration":300,"max_expiration":2629746},"translation":{"enabled":false}},"registrations":{"enabled":true,"approval_required":true,"message":null,"url":null},"api_versions":{"mastodon":2},"contact":{"email":"","account":null},"rules":[]}'
 | |
|     headers:
 | |
|       Cache-Control:
 | |
|       - max-age=300, public, stale-while-revalidate=30, stale-if-error=86400
 | |
|       Content-Length:
 | |
|       - '2641'
 | |
|       Content-Security-Policy:
 | |
|       - default-src 'none'; frame-ancestors 'none'; form-action 'none'
 | |
|       Content-Type:
 | |
|       - application/json; charset=utf-8
 | |
|       Date:
 | |
|       - Sat, 16 Aug 2025 19:05:38 GMT
 | |
|       ETag:
 | |
|       - W/"2f4f131317c14c268bad00aa2f75ca41"
 | |
|       Referrer-Policy:
 | |
|       - strict-origin-when-cross-origin
 | |
|       Server-Timing:
 | |
|       - cache_read.active_support;dur=0.99, sql.active_record;dur=1.69, cache_generate.active_support;dur=16.18,
 | |
|         cache_write.active_support;dur=0.64, instantiation.active_record;dur=0.13,
 | |
|         start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
 | |
|         render.active_model_serializers;dur=142.16, process_action.action_controller;dur=161.36
 | |
|       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-16T19:10:00.846410Z'
 | |
|       X-Request-Id:
 | |
|       - 8fa5fc77-68ee-40d2-b109-cfe48bcce5ef
 | |
|       X-Runtime:
 | |
|       - '0.181091'
 | |
|       X-XSS-Protection:
 | |
|       - '0'
 | |
|       vary:
 | |
|       - Accept, 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/statuses/115040001632721061
 | |
|   response:
 | |
|     body:
 | |
|       string: '{"id":"115040001632721061","created_at":"2025-08-16T19:05:18.664Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"private","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/115040001632721061","url":"http://localhost:3000/@mastodonpy_test/115040001632721061","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003e\u003ca
 | |
|         href=\"http://example.org/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"
 | |
|         translate=\"no\"\u003e\u003cspan class=\"invisible\"\u003ehttp://\u003c/span\u003e\u003cspan
 | |
|         class=\"\"\u003eexample.org/\u003c/span\u003e\u003cspan class=\"invisible\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
 | |
|         test suite","website":null},"account":{"id":"115038701667226306","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-16T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test","uri":"http://localhost:3000/users/mastodonpy_test","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":11,"last_status_at":"2025-08-16","hide_collections":null,"noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":{"url":"http://example.org/","title":"Example
 | |
|         Domain","description":"","language":null,"type":"link","author_name":"","author_url":"","provider_name":"","provider_url":"","html":"","width":0,"height":0,"image":null,"image_description":"","embed_url":"","blurhash":null,"published_at":null,"authors":[{"name":"","url":"","account":null}]},"poll":null}'
 | |
|     headers:
 | |
|       Cache-Control:
 | |
|       - private, no-store
 | |
|       Content-Length:
 | |
|       - '2107'
 | |
|       Content-Security-Policy:
 | |
|       - default-src 'none'; frame-ancestors 'none'; form-action 'none'
 | |
|       Content-Type:
 | |
|       - application/json; charset=utf-8
 | |
|       ETag:
 | |
|       - W/"56f6e123f9fbc079b8d9e70483c1bad9"
 | |
|       Referrer-Policy:
 | |
|       - strict-origin-when-cross-origin
 | |
|       Server-Timing:
 | |
|       - cache_read.active_support;dur=0.04, sql.active_record;dur=6.18, cache_generate.active_support;dur=2.67,
 | |
|         cache_write.active_support;dur=0.14, instantiation.active_record;dur=16.86,
 | |
|         start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=8.95,
 | |
|         process_action.action_controller;dur=59.89
 | |
|       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-16T19:10:00.042472Z'
 | |
|       X-Request-Id:
 | |
|       - 66463777-fabb-4ca0-8be6-098d8d9b2a09
 | |
|       X-Runtime:
 | |
|       - '0.081581'
 | |
|       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: DELETE
 | |
|     uri: http://localhost:3000/api/v1/statuses/115040001632721061
 | |
|   response:
 | |
|     body:
 | |
|       string: '{"id":"115040001632721061","created_at":"2025-08-16T19:05:18.664Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"private","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/115040001632721061","url":"http://localhost:3000/@mastodonpy_test/115040001632721061","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"http://example.org/","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
 | |
|         test suite","website":null},"account":{"id":"115038701667226306","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-16T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test","uri":"http://localhost:3000/users/mastodonpy_test","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":10,"last_status_at":"2025-08-16","hide_collections":null,"noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":{"url":"http://example.org/","title":"Example
 | |
|         Domain","description":"","language":null,"type":"link","author_name":"","author_url":"","provider_name":"","provider_url":"","html":"","width":0,"height":0,"image":null,"image_description":"","embed_url":"","blurhash":null,"published_at":null,"authors":[{"name":"","url":"","account":null}]},"poll":null}'
 | |
|     headers:
 | |
|       Cache-Control:
 | |
|       - private, no-store
 | |
|       Content-Length:
 | |
|       - '1799'
 | |
|       Content-Security-Policy:
 | |
|       - default-src 'none'; frame-ancestors 'none'; form-action 'none'
 | |
|       Content-Type:
 | |
|       - application/json; charset=utf-8
 | |
|       ETag:
 | |
|       - W/"4f82467c5cedd22dde9bd90be152deb5"
 | |
|       Referrer-Policy:
 | |
|       - strict-origin-when-cross-origin
 | |
|       Server-Timing:
 | |
|       - cache_read.active_support;dur=0.04, sql.active_record;dur=9.77, cache_generate.active_support;dur=2.76,
 | |
|         cache_write.active_support;dur=0.14, instantiation.active_record;dur=13.29,
 | |
|         start_processing.action_controller;dur=0.00, transaction.active_record;dur=4.68,
 | |
|         render.active_model_serializers;dur=31.13, process_action.action_controller;dur=63.63
 | |
|       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-16T19:30:00.168152Z'
 | |
|       X-Request-Id:
 | |
|       - 7026d9c8-dd7f-448d-8d27-94265b8d0a7b
 | |
|       X-Runtime:
 | |
|       - '0.084481'
 | |
|       X-XSS-Protection:
 | |
|       - '0'
 | |
|       vary:
 | |
|       - Authorization, Origin
 | |
|     status:
 | |
|       code: 200
 | |
|       message: OK
 | |
| version: 1
 |