some fixes to versions, test

pull/419/head
halcy 2025-08-16 22:18:21 +03:00
rodzic b6ce6576ce
commit 510e60df2f
21 zmienionych plików z 75177 dodań i 73343 usunięć

Wyświetl plik

@ -16,7 +16,7 @@ v2.1.0 (IN PROGRESS)
* Added pagination iteraton via `pagination_iterator` (Thanks @FredericoCeratto for the suggestion)
* Added a way to get pagination info out of lists that is slightly less digging-around-in-internals via `get_pagination_info` (Thanks @s427 for the inciting report)
* Added missing `replies_policy` and `exclusive` parameters to list creation and update methods.
* Add status length counter `get_status_length` (Thanks @yuletide for the suggestion)
* Add status length counter `get_status_length` (Thanks @yuletide for the suggestion and @cheeaun for the assistance)
* Fix `notifications` returning nonsense when passing a single `id` (Thanks @chinchalinchin for the report)
* Fix `moved` accidentally being named `moved_to_account` (Thanks @unusualevent for the report)

Wyświetl plik

@ -252,6 +252,7 @@ class Mastodon(Internals):
if not mastodon_version is None:
self.__version_check_tried = True
self.__version_check_worked = True
# Cached version check
self.__streaming_base = None

Wyświetl plik

@ -40,6 +40,13 @@ class Mastodon(Internals):
"""
return self.__api_request('GET', '/api/v2/instance/')
def __instance_v2(self) -> InstanceV2:
"""
Internal, non-version-checking helper that does the same as instance_v2()
"""
instance = self.__api_request('GET', '/api/v2/instance/', override_type=InstanceV2)
return instance
@api_version("1.1.0", "4.0.0")
def instance(self) -> Union[InstanceV2, Instance]:
"""

Wyświetl plik

@ -50,7 +50,7 @@ class Mastodon(Internals):
# which might help with adoption of the API versioning or at least give us a better picture of how it is going.
found_api_version = False
try:
instance_v2_info = self.instance_v2()
instance_v2_info = self.__instance_v2()
if "api_versions" in instance_v2_info:
if "mastodon" in instance_v2_info["api_versions"]:
self.mastodon_api_version = int(

Wyświetl plik

@ -9978,7 +9978,17 @@
"is_nullable": false
}
}
},
{
"name": "OAuth Server Info",
"python_name": "OAuthServerInfo",
"func_call": "mastodon.oauth_authorization_server_info()",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": null,
"manual_update": false,
"masto_doc_link": "https://docs.joinmastodon.org/methods/oauth/#authorization-server-metadata",
"description": "Information about the OAuth authorization server.",
"fields": { }
}
]

Wyświetl plik

@ -1,4 +1,126 @@
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/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":100,"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:02:49 GMT
ETag:
- W/"cc91a3c4f150917976d05afebc63268b"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=1.10, sql.active_record;dur=12.85, cache_generate.active_support;dur=57.40,
cache_write.active_support;dur=1.23, instantiation.active_record;dur=2.39,
start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
render.active_model_serializers;dur=52.15, process_action.action_controller;dur=89.92
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:05:00.386741Z'
X-Request-Id:
- df4c75f4-78ec-40fe-ba43-7045194420e9
X-Runtime:
- '0.183187'
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_2
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:02:49 GMT
ETag:
- W/"2f4f131317c14c268bad00aa2f75ca41"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=2.68, sql.active_record;dur=6.51, cache_generate.active_support;dur=92.00,
cache_write.active_support;dur=1.69, instantiation.active_record;dur=0.68,
start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
render.active_model_serializers;dur=202.60, process_action.action_controller;dur=236.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:05:00.801521Z'
X-Request-Id:
- 59d38425-44c1-4bb9-91ec-b0c1b0f18e53
X-Runtime:
- '0.541298'
X-XSS-Protection:
- '0'
vary:
- Accept, Origin
status:
code: 200
message: OK
- request:
body: null
headers:
@ -31,10 +153,10 @@ interactions:
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.06, sql.active_record;dur=7.26, cache_generate.active_support;dur=21.22,
cache_write.active_support;dur=0.16, instantiation.active_record;dur=0.23,
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=0.04,
process_action.action_controller;dur=42.22
- cache_read.active_support;dur=0.12, sql.active_record;dur=10.37, cache_generate.active_support;dur=46.86,
cache_write.active_support;dur=0.19, instantiation.active_record;dur=1.49,
start_processing.action_controller;dur=0.01, render.active_model_serializers;dur=0.05,
process_action.action_controller;dur=84.95
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -46,11 +168,11 @@ interactions:
X-RateLimit-Remaining:
- '299'
X-RateLimit-Reset:
- '2025-08-15T17:35:00.112208Z'
- '2025-08-16T19:05:00.125242Z'
X-Request-Id:
- 8d032ba0-0b3b-4135-9d63-fbd80bf1169c
- bbe7fe6a-d219-4e93-a9fb-b2e02dce9668
X-Runtime:
- '0.064445'
- '0.160496'
X-XSS-Protection:
- '0'
vary:
@ -90,10 +212,10 @@ interactions:
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.06, sql.active_record;dur=7.54, cache_generate.active_support;dur=47.41,
cache_write.active_support;dur=0.17, instantiation.active_record;dur=0.22,
- cache_read.active_support;dur=0.08, sql.active_record;dur=9.23, cache_generate.active_support;dur=26.44,
cache_write.active_support;dur=0.18, instantiation.active_record;dur=0.57,
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=0.04,
process_action.action_controller;dur=53.06
process_action.action_controller;dur=54.29
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -105,11 +227,11 @@ interactions:
X-RateLimit-Remaining:
- '299'
X-RateLimit-Reset:
- '2025-08-15T17:35:00.180594Z'
- '2025-08-16T19:05:00.260443Z'
X-Request-Id:
- 69f4e819-1331-4a2b-9cb6-d0d211aa43d5
- 3e59467e-0463-41ae-8923-c145fcd3af47
X-Runtime:
- '0.075810'
- '0.100319'
X-XSS-Protection:
- '0'
vary:
@ -149,10 +271,10 @@ interactions:
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.06, sql.active_record;dur=4.34, cache_generate.active_support;dur=12.11,
cache_write.active_support;dur=0.16, instantiation.active_record;dur=0.23,
- cache_read.active_support;dur=0.08, sql.active_record;dur=5.39, cache_generate.active_support;dur=14.14,
cache_write.active_support;dur=0.15, instantiation.active_record;dur=0.19,
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=0.04,
process_action.action_controller;dur=29.96
process_action.action_controller;dur=32.63
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -164,11 +286,11 @@ interactions:
X-RateLimit-Remaining:
- '299'
X-RateLimit-Reset:
- '2025-08-15T17:35:00.263913Z'
- '2025-08-16T19:05:00.352369Z'
X-Request-Id:
- 076af2ff-4247-4805-97e7-f4596d56c77f
- f5f5648b-3614-4662-a6fe-9ad9bbac017b
X-Runtime:
- '0.052025'
- '0.062071'
X-XSS-Protection:
- '0'
vary:

Wyświetl plik

