From 7d097a9606a36b9830adc58e86f62bb4b5f3bd3d Mon Sep 17 00:00:00 2001 From: halcy Date: Sun, 11 Feb 2024 16:24:06 +0200 Subject: [PATCH] add some more eeping and redo casettes. maybe that will resolve ordering problems? --- tests/cassettes/test_stream_direct.yaml | 28 ++-- tests/cassettes/test_stream_healthy.yaml | 10 +- tests/cassettes/test_stream_user_direct.yaml | 156 +++++++++---------- tests/cassettes/test_stream_user_local.yaml | 44 +++--- tests/test_streaming.py | 1 + 5 files changed, 120 insertions(+), 119 deletions(-) diff --git a/tests/cassettes/test_stream_direct.yaml b/tests/cassettes/test_stream_direct.yaml index c16ad26..96e5198 100644 --- a/tests/cassettes/test_stream_direct.yaml +++ b/tests/cassettes/test_stream_direct.yaml @@ -25,7 +25,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 11 Feb 2024 13:08:21 GMT + - Sun, 11 Feb 2024 14:23:00 GMT ETag: - W/"8ff550f009b0b2277f612709ef8b85e8" Referrer-Policy: @@ -43,9 +43,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - bf7eb2a2-5abd-41c8-b513-11cb3a4b5a33 + - 969fc05a-3666-4670-b4c6-5fdf224b3c14 X-Runtime: - - '0.016588' + - '0.018028' X-XSS-Protection: - 1; mode=block status: @@ -72,11 +72,11 @@ interactions: uri: http://localhost:3000/api/v1/statuses response: body: - string: '{"id":"111913003054171488","created_at":"2024-02-11T13:08:26.956Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"direct","language":"en","uri":"http://localhost:3000/users/admin/statuses/111913003054171488","url":"http://localhost:3000/@admin/111913003054171488","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":"111913296580792248","created_at":"2024-02-11T14:23:05.817Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"direct","language":"en","uri":"http://localhost:3000/users/admin/statuses/111913296580792248","url":"http://localhost:3000/@admin/111913296580792248","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\"\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 todo funny text here\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"111912993249299808","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":2,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"111912993515458147","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}' + test suite","website":null},"account":{"id":"111913290281145421","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":2,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"111913290558315733","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}' headers: Cache-Control: - private, no-store @@ -85,7 +85,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"15c2e2e4c9196b4ffb61c199ed77a60e" + - W/"7b8bdea4e04400833c441ccd03e82ca0" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -103,13 +103,13 @@ interactions: X-RateLimit-Limit: - '300' X-RateLimit-Remaining: - - '296' + - '297' X-RateLimit-Reset: - - '2024-02-11T15:00:00.995696Z' + - '2024-02-11T15:00:00.850615Z' X-Request-Id: - - 19c341d1-ad7b-4b3d-b4c0-ecadb6b4b641 + - 98968ffc-4425-42e5-b1d4-a2f78c1ba77d X-Runtime: - - '0.057019' + - '0.049373' X-XSS-Protection: - 1; mode=block status: @@ -136,10 +136,10 @@ interactions: event: conversation - data: {"id":"6","unread":true,"accounts":[{"id":"111912993249299808","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":2,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]}],"last_status":{"id":"111913003054171488","created_at":"2024-02-11T13:08:26.956Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"direct","language":"en","uri":"http://localhost:3000/users/admin/statuses/111913003054171488","url":"http://localhost:3000/@admin/111913003054171488","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"

@mastodonpy_test todo funny text here