@ -1,4 +1,65 @@
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/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":100,"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:03:38 GMT
ETag:
- W/"cc91a3c4f150917976d05afebc63268b"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.12, sql.active_record;dur=2.12, cache_generate.active_support;dur=7.19,
cache_write.active_support;dur=0.38, instantiation.active_record;dur=0.15,
start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
render.active_model_serializers;dur=10.50, process_action.action_controller;dur=30.31
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:05:00.413152Z'
X-Request-Id:
- 38242860-3015-4475-8a1c-a07e5bcd6190
X-Runtime:
- '0.052205'
X-XSS-Protection:
- '0'
vary:
- Accept, Origin
status:
code: 200
message: OK
- request:
body: null
headers:
@ -16,27 +77,27 @@ interactions:
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":"BPtNmLhj_FlqUHpabUpI4QNoR3B3CZQcHYvYBR5FvoLgKn7M5bsjsYqaVYxJPyGMMUS_FLtlh6zbvjrx-QwLIxk="},"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":false,"message":null,"url":null},"api_versions":{"mastodon":2},"contact":{"email":"","account":null},"rules":[]}'
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:
- '2642'
- '2641'
Content-Security-Policy:
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
Content-Type:
- application/json; charset=utf-8
Date:
- Fri, 15 Aug 2025 17:33:01 GMT
- Sat, 16 Aug 2025 19:03:38 GMT
ETag:
- W/"f801e807ef6a5597580ee42c1f893ea7"
- W/"2f4f131317c14c268bad00aa2f75ca41"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.16, sql.active_record;dur=1.52, cache_generate.active_support;dur=7.25,
cache_write.active_support;dur=0.49, instantiation.active_record;dur=0.18,
- cache_read.active_support;dur=0.13, sql.active_record;dur=1.29, cache_generate.active_support;dur=11.18,
cache_write.active_support;dur=0.43, instantiation.active_record;dur=0.15,
start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
render.active_model_serializers;dur=20.71, process_action.action_controller;dur=42.70
render.active_model_serializers;dur=24.08, process_action.action_controller;dur=43.82
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -48,11 +109,72 @@ interactions:
X-RateLimit-Remaining:
- '299'
X-RateLimit-Reset:
- '2025-08-15T17:35:00.804383Z'
- '2025-08-16T19:05:00.473049Z'
X-Request-Id:
- 4761f750-c955-4b32-bffa-d5853f49259c
- c6da66c3-8b74-4cb2-8fd7-b6ccbf90f831
X-Runtime:
- '0.065127'
- '0.063470'
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:03:38 GMT
ETag:
- W/"2f4f131317c14c268bad00aa2f75ca41"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.11, sql.active_record;dur=1.09, cache_generate.active_support;dur=4.74,
cache_write.active_support;dur=0.53, instantiation.active_record;dur=0.12,
start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
render.active_model_serializers;dur=16.63, process_action.action_controller;dur=36.23
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:05:00.553105Z'
X-Request-Id:
- a9f6565e-dbde-4c7f-907b-9b30fd627166
X-Runtime:
- '0.055530'
X-XSS-Protection:
- '0'
vary:

Wyświetl plik

@ -1,9 +1,131 @@
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/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":100,"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:04:14 GMT
ETag:
- W/"cc91a3c4f150917976d05afebc63268b"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.12, sql.active_record;dur=1.82, cache_generate.active_support;dur=6.87,
cache_write.active_support;dur=0.43, instantiation.active_record;dur=0.15,
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.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-16T19:05:00.402808Z'
X-Request-Id:
- 963e64ef-eef6-4d6a-b5e7-0ea75bc3312e
X-Runtime:
- '0.049951'
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:04:14 GMT
ETag:
- W/"2f4f131317c14c268bad00aa2f75ca41"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.13, sql.active_record;dur=1.23, cache_generate.active_support;dur=5.39,
cache_write.active_support;dur=0.35, instantiation.active_record;dur=0.15,
start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
render.active_model_serializers;dur=19.66, process_action.action_controller;dur=40.06
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:05:00.462972Z'
X-Request-Id:
- 94bc6eb0-def6-4d43-8fc9-11560f23749c
X-Runtime:
- '0.060678'
X-XSS-Protection:
- '0'
vary:
- Accept, Origin
status:
code: 200
message: OK
- request:
body: !!binary |
LS05OWQ5MzE3Y2YzZWNmNzA2NWNmYzhhM2E3YmExMWVkZQ0KQ29udGVudC1EaXNwb3NpdGlvbjog
Zm9ybS1kYXRhOyBuYW1lPSJmaWxlIjsgZmlsZW5hbWU9Im1hc3RvZG9ucHl1cGxvYWRfMTc1NTI3
OTIyMC45MDg4NDRfYTc0MTQwYWYxMTFkNGJiMDhmOTk1YjZhODFhN2E4ZGIuanBnIg0KQ29udGVu
LS1hMzZlNWE0YWI0ZWNhNTJmMWMxYTU4ZGY3MjYxOTM4Yw0KQ29udGVudC1EaXNwb3NpdGlvbjog
Zm9ybS1kYXRhOyBuYW1lPSJmaWxlIjsgZmlsZW5hbWU9Im1hc3RvZG9ucHl1cGxvYWRfMTc1NTM3
MTA1NC4zNjE5MDhfYWYzNzhlOWE4NTRmNGJjZGEyNDU2YTRjNDU0ZGE4OGMuanBnIg0KQ29udGVu
dC1UeXBlOiBpbWFnZS9qcGVnDQoNCv/Y/+AAEEpGSUYAAQEBAEgASAAA/+ICHElDQ19QUk9GSUxF
AAEBAAACDGxjbXMCEAAAbW50clJHQiBYWVogB9wAAQAZAAMAKQA5YWNzcEFQUEwAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1sY21zAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
@ -939,8 +1061,8 @@ interactions:
tQWLFUTDj70qVREpYjcPbiv3elShfkRBtkgMCmGlSoojqYg3CP1hg5XagwuSZZej1N96VKgeHKRZ
Sii9BM7fep2iK8u6Y69PxSpUVZtsdoSiQO3N/mozLhcIxMSN89s+KVKgU4XMHLHOFF7LVZRJrFV2
2pUqBoKKIKucrmmTAxMZfilSoFO2xicuMnjFStYMZkHV3XP4pUqC5Zbdy3MwJvu7U0AjASTLfOy9
aVKgjPC5Yj9imCTIjyrGTjBn9aVKgY09xujjo55uzvSpUqD/2Q0KLS05OWQ5MzE3Y2YzZWNmNzA2
NWNmYzhhM2E3YmExMWVkZS0tDQo=
aVKgjPC5Yj9imCTIjyrGTjBn9aVKgY09xujjo55uzvSpUqD/2Q0KLS1hMzZlNWE0YWI0ZWNhNTJm
MWMxYTU4ZGY3MjYxOTM4Yy0tDQo=
headers:
Accept:
- '*/*'
@ -953,14 +1075,14 @@ interactions:
Content-Length:
- '53543'
Content-Type:
- multipart/form-data; boundary=99d9317cf3ecf7065cfc8a3a7ba11ede
- multipart/form-data; boundary=a36e5a4ab4eca52f1c1a58df7261938c
User-Agent:
- tests/v311
method: POST
uri: http://localhost:3000/api/v2/media
response:
body:
string: '{"id":"115033979034911993","type":"image","url":"http://localhost:3000/system/media_attachments/files/115/033/979/034/911/993/original/b3d1324fadb309f3.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/115/033/979/034/911/993/small/b3d1324fadb309f3.jpg","remote_url":null,"preview_remote_url":null,"text_url":null,"meta":{"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":480,"height":480,"size":"480x480","aspect":1.0}},"description":null,"blurhash":"UGD9YhIn00j[NFofR%M{IURj%Ms;D%of%MR%"}'
string: '{"id":"115039997441226954","type":"image","url":"http://localhost:3000/system/media_attachments/files/115/039/997/441/226/954/original/6fe6f23fd2bfeb40.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/115/039/997/441/226/954/small/6fe6f23fd2bfeb40.jpg","remote_url":null,"preview_remote_url":null,"text_url":null,"meta":{"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":480,"height":480,"size":"480x480","aspect":1.0}},"description":null,"blurhash":"UGD9YhIn00j[NFofR%M{IURj%Ms;D%of%MR%"}'
headers:
Cache-Control:
- private, no-store
@ -971,14 +1093,14 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"99e6823ee205312ec7c487cd5d5aa1fd"
- W/"e80b21fc3e114c5aa7e0b0ac92bac0cc"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.02, sql.active_record;dur=5.39, cache_generate.active_support;dur=0.89,
cache_write.active_support;dur=0.07, instantiation.active_record;dur=0.23,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=8.48,
render.active_model_serializers;dur=0.65, process_action.action_controller;dur=192.59
- cache_read.active_support;dur=0.02, sql.active_record;dur=4.56, cache_generate.active_support;dur=0.95,
cache_write.active_support;dur=0.10, instantiation.active_record;dur=0.24,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=8.07,
render.active_model_serializers;dur=0.49, process_action.action_controller;dur=194.47
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -990,11 +1112,11 @@ interactions:
X-RateLimit-Remaining:
- '29'
X-RateLimit-Reset:
- '2025-08-15T18:00:00.949272Z'
- '2025-08-16T19:30:00.539787Z'
X-Request-Id:
- 2c25c1cc-25e5-4119-8a22-f409fda819ff
- 3f56f16b-d28d-4af8-8789-ce49e1ebc9cc
X-Runtime:
- '0.211871'
- '0.214641'
X-XSS-Protection:
- '0'
vary:

Wyświetl plik

@ -1,9 +1,131 @@
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/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":100,"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:04:14 GMT
ETag:
- W/"cc91a3c4f150917976d05afebc63268b"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.11, sql.active_record;dur=1.62, cache_generate.active_support;dur=5.73,
cache_write.active_support;dur=0.28, instantiation.active_record;dur=0.11,
start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
render.active_model_serializers;dur=8.28, process_action.action_controller;dur=27.68
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:05:00.853560Z'
X-Request-Id:
- a0166180-8678-410c-a46f-18f23c7e40ea
X-Runtime:
- '0.049370'
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:04:14 GMT
ETag:
- W/"2f4f131317c14c268bad00aa2f75ca41"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.13, sql.active_record;dur=1.05, cache_generate.active_support;dur=4.79,
cache_write.active_support;dur=0.26, instantiation.active_record;dur=0.12,
start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
render.active_model_serializers;dur=17.66, process_action.action_controller;dur=37.47
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:05:00.911636Z'
X-Request-Id:
- 31f7a045-7aa0-4fed-9010-400c4879817b
X-Runtime:
- '0.057785'
X-XSS-Protection:
- '0'
vary:
- Accept, Origin
status:
code: 200
message: OK
- request:
body: !!binary |
LS1kODBmMzY0OTQ5MjA0ZTVhZWY4NWViNjYzNmY4ZDY3Yw0KQ29udGVudC1EaXNwb3NpdGlvbjog
Zm9ybS1kYXRhOyBuYW1lPSJmaWxlIjsgZmlsZW5hbWU9Im1hc3RvZG9ucHl1cGxvYWRfMTc1NTI3
OTIyMS4yMTA2MzE4X2Y3NTJmZGMyMzA4ZTQ0YWZiYzY5ZjE5MGZjMjlmOGY1LmpwZyINCkNvbnRl
LS1mZDE5NTc4ZTIwZmFjN2QyMzk0MmM4ZTE1MzJlZTNiZQ0KQ29udGVudC1EaXNwb3NpdGlvbjog
Zm9ybS1kYXRhOyBuYW1lPSJmaWxlIjsgZmlsZW5hbWU9Im1hc3RvZG9ucHl1cGxvYWRfMTc1NTM3
MTA1NC44MTEzNDAzXzkxYmIxNTdmNDUxZjRiNTg4Y2M2ODNiMmRkOTIyNTExLmpwZyINCkNvbnRl
bnQtVHlwZTogaW1hZ2UvanBlZw0KDQr/2P/gABBKRklGAAEBAQBIAEgAAP/iAhxJQ0NfUFJPRklM
RQABAQAAAgxsY21zAhAAAG1udHJSR0IgWFlaIAfcAAEAGQADACkAOWFjc3BBUFBMAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAD21gABAAAAANMtbGNtcwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
@ -939,8 +1061,8 @@ interactions:
yLUFixVEw4+9KlURKWI3D24r93pUoX5EQbZIDAphpUqKI6mINwj9YYOV2oMLkmWXo9TfelSoHhyk
WUoovQTO33qdoivLumOvT8UqVFWbbHaEokDtzf5qMy4XCMTEjfPbPilSoFOFzByxzhRey1WUSaxV
dtqVKgaCiiCrnK5pkwMTGX4pUqBTtsYnLjJ4xUrWDGZB1d1z+KVKguWW3ctzMCb7u1NAIwEky3zs
vWlSoIzwuWI/YpgkyI8qxk4wZ/WlSoGNPcbo46Oebs70qVKg/9kNCi0tZDgwZjM2NDk0OTIwNGU1
YWVmODVlYjY2MzZmOGQ2N2MtLQ0K
vWlSoIzwuWI/YpgkyI8qxk4wZ/WlSoGNPcbo46Oebs70qVKg/9kNCi0tZmQxOTU3OGUyMGZhYzdk
MjM5NDJjOGUxNTMyZWUzYmUtLQ0K
headers:
Accept:
- '*/*'
@ -953,14 +1075,14 @@ interactions:
Content-Length:
- '53544'
Content-Type:
- multipart/form-data; boundary=d80f364949204e5aef85eb6636f8d67c
- multipart/form-data; boundary=fd19578e20fac7d23942c8e1532ee3be
User-Agent:
- tests/v311
method: POST
uri: http://localhost:3000/api/v2/media
response:
body:
string: '{"id":"115033979054705891","type":"image","url":"http://localhost:3000/system/media_attachments/files/115/033/979/054/705/891/original/72fc90971b37caed.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/115/033/979/054/705/891/small/72fc90971b37caed.jpg","remote_url":null,"preview_remote_url":null,"text_url":null,"meta":{"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":480,"height":480,"size":"480x480","aspect":1.0}},"description":null,"blurhash":"UGD9YhIn00j[NFofR%M{IURj%Ms;D%of%MR%"}'
string: '{"id":"115039997473842542","type":"image","url":"http://localhost:3000/system/media_attachments/files/115/039/997/473/842/542/original/fbdaab35ba76ee63.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/115/039/997/473/842/542/small/fbdaab35ba76ee63.jpg","remote_url":null,"preview_remote_url":null,"text_url":null,"meta":{"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":480,"height":480,"size":"480x480","aspect":1.0}},"description":null,"blurhash":"UGD9YhIn00j[NFofR%M{IURj%Ms;D%of%MR%"}'
headers:
Cache-Control:
- private, no-store
@ -971,14 +1093,14 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"9a0217b761a6118fd74a1bd38cd36ba7"
- W/"aef78c8b4e18d195fa659ade1b3d8a22"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.02, sql.active_record;dur=5.01, cache_generate.active_support;dur=0.89,
cache_write.active_support;dur=0.08, instantiation.active_record;dur=0.25,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=6.74,
render.active_model_serializers;dur=0.51, process_action.action_controller;dur=189.99
- cache_read.active_support;dur=0.01, sql.active_record;dur=9.46, cache_generate.active_support;dur=0.71,
cache_write.active_support;dur=0.07, instantiation.active_record;dur=0.24,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=28.44,
render.active_model_serializers;dur=1.36, process_action.action_controller;dur=267.66
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -990,11 +1112,11 @@ interactions:
X-RateLimit-Remaining:
- '29'
X-RateLimit-Reset:
- '2025-08-15T18:00:00.252557Z'
- '2025-08-16T19:30:00.986413Z'
X-Request-Id:
- 7691e1b7-00a5-4cf2-b48d-08ea5610c22b
- 812fe016-6789-446a-8aa7-1ac79df4750e
X-Runtime:
- '0.210379'
- '0.288104'
X-XSS-Protection:
- '0'
vary:

Wyświetl plik