","filtered":[],"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"111912993249299808","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":2,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"111912993515458147","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}} + test suite","website":null},"account":{"id":"111913290281145421","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":2,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"111913290558315733","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}} :' @@ -157,7 +157,7 @@ interactions: Content-Type: - text/event-stream Date: - - Sun, 11 Feb 2024 13:08:21 GMT + - Sun, 11 Feb 2024 14:23:00 GMT Keep-Alive: - timeout=5 Transfer-Encoding: @@ -165,7 +165,7 @@ interactions: X-Powered-By: - Express X-Request-Id: - - 5852fc5c-aced-4820-837e-0dab0e96d6eb + - efb67569-dc8c-4fba-ba9c-6df74c9227c9 status: code: 200 message: OK diff --git a/tests/cassettes/test_stream_healthy.yaml b/tests/cassettes/test_stream_healthy.yaml index 2f5addf..26341fa 100644 --- a/tests/cassettes/test_stream_healthy.yaml +++ b/tests/cassettes/test_stream_healthy.yaml @@ -23,7 +23,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 11 Feb 2024 13:07:52 GMT + - Sun, 11 Feb 2024 14:23:20 GMT ETag: - W/"8ff550f009b0b2277f612709ef8b85e8" Referrer-Policy: @@ -41,9 +41,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 3b2ca06e-09f1-4ab3-b82f-70d2cccbeb7a + - 4cef7970-c1d4-460b-818a-7fdf30c23a9d X-Runtime: - - '0.020758' + - '0.058158' X-XSS-Protection: - 1; mode=block status: @@ -77,7 +77,7 @@ interactions: Content-Type: - text/plain Date: - - Sun, 11 Feb 2024 13:07:52 GMT + - Sun, 11 Feb 2024 14:23:20 GMT Keep-Alive: - timeout=5 Transfer-Encoding: @@ -85,7 +85,7 @@ interactions: X-Powered-By: - Express X-Request-Id: - - 9137710d-3c3e-4158-9ffe-322bfd1c5b92 + - 442bfb62-60e7-4866-bd1b-e253f1678671 status: code: 200 message: OK diff --git a/tests/cassettes/test_stream_user_direct.yaml b/tests/cassettes/test_stream_user_direct.yaml index 5c1c659..8351eb0 100644 --- a/tests/cassettes/test_stream_user_direct.yaml +++ b/tests/cassettes/test_stream_user_direct.yaml @@ -16,7 +16,7 @@ interactions: uri: http://localhost:3000/api/v1/accounts/verify_credentials response: body: - string: '{"id":"111913031861044315","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}' + string: '{"id":"111913290281145421","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}' headers: Cache-Control: - private, no-store @@ -25,7 +25,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"6ab5053d4848e9dae388353f64cd0eb7" + - W/"8fa140c31e78fbb711985fc1d045b4e8" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -41,9 +41,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - d77cfbd4-b52f-4e38-bb72-bac1ddc44324 + - 880b1afe-7f5f-4d52-a219-f7d3239a60cd X-Runtime: - - '0.242633' + - '0.289337' X-XSS-Protection: - 1; mode=block status: @@ -65,10 +65,10 @@ interactions: User-Agent: - tests/v311 method: POST - uri: http://localhost:3000/api/v1/accounts/111913031861044315/unfollow + uri: http://localhost:3000/api/v1/accounts/111913290281145421/unfollow response: body: - string: '{"id":"111913031861044315","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"requested_by":false,"domain_blocking":false,"endorsed":false,"note":""}' + string: '{"id":"111913290281145421","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"requested_by":false,"domain_blocking":false,"endorsed":false,"note":""}' headers: Cache-Control: - private, no-store @@ -77,7 +77,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"b290acfd6c5ee2060ab624124488cca2" + - W/"728d53235d391b81628e5d08f84bf3db" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -93,9 +93,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - e25c7afb-74f8-4258-9509-9b3c4675c4dc + - 2f6c9180-1083-4176-b234-080232d8fc92 X-Runtime: - - '0.860473' + - '1.003807' X-XSS-Protection: - 1; mode=block status: @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 11 Feb 2024 13:16:18 GMT + - Sun, 11 Feb 2024 14:22:09 GMT ETag: - W/"1e990b89b4e02b91533e6939057a52ec" Referrer-Policy: @@ -145,9 +145,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - f7f5cff3-f5aa-43ee-a5cf-5e75bacfd09e + - a538334c-91cc-4b18-ab07-20a8d488f86f X-Runtime: - - '0.052453' + - '0.062575' X-XSS-Protection: - 1; mode=block status: @@ -179,7 +179,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 11 Feb 2024 13:16:18 GMT + - Sun, 11 Feb 2024 14:22:10 GMT ETag: - W/"1e990b89b4e02b91533e6939057a52ec" Referrer-Policy: @@ -197,9 +197,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - d9893870-bf0f-45e6-b21b-0eb99a02ad62 + - 2281cb16-024b-4650-85af-c0ccb6cdb494 X-Runtime: - - '0.017454' + - '0.016856' X-XSS-Protection: - 1; mode=block status: @@ -226,9 +226,9 @@ interactions: uri: http://localhost:3000/api/v1/statuses response: body: - string: '{"id":"111913034296601018","created_at":"2024-02-11T13:16:23.707Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111913034296601018","url":"http://localhost:3000/@mastodonpy_test/111913034296601018","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eonly + string: '{"id":"111913293241246533","created_at":"2024-02-11T14:22:14.889Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111913293241246533","url":"http://localhost:3000/@mastodonpy_test/111913293241246533","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eonly real cars respond.\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"111913032116974896","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' + test suite","website":null},"account":{"id":"111913290558315733","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' headers: Cache-Control: - private, no-store @@ -237,7 +237,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"54359abbb971443d0a098da0c18b83f6" + - W/"394c2b2e97cc75a092c8271d03930370" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -257,11 +257,11 @@ interactions: X-RateLimit-Remaining: - '299' X-RateLimit-Reset: - - '2024-02-11T15:00:00.805006Z' + - '2024-02-11T15:00:00.985915Z' X-Request-Id: - - 9e08362a-c693-4990-9e54-4ef6bf44a188 + - 79de61aa-7a2e-4a51-89b0-82192265294b X-Runtime: - - '0.164772' + - '0.174024' X-XSS-Protection: - 1; mode=block status: @@ -288,11 +288,11 @@ interactions: uri: http://localhost:3000/api/v1/statuses response: body: - string: '{"id":"111913034309253046","created_at":"2024-02-11T13:16:23.897Z","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/111913034309253046","url":"http://localhost:3000/@admin/111913034309253046","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":"111913293319795712","created_at":"2024-02-11T14:22:16.080Z","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/111913293319795712","url":"http://localhost:3000/@admin/111913293319795712","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\"\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 beep beep I\u0026#39;m a jeep\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"111913031861044315","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":"2024-02-11","noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"111913032116974896","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}' + test suite","website":null},"account":{"id":"111913290281145421","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":"2024-02-11","noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"111913290558315733","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}' headers: Cache-Control: - private, no-store @@ -301,7 +301,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"84b3caef079531ebb363b7002ca723a4" + - W/"9a4acbadc234fc098609f35f11fd8c6d" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -321,11 +321,11 @@ interactions: X-RateLimit-Remaining: - '299' X-RateLimit-Reset: - - '2024-02-11T15:00:00.004438Z' + - '2024-02-11T15:00:00.178033Z' X-Request-Id: - - 2b13f884-9eb1-4952-8606-3ccd411e7d63 + - d3322210-6722-48b2-9d92-0128f6262fda X-Runtime: - - '0.171718' + - '0.162907' X-XSS-Protection: - 1; mode=block status: @@ -352,9 +352,9 @@ interactions: uri: http://localhost:3000/api/v1/statuses response: body: - string: '{"id":"111913034321596572","created_at":"2024-02-11T13:16:24.059Z","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/111913034321596572","url":"http://localhost:3000/@admin/111913034321596572","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eon + string: '{"id":"111913293396765469","created_at":"2024-02-11T14:22:17.232Z","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/111913293396765469","url":"http://localhost:3000/@admin/111913293396765469","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eon the internet, nobody knows you\u0026#39;re a plane\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"111913031861044315","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":2,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' + test suite","website":null},"account":{"id":"111913290281145421","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":2,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' headers: Cache-Control: - private, no-store @@ -363,7 +363,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"44f090d0292110d2aa16514cace879c5" + - W/"5cced02602ca43fda08aef252f04d474" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -383,11 +383,11 @@ interactions: X-RateLimit-Remaining: - '298' X-RateLimit-Reset: - - '2024-02-11T15:00:00.090092Z' + - '2024-02-11T15:00:00.264169Z' X-Request-Id: - - d03c769b-d920-40da-ac99-c36ed232a954 + - 18925ed4-8800-49af-8d15-9504bf61aff7 X-Runtime: - - '0.047641' + - '0.047609' X-XSS-Protection: - 1; mode=block status: @@ -414,11 +414,11 @@ interactions: uri: http://localhost:3000/api/v1/statuses response: body: - string: '{"id":"111913034326533690","created_at":"2024-02-11T13:16:24.134Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"direct","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111913034326533690","url":"http://localhost:3000/@mastodonpy_test/111913034326533690","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":"111913293467417692","created_at":"2024-02-11T14:22:18.311Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"direct","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111913293467417692","url":"http://localhost:3000/@mastodonpy_test/111913293467417692","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\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test_2\" class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test_2\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e pssssst\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"111913032116974896","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"111913032252332319","username":"mastodonpy_test_2","url":"http://localhost:3000/@mastodonpy_test_2","acct":"mastodonpy_test_2"}],"tags":[],"emojis":[],"card":null,"poll":null}' + test suite","website":null},"account":{"id":"111913290558315733","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"111913290684265056","username":"mastodonpy_test_2","url":"http://localhost:3000/@mastodonpy_test_2","acct":"mastodonpy_test_2"}],"tags":[],"emojis":[],"card":null,"poll":null}' headers: Cache-Control: - private, no-store @@ -427,7 +427,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"07253edcb8dd8d0582cdcf7ade3be776" + - W/"bdce7fed3d6bf9b4b9fd28098b14881e" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -447,18 +447,18 @@ interactions: X-RateLimit-Remaining: - '298' X-RateLimit-Reset: - - '2024-02-11T15:00:00.176254Z' + - '2024-02-11T15:00:00.365897Z' X-Request-Id: - - 229bf712-ed25-433e-bf24-e28ef89b04d1 + - a609d8e3-c9c0-4f5c-9df8-7b3e7ba4fb36 X-Runtime: - - '0.058689' + - '0.073633' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK - request: - body: status=%40mastodonpy_test+pssssst%21&in_reply_to_id=111913034326533690&visibility=direct + body: status=%40mastodonpy_test+pssssst%21&in_reply_to_id=111913293467417692&visibility=direct headers: Accept: - '*/*' @@ -478,11 +478,11 @@ interactions: uri: http://localhost:3000/api/v1/statuses response: body: - string: '{"id":"111913034401504372","created_at":"2024-02-11T13:16:25.277Z","in_reply_to_id":"111913034326533690","in_reply_to_account_id":"111913032116974896","sensitive":false,"spoiler_text":"","visibility":"direct","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test_2/statuses/111913034401504372","url":"http://localhost:3000/@mastodonpy_test_2/111913034401504372","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":"111913293542876933","created_at":"2024-02-11T14:22:19.462Z","in_reply_to_id":"111913293467417692","in_reply_to_account_id":"111913290558315733","sensitive":false,"spoiler_text":"","visibility":"direct","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test_2/statuses/111913293542876933","url":"http://localhost:3000/@mastodonpy_test_2/111913293542876933","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\"\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 pssssst!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"111913032252332319","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":0,"last_status_at":null,"noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"111913032116974896","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}' + test suite","website":null},"account":{"id":"111913290684265056","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":0,"last_status_at":null,"noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"111913290558315733","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}' headers: Cache-Control: - private, no-store @@ -491,7 +491,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"5d0d03ccd616699407c5aeac15ff9e7a" + - W/"99b1ae1742e45148d23963771526330c" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -511,11 +511,11 @@ interactions: X-RateLimit-Remaining: - '299' X-RateLimit-Reset: - - '2024-02-11T15:00:00.317972Z' + - '2024-02-11T15:00:00.505429Z' X-Request-Id: - - 43946d73-e789-49b2-9549-51758ca5ae62 + - ed6626bf-0750-4389-92ef-e6562fb9445d X-Runtime: - - '0.082110' + - '0.077517' X-XSS-Protection: - 1; mode=block status: @@ -539,12 +539,12 @@ interactions: User-Agent: - tests/v311 method: PUT - uri: http://localhost:3000/api/v1/statuses/111913034296601018 + uri: http://localhost:3000/api/v1/statuses/111913293241246533 response: body: - string: '{"id":"111913034296601018","created_at":"2024-02-11T13:16:23.707Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111913034296601018","url":"http://localhost:3000/@mastodonpy_test/111913034296601018","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":"2024-02-11T13:16:27.489Z","favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eonly + string: '{"id":"111913293241246533","created_at":"2024-02-11T14:22:14.889Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111913293241246533","url":"http://localhost:3000/@mastodonpy_test/111913293241246533","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":"2024-02-11T14:22:21.672Z","favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eonly real animals respond.\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"111913032116974896","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' + test suite","website":null},"account":{"id":"111913290558315733","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' headers: Cache-Control: - private, no-store @@ -553,7 +553,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"a7895c347e985f5a50ab5af542134936" + - W/"57e68bb31706213a8d72ea90446d5c61" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -573,11 +573,11 @@ interactions: X-RateLimit-Remaining: - '297' X-RateLimit-Reset: - - '2024-02-11T15:00:00.526240Z' + - '2024-02-11T15:00:00.713638Z' X-Request-Id: - - c343a50a-a18b-49ac-a9d4-0d2efc5ffdfd + - f0637290-f004-4637-a633-be9f0b4870e4 X-Runtime: - - '0.168971' + - '0.168782' X-XSS-Protection: - 1; mode=block status: @@ -599,12 +599,12 @@ interactions: User-Agent: - tests/v311 method: DELETE - uri: http://localhost:3000/api/v1/statuses/111913034296601018 + uri: http://localhost:3000/api/v1/statuses/111913293241246533 response: body: - string: '{"id":"111913034296601018","created_at":"2024-02-11T13:16:23.707Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111913034296601018","url":"http://localhost:3000/@mastodonpy_test/111913034296601018","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":"2024-02-11T13:16:27.489Z","favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"only + string: '{"id":"111913293241246533","created_at":"2024-02-11T14:22:14.889Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111913293241246533","url":"http://localhost:3000/@mastodonpy_test/111913293241246533","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":"2024-02-11T14:22:21.672Z","favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"only real animals respond.","filtered":[],"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"111913032116974896","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":0,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' + test suite","website":null},"account":{"id":"111913290558315733","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":0,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' headers: Cache-Control: - private, no-store @@ -613,7 +613,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"5fdb29d90093cb8feb9ead9d12e27b9d" + - W/"8f7b2c384c0bfc0bb8c711abff103198" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -629,9 +629,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 928f81cf-2a20-436a-bf5d-e99895d47061 + - 672ecdaf-34e5-400b-8d9c-123cbc3d318c X-Runtime: - - '0.053633' + - '0.037871' X-XSS-Protection: - 1; mode=block status: @@ -658,18 +658,18 @@ interactions: event: conversation - data: {"id":"1","unread":false,"accounts":[{"id":"111913032252332319","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":0,"last_status_at":null,"noindex":false,"emojis":[],"roles":[],"fields":[]}],"last_status":{"id":"111913034326533690","created_at":"2024-02-11T13:16:24.134Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"direct","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111913034326533690","url":"http://localhost:3000/@mastodonpy_test/111913034326533690","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"

@mastodonpy_test_2 pssssst

","filtered":[],"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"111913032116974896","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"111913032252332319","username":"mastodonpy_test_2","url":"http://localhost:3000/@mastodonpy_test_2","acct":"mastodonpy_test_2"}],"tags":[],"emojis":[],"card":null,"poll":null}} + test suite","website":null},"account":{"id":"111913290558315733","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"111913290684265056","username":"mastodonpy_test_2","url":"http://localhost:3000/@mastodonpy_test_2","acct":"mastodonpy_test_2"}],"tags":[],"emojis":[],"card":null,"poll":null}} event: conversation - data: {"id":"1","unread":true,"accounts":[{"id":"111913032252332319","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":0,"last_status_at":null,"noindex":false,"emojis":[],"roles":[],"fields":[]}],"last_status":{"id":"111913034401504372","created_at":"2024-02-11T13:16:25.277Z","in_reply_to_id":"111913034326533690","in_reply_to_account_id":"111913032116974896","sensitive":false,"spoiler_text":"","visibility":"direct","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test_2/statuses/111913034401504372","url":"http://localhost:3000/@mastodonpy_test_2/111913034401504372","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"

@mastodonpy_test pssssst!

","filtered":[],"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"111913032252332319","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":0,"last_status_at":null,"noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"111913032116974896","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}} + test suite","website":null},"account":{"id":"111913290684265056","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":0,"last_status_at":null,"noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"111913290558315733","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}} :' @@ -687,7 +687,7 @@ interactions: Content-Type: - text/event-stream Date: - - Sun, 11 Feb 2024 13:16:18 GMT + - Sun, 11 Feb 2024 14:22:10 GMT Keep-Alive: - timeout=5 Transfer-Encoding: @@ -695,7 +695,7 @@ interactions: X-Powered-By: - Express X-Request-Id: - - 2598e14d-251f-4616-853d-7e4fef09e387 + - 80069b19-4fdf-48ec-91d4-95ee2bc69af9 status: code: 200 message: OK @@ -720,45 +720,45 @@ interactions: event: update - data: {"id":"111913034296601018","created_at":"2024-02-11T13:16:23.707Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111913034296601018","url":"http://localhost:3000/@mastodonpy_test/111913034296601018","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"content":"

only + data: {"id":"111913293241246533","created_at":"2024-02-11T14:22:14.889Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111913293241246533","url":"http://localhost:3000/@mastodonpy_test/111913293241246533","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"content":"

only real cars respond.

","reblog":null,"application":{"name":"Mastodon.py test - suite","website":null},"account":{"id":"111913032116974896","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"filtered":[]} + suite","website":null},"account":{"id":"111913290558315733","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"filtered":[]} event: notification - data: {"id":"6","type":"mention","created_at":"2024-02-11T13:16:24.168Z","account":{"id":"111913031861044315","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":2,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"status":{"id":"111913034309253046","created_at":"2024-02-11T13:16:23.897Z","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/111913034309253046","url":"http://localhost:3000/@admin/111913034309253046","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"

@mastodonpy_test beep beep I'm a jeep

","filtered":[],"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"111913031861044315","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":2,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"111913032116974896","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}} + test suite","website":null},"account":{"id":"111913290281145421","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":"2024-02-11","noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"media_attachments":[],"mentions":[{"id":"111913290558315733","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}} event: update - data: {"id":"111913034326533690","created_at":"2024-02-11T13:16:24.134Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"direct","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111913034326533690","url":"http://localhost:3000/@mastodonpy_test/111913034326533690","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"content":"

@mastodonpy_test_2 pssssst

","reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"111913032116974896","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"111913032252332319","username":"mastodonpy_test_2","url":"http://localhost:3000/@mastodonpy_test_2","acct":"mastodonpy_test_2"}],"tags":[],"emojis":[],"card":null,"poll":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"filtered":[]} + test suite","website":null},"account":{"id":"111913290558315733","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"111913290684265056","username":"mastodonpy_test_2","url":"http://localhost:3000/@mastodonpy_test_2","acct":"mastodonpy_test_2"}],"tags":[],"emojis":[],"card":null,"poll":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"filtered":[]} event: notification - data: {"id":"8","type":"mention","created_at":"2024-02-11T13:16:25.417Z","account":{"id":"111913032252332319","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":0,"last_status_at":null,"noindex":false,"emojis":[],"roles":[],"fields":[]},"status":{"id":"111913034401504372","created_at":"2024-02-11T13:16:25.277Z","in_reply_to_id":"111913034326533690","in_reply_to_account_id":"111913032116974896","sensitive":false,"spoiler_text":"","visibility":"direct","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test_2/statuses/111913034401504372","url":"http://localhost:3000/@mastodonpy_test_2/111913034401504372","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"

@mastodonpy_test pssssst!

","filtered":[],"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"111913032252332319","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":0,"last_status_at":null,"noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"111913032116974896","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}} + test suite","website":null},"account":{"id":"111913290684265056","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":0,"last_status_at":null,"noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"111913290558315733","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}} event: status.update - data: {"id":"111913034296601018","created_at":"2024-02-11T13:16:23.707Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111913034296601018","url":"http://localhost:3000/@mastodonpy_test/111913034296601018","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":"2024-02-11T13:16:27.489Z","content":"