@ -20,11 +20,11 @@ interactions:
uri: http://localhost:3000/api/v1/statuses
response:
body:
string: '{"id":"115033980197695400","created_at":"2025-08-15T17:33:58.858Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/115033980197695400","url":"http://localhost:3000/@admin/115033980197695400","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\u003cspan
string: '{"id":"115039998563893538","created_at":"2025-08-16T19:04:31.837Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/115039998563893538","url":"http://localhost:3000/@admin/115039998563893538","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\u003cspan
class=\"h-card\" translate=\"no\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\"
class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e
hello!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
test suite","website":null},"account":{"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":1,"last_status_at":"2025-08-15","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"115033965771926537","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'
test suite","website":null},"account":{"id":"115038701349222037","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-16T00: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":1,"last_status_at":"2025-08-16","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"115038701667226306","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'
headers:
Cache-Control:
- private, no-store
@ -35,14 +35,14 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"6626bbf36bcee7792e5ca2e9f4595d12"
- W/"e53a0fd8069e768d6b77bc8bd46f7a28"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.05, sql.active_record;dur=14.74, cache_generate.active_support;dur=2.94,
cache_write.active_support;dur=0.13, instantiation.active_record;dur=0.61,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=10.00,
render.active_model_serializers;dur=14.33, process_action.action_controller;dur=60.18
- cache_read.active_support;dur=0.06, sql.active_record;dur=15.32, cache_generate.active_support;dur=2.62,
cache_write.active_support;dur=0.14, instantiation.active_record;dur=0.61,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=11.17,
render.active_model_serializers;dur=10.69, process_action.action_controller;dur=60.18
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -52,13 +52,13 @@ interactions:
X-RateLimit-Limit:
- '300'
X-RateLimit-Remaining:
- '292'
- '297'
X-RateLimit-Reset:
- '2025-08-15T18:00:00.890004Z'
- '2025-08-16T21:00:00.865659Z'
X-Request-Id:
- dcb5e6b5-50ff-412e-93e7-64d088eca97e
- bb6ca49c-7b99-4429-ba98-01251da73d30
X-Runtime:
- '0.078848'
- '0.082320'
X-XSS-Protection:
- '0'
vary:
@ -83,11 +83,11 @@ interactions:
uri: http://localhost:3000/api/v1/notifications
response:
body:
string: '[{"id":"27","type":"mention","created_at":"2025-08-15T17:33:59.202Z","group_key":"ungrouped-27","account":{"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":1,"last_status_at":"2025-08-15","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"status":{"id":"115033980197695400","created_at":"2025-08-15T17:33:58.858Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/115033980197695400","url":"http://localhost:3000/@admin/115033980197695400","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan
string: '[{"id":"17","type":"mention","created_at":"2025-08-16T19:04:32.174Z","group_key":"ungrouped-17","account":{"id":"115038701349222037","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-16T00: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":1,"last_status_at":"2025-08-16","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"status":{"id":"115039998563893538","created_at":"2025-08-16T19:04:31.837Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/115039998563893538","url":"http://localhost:3000/@admin/115039998563893538","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan
class=\"h-card\" translate=\"no\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\"
class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e
hello!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
test suite","website":null},"account":{"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":1,"last_status_at":"2025-08-15","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"115033965771926537","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}}]'
test suite","website":null},"account":{"id":"115038701349222037","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-16T00: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":1,"last_status_at":"2025-08-16","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"115038701667226306","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}}]'
headers:
Cache-Control:
- private, no-store
@ -98,17 +98,17 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"9362e4e960d6be8d9c3458ceead428eb"
- W/"ea07ee873476e60caafb0f1a630b97bd"
Link:
- <http://localhost:3000/api/v1/notifications?max_id=27>; rel="next", <http://localhost:3000/api/v1/notifications?min_id=27>;
- <http://localhost:3000/api/v1/notifications?max_id=17>; rel="next", <http://localhost:3000/api/v1/notifications?min_id=17>;
rel="prev"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.10, sql.active_record;dur=3.17, cache_generate.active_support;dur=2.80,
cache_write.active_support;dur=0.12, instantiation.active_record;dur=0.91,
- cache_read.active_support;dur=0.07, sql.active_record;dur=3.22, cache_generate.active_support;dur=2.79,
cache_write.active_support;dur=0.13, instantiation.active_record;dur=0.72,
start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
render.active_model_serializers;dur=4.92, process_action.action_controller;dur=42.09
render.active_model_serializers;dur=4.29, process_action.action_controller;dur=42.67
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -120,11 +120,11 @@ interactions:
X-RateLimit-Remaining:
- '299'
X-RateLimit-Reset:
- '2025-08-15T17:35:00.969656Z'
- '2025-08-16T19:05:00.959736Z'
X-Request-Id:
- 078ade6a-3e09-412e-aab5-246a4a4f79a3
- 2e083bb3-2bee-443e-9779-23a49d141933
X-Runtime:
- '0.061032'
- '0.062987'
X-XSS-Protection:
- '0'
vary:
@ -132,6 +132,128 @@ interactions:
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:04:35 GMT
ETag:
- W/"8f0217cc0f9164d31367ec26181fae62"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.14, sql.active_record;dur=1.81, cache_generate.active_support;dur=9.16,
cache_write.active_support;dur=0.35, 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=9.24, process_action.action_controller;dur=28.74
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:05:00.073089Z'
X-Request-Id:
- ac5a44d0-0278-44fa-a430-c0bc64d0168f
X-Runtime:
- '0.050884'
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:04:35 GMT
ETag:
- W/"2f4f131317c14c268bad00aa2f75ca41"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.11, sql.active_record;dur=1.04, cache_generate.active_support;dur=4.61,
cache_write.active_support;dur=0.33, instantiation.active_record;dur=0.11,
start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
render.active_model_serializers;dur=15.29, process_action.action_controller;dur=34.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:05:00.136322Z'
X-Request-Id:
- f57b5885-4cb9-4c19-bcfb-a4cf60ade009
X-Runtime:
- '0.054061'
X-XSS-Protection:
- '0'
vary:
- Accept, Origin
status:
code: 200
message: OK
- request:
body: null
headers:
@ -148,7 +270,7 @@ interactions:
User-Agent:
- tests/v311
method: POST
uri: http://localhost:3000/api/v1/notifications/27/dismiss
uri: http://localhost:3000/api/v1/notifications/17/dismiss
response:
body:
string: '{}'
@ -166,10 +288,10 @@ interactions:
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.90,
cache_write.active_support;dur=0.07, instantiation.active_record;dur=0.32,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=6.77,
render.active_model_serializers;dur=0.03, process_action.action_controller;dur=29.80
- cache_read.active_support;dur=0.01, sql.active_record;dur=5.39, cache_generate.active_support;dur=0.69,
cache_write.active_support;dur=0.05, instantiation.active_record;dur=0.38,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=5.50,
render.active_model_serializers;dur=0.03, process_action.action_controller;dur=28.58
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -181,11 +303,11 @@ interactions:
X-RateLimit-Remaining:
- '299'
X-RateLimit-Reset:
- '2025-08-15T17:35:00.083685Z'
- '2025-08-16T19:05:00.207875Z'
X-Request-Id:
- 4eb69285-57fe-4287-94af-5367168b01aa
- cd6fc809-a4f8-4021-b269-c8e401716bca
X-Runtime:
- '0.048744'
- '0.047692'
X-XSS-Protection:
- '0'
vary:
@ -209,12 +331,12 @@ interactions:
User-Agent:
- tests/v311
method: DELETE
uri: http://localhost:3000/api/v1/statuses/115033980197695400
uri: http://localhost:3000/api/v1/statuses/115039998563893538
response:
body:
string: '{"id":"115033980197695400","created_at":"2025-08-15T17:33:58.858Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/115033980197695400","url":"http://localhost:3000/@admin/115033980197695400","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"@mastodonpy_test
string: '{"id":"115039998563893538","created_at":"2025-08-16T19:04:31.837Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/115039998563893538","url":"http://localhost:3000/@admin/115039998563893538","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"@mastodonpy_test
hello!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py test
suite","website":null},"account":{"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":"2025-08-15","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"115033965771926537","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'
suite","website":null},"account":{"id":"115038701349222037","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-16T00: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-16","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"115038701667226306","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'
headers:
Cache-Control:
- private, no-store
@ -225,14 +347,14 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"974772e1dad355a7794c7e422345d04a"
- W/"56059a8d989c48debdd970dcc1d1cc39"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.05, sql.active_record;dur=6.82, cache_generate.active_support;dur=2.70,
cache_write.active_support;dur=0.13, instantiation.active_record;dur=0.68,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=4.08,
render.active_model_serializers;dur=12.39, process_action.action_controller;dur=43.85
- cache_read.active_support;dur=0.05, sql.active_record;dur=6.91, cache_generate.active_support;dur=3.00,
cache_write.active_support;dur=0.22, instantiation.active_record;dur=0.65,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=4.28,
render.active_model_serializers;dur=13.38, process_action.action_controller;dur=43.93
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -244,11 +366,11 @@ interactions:
X-RateLimit-Remaining:
- '29'
X-RateLimit-Reset:
- '2025-08-15T18:00:00.142751Z'
- '2025-08-16T19:30:00.259811Z'
X-Request-Id:
- 3d8f86c3-1271-4fdf-bb5c-3ab8a768adc8
- 251694b5-94c1-4ad4-a8eb-7705eab69895
X-Runtime:
- '0.062827'
- '0.063390'
X-XSS-Protection:
- '0'
vary:

Wyświetl plik

@ -20,11 +20,11 @@ interactions:
uri: http://localhost:3000/api/v1/statuses
response:
body:
string: '{"id":"115033979294508669","created_at":"2025-08-15T17:33:45.075Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/115033979294508669","url":"http://localhost:3000/@admin/115033979294508669","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\u003cspan
string: '{"id":"115039997698609676","created_at":"2025-08-16T19:04:18.635Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/115039997698609676","url":"http://localhost:3000/@admin/115039997698609676","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\u003cspan
class=\"h-card\" translate=\"no\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\"
class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e
hello!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
test suite","website":null},"account":{"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":1,"last_status_at":"2025-08-15","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"115033965771926537","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'
test suite","website":null},"account":{"id":"115038701349222037","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-16T00: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":1,"last_status_at":"2025-08-16","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"115038701667226306","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'
headers:
Cache-Control:
- private, no-store
@ -35,14 +35,14 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"df843a0cab636dbc6b9874a0b5ecbe79"
- W/"2bbb83e46d6034cc8e597fa6129beb52"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.05, sql.active_record;dur=14.03, cache_generate.active_support;dur=2.66,
cache_write.active_support;dur=0.12, instantiation.active_record;dur=0.62,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=9.88,
render.active_model_serializers;dur=13.26, process_action.action_controller;dur=58.88
- cache_read.active_support;dur=0.04, sql.active_record;dur=15.27, cache_generate.active_support;dur=2.84,
cache_write.active_support;dur=0.11, instantiation.active_record;dur=0.57,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=11.46,
render.active_model_serializers;dur=10.82, process_action.action_controller;dur=58.48
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -52,13 +52,13 @@ interactions:
X-RateLimit-Limit:
- '300'
X-RateLimit-Remaining:
- '296'
- '298'
X-RateLimit-Reset:
- '2025-08-15T18:00:00.106445Z'
- '2025-08-16T21:00:00.664191Z'
X-Request-Id:
- 3d2b6be2-3bb6-4b34-9435-a3e524bfe21b
- 0e43c73c-6d57-48f8-8f3e-b233f2ea72c0
X-Runtime:
- '0.078314'
- '0.080991'
X-XSS-Protection:
- '0'
vary:
@ -66,6 +66,128 @@ interactions:
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:04:21 GMT
ETag:
- W/"8f0217cc0f9164d31367ec26181fae62"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.13, sql.active_record;dur=1.91, cache_generate.active_support;dur=18.01,
cache_write.active_support;dur=0.54, instantiation.active_record;dur=0.16,
start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
render.active_model_serializers;dur=20.97, process_action.action_controller;dur=51.96
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:05:00.808401Z'
X-Request-Id:
- 9d3b849d-3f44-4cf2-ac0e-6d9957aeba33
X-Runtime:
- '0.133599'
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:04:21 GMT
ETag:
- W/"2f4f131317c14c268bad00aa2f75ca41"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.13, sql.active_record;dur=1.07, cache_generate.active_support;dur=5.08,
cache_write.active_support;dur=0.32, 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=18.31, process_action.action_controller;dur=38.34
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:05:00.884949Z'
X-Request-Id:
- 600746f4-64f8-4592-aab5-564433fbe98c
X-Runtime:
- '0.059249'
X-XSS-Protection:
- '0'
vary:
- Accept, Origin
status:
code: 200
message: OK
- request:
body: null
headers:
@ -83,11 +205,11 @@ interactions:
uri: http://localhost:3000/api/v1/notifications?types%5B%5D=mention
response:
body:
string: '[{"id":"23","type":"mention","created_at":"2025-08-15T17:33:45.401Z","group_key":"ungrouped-23","account":{"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":1,"last_status_at":"2025-08-15","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"status":{"id":"115033979294508669","created_at":"2025-08-15T17:33:45.075Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/115033979294508669","url":"http://localhost:3000/@admin/115033979294508669","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan
string: '[{"id":"16","type":"mention","created_at":"2025-08-16T19:04:18.967Z","group_key":"ungrouped-16","account":{"id":"115038701349222037","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-16T00: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":1,"last_status_at":"2025-08-16","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"status":{"id":"115039997698609676","created_at":"2025-08-16T19:04:18.635Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/115039997698609676","url":"http://localhost:3000/@admin/115039997698609676","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan
class=\"h-card\" translate=\"no\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\"
class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e
hello!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
test suite","website":null},"account":{"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":1,"last_status_at":"2025-08-15","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"115033965771926537","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}}]'
test suite","website":null},"account":{"id":"115038701349222037","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-16T00: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":1,"last_status_at":"2025-08-16","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"115038701667226306","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}}]'
headers:
Cache-Control:
- private, no-store
@ -98,18 +220,18 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"01dbd81c1c37d4456b74db9c49444eb1"
- W/"51aea6fa827e398dc8e4acf902347637"
Link:
- <http://localhost:3000/api/v1/notifications?max_id=23&types%5B%5D=mention>;
rel="next", <http://localhost:3000/api/v1/notifications?min_id=23&types%5B%5D=mention>;
- <http://localhost:3000/api/v1/notifications?max_id=16&types%5B%5D=mention>;
rel="next", <http://localhost:3000/api/v1/notifications?min_id=16&types%5B%5D=mention>;
rel="prev"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.08, sql.active_record;dur=2.75, cache_generate.active_support;dur=2.69,
cache_write.active_support;dur=0.12, instantiation.active_record;dur=0.71,
- cache_read.active_support;dur=0.13, sql.active_record;dur=3.15, cache_generate.active_support;dur=2.60,
cache_write.active_support;dur=0.11, instantiation.active_record;dur=0.83,
start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
render.active_model_serializers;dur=4.51, process_action.action_controller;dur=43.00
render.active_model_serializers;dur=7.32, process_action.action_controller;dur=46.63
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -121,11 +243,11 @@ interactions:
X-RateLimit-Remaining:
- '299'
X-RateLimit-Reset:
- '2025-08-15T17:35:00.183430Z'
- '2025-08-16T19:05:00.961561Z'
X-Request-Id:
- c0e33054-0c67-40c4-a5c7-b14bb27c082e
- 10122262-89d3-4b5b-89a5-3025de683cbe
X-Runtime:
- '0.062844'
- '0.067358'
X-XSS-Protection:
- '0'
vary:
@ -147,14 +269,14 @@ interactions:
User-Agent:
- tests/v311
method: GET
uri: http://localhost:3000/api/v1/notifications/23
uri: http://localhost:3000/api/v1/notifications/16
response:
body:
string: '{"id":"23","type":"mention","created_at":"2025-08-15T17:33:45.401Z","group_key":"ungrouped-23","account":{"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":1,"last_status_at":"2025-08-15","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"status":{"id":"115033979294508669","created_at":"2025-08-15T17:33:45.075Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/115033979294508669","url":"http://localhost:3000/@admin/115033979294508669","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan
string: '{"id":"16","type":"mention","created_at":"2025-08-16T19:04:18.967Z","group_key":"ungrouped-16","account":{"id":"115038701349222037","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-16T00: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":1,"last_status_at":"2025-08-16","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"status":{"id":"115039997698609676","created_at":"2025-08-16T19:04:18.635Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/115039997698609676","url":"http://localhost:3000/@admin/115039997698609676","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan
class=\"h-card\" translate=\"no\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\"
class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e
hello!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
test suite","website":null},"account":{"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":1,"last_status_at":"2025-08-15","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"115033965771926537","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}}'
test suite","website":null},"account":{"id":"115038701349222037","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-16T00: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":1,"last_status_at":"2025-08-16","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"115038701667226306","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}}'
headers:
Cache-Control:
- private, no-store
@ -165,14 +287,14 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"15a29f299a38381f8e2d0142efde7aa8"
- W/"328ce8b350b9bd5e86d33b84964abe09"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.08, sql.active_record;dur=2.78, cache_generate.active_support;dur=3.11,
cache_write.active_support;dur=0.12, instantiation.active_record;dur=0.87,
- cache_read.active_support;dur=0.08, sql.active_record;dur=2.97, cache_generate.active_support;dur=2.90,
cache_write.active_support;dur=0.11, instantiation.active_record;dur=0.99,
start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
render.active_model_serializers;dur=18.26, process_action.action_controller;dur=41.60
render.active_model_serializers;dur=18.41, process_action.action_controller;dur=42.24
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -184,11 +306,11 @@ interactions:
X-RateLimit-Remaining:
- '299'
X-RateLimit-Reset:
- '2025-08-15T17:35:00.297572Z'
- '2025-08-16T19:05:00.079265Z'
X-Request-Id:
- 66d79b1b-2564-4cc1-a934-e113165f3801
- a2d2d2e3-9fc0-4a54-8da9-fdb95afc186d
X-Runtime:
- '0.061022'
- '0.061886'
X-XSS-Protection:
- '0'
vary:
@ -212,12 +334,12 @@ interactions:
User-Agent:
- tests/v311
method: DELETE
uri: http://localhost:3000/api/v1/statuses/115033979294508669
uri: http://localhost:3000/api/v1/statuses/115039997698609676
response:
body:
string: '{"id":"115033979294508669","created_at":"2025-08-15T17:33:45.075Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/115033979294508669","url":"http://localhost:3000/@admin/115033979294508669","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"@mastodonpy_test
string: '{"id":"115039997698609676","created_at":"2025-08-16T19:04:18.635Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/115039997698609676","url":"http://localhost:3000/@admin/115039997698609676","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"@mastodonpy_test
hello!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py test
suite","website":null},"account":{"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":"2025-08-15","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"115033965771926537","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'
suite","website":null},"account":{"id":"115038701349222037","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-16T00: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-16","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"115038701667226306","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'
headers:
Cache-Control:
- private, no-store
@ -228,14 +350,14 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"398f3e4c0e192a7c495345da6aa7cb20"
- W/"475bb68fcd2a324ebd685bb31cc80daa"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.05, sql.active_record;dur=7.18, cache_generate.active_support;dur=2.68,
cache_write.active_support;dur=0.13, instantiation.active_record;dur=0.75,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=4.62,
render.active_model_serializers;dur=12.83, process_action.action_controller;dur=44.07
- cache_read.active_support;dur=0.05, sql.active_record;dur=8.03, cache_generate.active_support;dur=2.60,
cache_write.active_support;dur=0.15, instantiation.active_record;dur=0.70,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=4.86,
render.active_model_serializers;dur=13.63, process_action.action_controller;dur=46.33
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -247,11 +369,11 @@ interactions:
X-RateLimit-Remaining:
- '29'
X-RateLimit-Reset:
- '2025-08-15T18:00:00.367106Z'
- '2025-08-16T19:30:00.195353Z'
X-Request-Id:
- da535bda-5135-4f5f-b53e-45ec2c510572
- 7adea702-5398-40af-9193-a8afaa15ed5a
X-Runtime:
- '0.063657'
- '0.066194'
X-XSS-Protection:
- '0'
vary:

Wyświetl plik

@ -1,4 +1,126 @@
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/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":100,"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:17 GMT
ETag:
- W/"cc91a3c4f150917976d05afebc63268b"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.40, sql.active_record;dur=2.04, cache_generate.active_support;dur=12.51,
cache_write.active_support;dur=0.65, instantiation.active_record;dur=0.58,
start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
render.active_model_serializers;dur=17.10, process_action.action_controller;dur=40.24
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.784460Z'
X-Request-Id:
- 64e043d5-883b-428e-ac18-71e048120ab1
X-Runtime:
- '0.073087'
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:17 GMT
ETag:
- W/"2f4f131317c14c268bad00aa2f75ca41"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.27, sql.active_record;dur=1.44, cache_generate.active_support;dur=9.07,
cache_write.active_support;dur=0.51, instantiation.active_record;dur=0.46,
start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
render.active_model_serializers;dur=40.84, process_action.action_controller;dur=62.45
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.868935Z'
X-Request-Id:
- c3781def-246a-427b-b9dc-54750c04a78b
X-Runtime:
- '0.095314'
X-XSS-Protection:
- '0'
vary:
- Accept, Origin
status:
code: 200
message: OK
- request:
body: null
headers:
@ -16,28 +138,26 @@ interactions:
uri: http://localhost:3000/api/v2/search?q=mastodonpy_test&resolve=1&exclude_unreviewed=1
response:
body:
string: '{"accounts":[{"id":"115033965771926537","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
Lennon","locked":true,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-15T00: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/033/965/771/926/537/original/18c45c7a401c8a35.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/115/033/965/771/926/537/original/18c45c7a401c8a35.jpg","header":"http://localhost:3000/system/accounts/headers/115/033/965/771/926/537/original/52028bd44df7a0ef.jpg","header_static":"http://localhost:3000/system/accounts/headers/115/033/965/771/926/537/original/52028bd44df7a0ef.jpg","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2025-08-15","hide_collections":null,"noindex":false,"emojis":[],"roles":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},{"id":"115033965921234147","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"indexable":true,"group":false,"created_at":"2025-08-15T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test_2","uri":"http://localhost:3000/users/mastodonpy_test_2","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":31,"last_status_at":"2025-08-15","hide_collections":null,"noindex":false,"emojis":[],"roles":[],"fields":[]}],"statuses":[],"hashtags":[]}'
string: '{"accounts":[{"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":[]},{"id":"115038701837652014","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"indexable":true,"group":false,"created_at":"2025-08-16T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test_2","uri":"http://localhost:3000/users/mastodonpy_test_2","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":90,"last_status_at":"2025-08-16","hide_collections":null,"noindex":false,"emojis":[],"roles":[],"fields":[]}],"statuses":[],"hashtags":[]}'
headers:
Cache-Control:
- private, no-store
Content-Length:
- '1910'
- '1558'
Content-Security-Policy:
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"929e763343da76bfb24562264e3d12c2"
- W/"e66a0162e2641058a712c56209e1a72b"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.08, sql.active_record;dur=3.42, cache_generate.active_support;dur=1.53,
cache_write.active_support;dur=0.11, instantiation.active_record;dur=0.82,
start_processing.action_controller;dur=0.00, unpermitted_parameters.action_controller;dur=0.01,
cache_fetch_hit.active_support;dur=0.00, render.active_model_serializers;dur=7.12,
process_action.action_controller;dur=51.77
- cache_read.active_support;dur=0.11, sql.active_record;dur=5.59, cache_generate.active_support;dur=1.53,
cache_write.active_support;dur=0.11, instantiation.active_record;dur=0.66,
start_processing.action_controller;dur=0.01, unpermitted_parameters.action_controller;dur=0.00,
cache_fetch_hit.active_support;dur=0.00, render.active_model_serializers;dur=5.44,
process_action.action_controller;dur=43.12
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -49,11 +169,11 @@ interactions:
X-RateLimit-Remaining:
- '299'
X-RateLimit-Reset:
- '2025-08-15T17:35:00.136176Z'
- '2025-08-16T19:10:00.997073Z'
X-Request-Id:
- 95f3c81e-a151-4e4c-9170-1b1813407063
- 8c3736c8-3478-4660-a338-818ba5c8dbef
X-Runtime:
- '0.074586'
- '0.090109'
X-XSS-Protection:
- '0'
vary:
@ -78,28 +198,26 @@ interactions:
uri: http://localhost:3000/api/v2/search?q=mastodonpy_test&resolve=1&exclude_unreviewed=1
response:
body:
string: '{"accounts":[{"id":"115033965771926537","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
Lennon","locked":true,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-15T00: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/033/965/771/926/537/original/18c45c7a401c8a35.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/115/033/965/771/926/537/original/18c45c7a401c8a35.jpg","header":"http://localhost:3000/system/accounts/headers/115/033/965/771/926/537/original/52028bd44df7a0ef.jpg","header_static":"http://localhost:3000/system/accounts/headers/115/033/965/771/926/537/original/52028bd44df7a0ef.jpg","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2025-08-15","hide_collections":null,"noindex":false,"emojis":[],"roles":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},{"id":"115033965921234147","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"indexable":true,"group":false,"created_at":"2025-08-15T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test_2","uri":"http://localhost:3000/users/mastodonpy_test_2","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":31,"last_status_at":"2025-08-15","hide_collections":null,"noindex":false,"emojis":[],"roles":[],"fields":[]}],"statuses":[],"hashtags":[]}'
string: '{"accounts":[{"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":[]},{"id":"115038701837652014","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"indexable":true,"group":false,"created_at":"2025-08-16T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test_2","uri":"http://localhost:3000/users/mastodonpy_test_2","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":90,"last_status_at":"2025-08-16","hide_collections":null,"noindex":false,"emojis":[],"roles":[],"fields":[]}],"statuses":[],"hashtags":[]}'
headers:
Cache-Control:
- private, no-store
Content-Length:
- '1910'
- '1558'
Content-Security-Policy:
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"929e763343da76bfb24562264e3d12c2"
- W/"e66a0162e2641058a712c56209e1a72b"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.08, sql.active_record;dur=2.93, cache_generate.active_support;dur=1.61,
cache_write.active_support;dur=0.10, instantiation.active_record;dur=0.59,
- cache_read.active_support;dur=0.12, sql.active_record;dur=3.50, cache_generate.active_support;dur=1.86,
cache_write.active_support;dur=0.12, instantiation.active_record;dur=1.01,
start_processing.action_controller;dur=0.01, unpermitted_parameters.action_controller;dur=0.00,
cache_fetch_hit.active_support;dur=0.00, render.active_model_serializers;dur=5.95,
process_action.action_controller;dur=34.34
cache_fetch_hit.active_support;dur=0.00, render.active_model_serializers;dur=6.10,
process_action.action_controller;dur=41.47
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -111,11 +229,11 @@ interactions:
X-RateLimit-Remaining:
- '299'
X-RateLimit-Reset:
- '2025-08-15T17:35:00.265942Z'
- '2025-08-16T19:10:00.119695Z'
X-Request-Id:
- 3762779b-e1dc-4b75-9036-ba40e558d3bf
- ace05a32-17f9-491c-89da-72ddb90259a0
X-Runtime:
- '0.075038'
- '0.084667'
X-XSS-Protection:
- '0'
vary:
@ -155,10 +273,10 @@ interactions:
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.02, sql.active_record;dur=0.51, cache_generate.active_support;dur=0.95,
cache_write.active_support;dur=0.08, instantiation.active_record;dur=0.24,
- cache_read.active_support;dur=0.02, sql.active_record;dur=0.57, cache_generate.active_support;dur=0.94,
cache_write.active_support;dur=0.07, instantiation.active_record;dur=0.20,
start_processing.action_controller;dur=0.00, unpermitted_parameters.action_controller;dur=0.00,
render.active_model_serializers;dur=0.23, process_action.action_controller;dur=21.84
render.active_model_serializers;dur=0.23, process_action.action_controller;dur=21.85
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -170,11 +288,11 @@ interactions:
X-RateLimit-Remaining:
- '299'
X-RateLimit-Reset:
- '2025-08-15T17:35:00.362146Z'
- '2025-08-16T19:10:00.233464Z'
X-Request-Id:
- 43756d8b-dd27-498c-a08b-f1d22319af89
- 3e51c5d3-5475-4f34-83a7-cb730fb4f5a7
X-Runtime:
- '0.041611'
- '0.053334'
X-XSS-Protection:
- '0'
vary:

Wyświetl plik

@ -5,7 +5,7 @@ interactions:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
@ -20,31 +20,29 @@ interactions:
uri: http://localhost:3000/api/v1/statuses
response:
body:
string: '{"id":"113998811253384590","created_at":"2025-02-13T21:56:54.291Z","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/113998811253384590","url":"http://localhost:3000/@mastodonpy_test/113998811253384590","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
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":"113998801242326861","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
Lennon","locked":true,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-02-13T00: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/113/998/801/242/326/861/original/369fe73b2cc12cbe.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/113/998/801/242/326/861/original/369fe73b2cc12cbe.jpg","header":"http://localhost:3000/system/accounts/headers/113/998/801/242/326/861/original/c49892714f54f7f9.jpg","header_static":"http://localhost:3000/system/accounts/headers/113/998/801/242/326/861/original/c49892714f54f7f9.jpg","followers_count":0,"following_count":0,"statuses_count":4,"last_status_at":"2025-02-13","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":[],"card":null,"poll":null}'
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:
- '2126'
- '1774'
Content-Security-Policy:
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"3abc5c9e47edc442f45e6c509d773621"
- W/"3450783c44d5c26f9938a4aa42634c8d"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.06, sql.active_record;dur=9.72, cache_generate.active_support;dur=3.04,
cache_write.active_support;dur=0.15, instantiation.active_record;dur=0.51,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=8.48,
render.active_model_serializers;dur=11.81, process_action.action_controller;dur=50.81
- 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:
@ -54,13 +52,13 @@ interactions:
X-RateLimit-Limit:
- '300'
X-RateLimit-Remaining:
- '263'
- '296'
X-RateLimit-Reset:
- '2025-02-14T00:00:00.319393Z'
- '2025-08-16T21:00:00.692622Z'
X-Request-Id:
- e1061762-1109-4076-9fa9-e6b23d5b31cd
- 3b685537-71e3-4ba5-b308-4c3a75256a81
X-Runtime:
- '0.066677'
- '0.077544'
X-XSS-Protection:
- '0'
vary:
@ -74,7 +72,7 @@ interactions:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
@ -82,35 +80,30 @@ interactions:
User-Agent:
- tests/v311
method: GET
uri: http://localhost:3000/api/v1/statuses/113998811253384590
uri: http://localhost:3000/api/v1/instance/
response:
body:
string: '{"id":"113998811253384590","created_at":"2025-02-13T21:56:54.291Z","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/113998811253384590","url":"http://localhost:3000/@mastodonpy_test/113998811253384590","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":"113998801242326861","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
Lennon","locked":true,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-02-13T00: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/113/998/801/242/326/861/original/369fe73b2cc12cbe.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/113/998/801/242/326/861/original/369fe73b2cc12cbe.jpg","header":"http://localhost:3000/system/accounts/headers/113/998/801/242/326/861/original/c49892714f54f7f9.jpg","header_static":"http://localhost:3000/system/accounts/headers/113/998/801/242/326/861/original/c49892714f54f7f9.jpg","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2025-02-13","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":[],"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}'
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:
- private, no-store
- max-age=300, public, stale-while-revalidate=30, stale-if-error=86400
Content-Length:
- '2459'
- '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/"35c228d582ec3d6f854a996217e701c3"
- W/"8f0217cc0f9164d31367ec26181fae62"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.07, sql.active_record;dur=4.60, cache_generate.active_support;dur=4.96,
cache_write.active_support;dur=0.22, instantiation.active_record;dur=10.92,
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=12.09,
process_action.action_controller;dur=54.86
- 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:
@ -122,11 +115,136 @@ interactions:
X-RateLimit-Remaining:
- '299'
X-RateLimit-Reset:
- '2025-02-13T22:00:00.411253Z'
- '2025-08-16T19:10:00.787436Z'
X-Request-Id:
- 21536627-ba0a-4a38-aa8c-6d28ccbc860e
- 4b14f2ed-8577-4b81-b3c8-878c41731cde
X-Runtime:
- '0.074639'
- '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:
@ -140,7 +258,7 @@ interactions:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
@ -150,32 +268,30 @@ interactions:
User-Agent:
- tests/v311
method: DELETE
uri: http://localhost:3000/api/v1/statuses/113998811253384590
uri: http://localhost:3000/api/v1/statuses/115040001632721061
response:
body:
string: '{"id":"113998811253384590","created_at":"2025-02-13T21:56:54.291Z","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/113998811253384590","url":"http://localhost:3000/@mastodonpy_test/113998811253384590","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":"113998801242326861","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
Lennon","locked":true,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-02-13T00: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/113/998/801/242/326/861/original/369fe73b2cc12cbe.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/113/998/801/242/326/861/original/369fe73b2cc12cbe.jpg","header":"http://localhost:3000/system/accounts/headers/113/998/801/242/326/861/original/c49892714f54f7f9.jpg","header_static":"http://localhost:3000/system/accounts/headers/113/998/801/242/326/861/original/c49892714f54f7f9.jpg","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2025-02-13","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":[],"card":{"url":"http://example.org/","title":"Example
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:
- '2151'
- '1799'
Content-Security-Policy:
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"8a37318c358c516b6c75178021374afe"
- W/"4f82467c5cedd22dde9bd90be152deb5"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.07, sql.active_record;dur=8.73, cache_generate.active_support;dur=3.75,
cache_write.active_support;dur=0.18, instantiation.active_record;dur=1.22,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=3.90,
render.active_model_serializers;dur=30.48, process_action.action_controller;dur=62.74
- 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:
@ -187,11 +303,11 @@ interactions:
X-RateLimit-Remaining:
- '29'
X-RateLimit-Reset:
- '2025-02-13T22:00:00.516205Z'
- '2025-08-16T19:30:00.168152Z'
X-Request-Id:
- a05916cb-52ee-486e-87cd-36fa2096c876
- 7026d9c8-dd7f-448d-8d27-94265b8d0a7b
X-Runtime:
- '0.077900'
- '0.084481'
X-XSS-Protection:
- '0'
vary:

File diff suppressed because one or more lines are too long

Wyświetl plik

@ -1,4 +1,126 @@
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/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":100,"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:07:34 GMT
ETag:
- W/"cc91a3c4f150917976d05afebc63268b"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.33, sql.active_record;dur=2.15, cache_generate.active_support;dur=13.03,
cache_write.active_support;dur=0.72, instantiation.active_record;dur=0.43,
start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
render.active_model_serializers;dur=19.47, process_action.action_controller;dur=46.68
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.723283Z'
X-Request-Id:
- 1215d238-1b0b-4405-bff9-f2e2059e1244
X-Runtime:
- '0.078711'
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:07:34 GMT
ETag:
- W/"2f4f131317c14c268bad00aa2f75ca41"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.29, sql.active_record;dur=1.42, cache_generate.active_support;dur=8.81,
cache_write.active_support;dur=0.48, instantiation.active_record;dur=0.44,
start_processing.action_controller;dur=0.00, cache_fetch_hit.active_support;dur=0.00,
render.active_model_serializers;dur=39.19, process_action.action_controller;dur=60.60
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.808699Z'
X-Request-Id:
- 6cdd2759-0d40-4cc0-8e74-f98d0609dea6
X-Runtime:
- '0.092201'
X-XSS-Protection:
- '0'
vary:
- Accept, Origin
status:
code: 200
message: OK
- request:
body: null
headers:
@ -31,10 +153,10 @@ interactions:
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.03, sql.active_record;dur=0.58, cache_generate.active_support;dur=1.45,
cache_write.active_support;dur=0.08, instantiation.active_record;dur=0.17,
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=0.04,
process_action.action_controller;dur=21.57
- cache_read.active_support;dur=0.04, sql.active_record;dur=1.53, cache_generate.active_support;dur=1.70,
cache_write.active_support;dur=0.10, instantiation.active_record;dur=0.37,
start_processing.action_controller;dur=0.02, render.active_model_serializers;dur=0.05,
process_action.action_controller;dur=32.30
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -46,11 +168,11 @@ interactions:
X-RateLimit-Remaining:
- '299'
X-RateLimit-Reset:
- '2025-08-15T17:40:00.781541Z'
- '2025-08-16T19:10:00.928940Z'
X-Request-Id:
- 163ff9eb-2816-415f-8597-d1714e98aad0
- c4131903-4509-41db-a397-df82bf06cc70
X-Runtime:
- '0.042260'
- '0.072767'
X-XSS-Protection:
- '0'
vary:
@ -90,10 +212,10 @@ interactions:
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
- cache_read.active_support;dur=0.03, sql.active_record;dur=0.67, cache_generate.active_support;dur=1.60,
cache_write.active_support;dur=0.09, instantiation.active_record;dur=0.20,
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=0.04,
process_action.action_controller;dur=22.52
- cache_read.active_support;dur=0.04, sql.active_record;dur=1.29, cache_generate.active_support;dur=1.81,
cache_write.active_support;dur=0.10, instantiation.active_record;dur=0.51,
start_processing.action_controller;dur=0.01, render.active_model_serializers;dur=0.04,
process_action.action_controller;dur=30.02
X-Content-Type-Options:
- nosniff
X-Frame-Options:
@ -105,11 +227,11 @@ interactions:
X-RateLimit-Remaining:
- '299'
X-RateLimit-Reset:
- '2025-08-15T17:40:00.827941Z'
- '2025-08-16T19:10:00.025954Z'
X-Request-Id:
- add9b086-d2ea-4d8b-82c0-3f79022c3366
- bcc34ee2-4e83-4fb4-b725-22013489003b
X-Runtime:
- '0.042634'
- '0.087021'
X-XSS-Protection:
- '0'
vary:

Wyświetl plik

@ -5,6 +5,8 @@ import pathlib
@pytest.mark.vcr(match_on=['path'])
def test_media_post_v1(api):
api._Mastodon__version_check_worked = True
api._Mastodon__version_check_tried = True
with vcr.use_cassette('test_media_post.yaml', cassette_library_dir='tests/cassettes_pre_4_0_0', record_mode='none'):
media = api.media_post(
'tests/image.jpg',