only + data: {"id":"111913293241246533","created_at":"2024-02-11T14:22:14.889Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111913293241246533","url":"http://localhost:3000/@mastodonpy_test/111913293241246533","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":"2024-02-11T14:22:21.672Z","content":"

only real animals respond.

","reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"111913032116974896","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"filtered":[]} + test suite","website":null},"account":{"id":"111913290558315733","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"filtered":[]} event: delete - data: 111913034296601018 + data: 111913293241246533 :' @@ -776,7 +776,7 @@ interactions: Content-Type: - text/event-stream Date: - - Sun, 11 Feb 2024 13:16:18 GMT + - Sun, 11 Feb 2024 14:22:09 GMT Keep-Alive: - timeout=5 Transfer-Encoding: @@ -784,7 +784,7 @@ interactions: X-Powered-By: - Express X-Request-Id: - - 86ffee29-6a99-499d-9a34-a5ea7f8c837f + - 1051bcf9-1bfd-419f-84d1-ebfe373223e1 status: code: 200 message: OK diff --git a/tests/cassettes/test_stream_user_local.yaml b/tests/cassettes/test_stream_user_local.yaml index 4f13dfb..350c3d5 100644 --- a/tests/cassettes/test_stream_user_local.yaml +++ b/tests/cassettes/test_stream_user_local.yaml @@ -16,7 +16,7 @@ interactions: uri: http://localhost:3000/api/v1/accounts/verify_credentials response: body: - string: '{"id":"111912993249299808","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":2,"last_status_at":"2024-02-11","noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}' + string: '{"id":"111913290281145421","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":2,"last_status_at":"2024-02-11","noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}' headers: Cache-Control: - private, no-store @@ -25,7 +25,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"ee1446cafba6edd70390b6e5e43d1a22" + - W/"ab6b49bbd5be3db7514cc1430862c6f5" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -41,9 +41,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - c4932156-26fd-449d-96be-3597a9478642 + - d332845f-dae7-4223-b428-0008fb1a16d0 X-Runtime: - - '0.026354' + - '0.019102' X-XSS-Protection: - 1; mode=block status: @@ -65,10 +65,10 @@ interactions: User-Agent: - tests/v311 method: POST - uri: http://localhost:3000/api/v1/accounts/111912993249299808/unfollow + uri: http://localhost:3000/api/v1/accounts/111913290281145421/unfollow response: body: - string: '{"id":"111912993249299808","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"requested_by":false,"domain_blocking":false,"endorsed":false,"note":""}' + string: '{"id":"111913290281145421","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"requested_by":false,"domain_blocking":false,"endorsed":false,"note":""}' headers: Cache-Control: - private, no-store @@ -77,7 +77,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"d7734d2985e333ce57670f43a7e400e1" + - W/"728d53235d391b81628e5d08f84bf3db" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -93,9 +93,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 353a0652-0a9f-4fe7-892a-30b70fb03650 + - 43ec83b1-d221-45f7-ab26-1eade1efcf42 X-Runtime: - - '0.017720' + - '0.720109' X-XSS-Protection: - 1; mode=block status: @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 11 Feb 2024 13:07:11 GMT + - Sun, 11 Feb 2024 14:22:39 GMT ETag: - W/"6fa37903edf589a27b9ae45b4eb6e219" Referrer-Policy: @@ -145,9 +145,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 3b96e154-1a09-4a77-851d-9011e7dcdf4c + - 656a2674-b31f-4748-a352-6e31a64cdfb8 X-Runtime: - - '0.018010' + - '0.039436' X-XSS-Protection: - 1; mode=block status: @@ -174,9 +174,9 @@ interactions: uri: http://localhost:3000/api/v1/statuses response: body: - string: '{"id":"111912998444385370","created_at":"2024-02-11T13:07:16.615Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111912998444385370","url":"http://localhost:3000/@mastodonpy_test/111912998444385370","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eit\u0026#39;s + string: '{"id":"111913295200100223","created_at":"2024-02-11T14:22:44.749Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111913295200100223","url":"http://localhost:3000/@mastodonpy_test/111913295200100223","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eit\u0026#39;s cool guy\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"111912993515458147","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' + test suite","website":null},"account":{"id":"111913290558315733","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' headers: Cache-Control: - private, no-store @@ -185,7 +185,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"6cf7b221b69925a58f1f94b5ce28fb99" + - W/"4677fb58ff4a0527cb3171bd96123cf3" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -205,11 +205,11 @@ interactions: X-RateLimit-Remaining: - '296' X-RateLimit-Reset: - - '2024-02-11T15:00:00.646472Z' + - '2024-02-11T15:00:00.791353Z' X-Request-Id: - - 138ca833-624a-4b8f-9656-5e1467ffc1ff + - 48c8fc81-9fca-4a39-9986-5b328de4b383 X-Runtime: - - '0.046732' + - '0.065774' X-XSS-Protection: - 1; mode=block status: @@ -236,8 +236,8 @@ interactions: event: update - data: {"id":"111912998444385370","created_at":"2024-02-11T13:07:16.615Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111912998444385370","url":"http://localhost:3000/@mastodonpy_test/111912998444385370","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"content":"

it's - cool guy

","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"111912993515458147","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"filtered":[]} + data: {"id":"111913295200100223","created_at":"2024-02-11T14:22:44.749Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/111913295200100223","url":"http://localhost:3000/@mastodonpy_test/111913295200100223","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"content":"

it's + cool guy

","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"111913290558315733","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2024-02-11T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"last_status_at":"2024-02-11","noindex":false,"emojis":[],"roles":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"filtered":[]} :' @@ -255,7 +255,7 @@ interactions: Content-Type: - text/event-stream Date: - - Sun, 11 Feb 2024 13:07:11 GMT + - Sun, 11 Feb 2024 14:22:39 GMT Keep-Alive: - timeout=5 Transfer-Encoding: @@ -263,7 +263,7 @@ interactions: X-Powered-By: - Express X-Request-Id: - - c2d68ada-086e-43ee-941c-956b1241b190 + - dee80b4c-1d07-4241-8322-d04b0f72c2f5 status: code: 200 message: OK diff --git a/tests/test_streaming.py b/tests/test_streaming.py index 5c6e876..e4e95ac 100644 --- a/tests/test_streaming.py +++ b/tests/test_streaming.py @@ -326,6 +326,7 @@ def test_multiline_payload(): def test_stream_user_direct(api, api2, api3, vcr): patch_streaming() + # Be extra super paranoid vcr.match_on = ["path"] # Make sure we are in the right state to not receive updates from api2