aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-13 15:33:10 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-13 15:33:10 +0200
commitb1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2 (patch)
tree3ecf530456b311057658b3b2e749ad017074455b /tests/cassettes/test_stream_direct.yaml
parenta17b20cfa142469019cd5982ba200510afc1f884 (diff)
downloadmastodon.py-b1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2.tar.gz
Add support for timed mutes, fix tests to actually pass with new setup
Diffstat (limited to 'tests/cassettes/test_stream_direct.yaml')
-rw-r--r--tests/cassettes/test_stream_direct.yaml36
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/cassettes/test_stream_direct.yaml b/tests/cassettes/test_stream_direct.yaml
index 78e7495..34dc5bb 100644
--- a/tests/cassettes/test_stream_direct.yaml
+++ b/tests/cassettes/test_stream_direct.yaml
@@ -16,14 +16,14 @@ interactions:
16 uri: http://localhost:3000/api/v1/instance/ 16 uri: http://localhost:3000/api/v1/instance/
17 response: 17 response:
18 body: 18 body:
19 string: '{"uri":"localhost:3000","title":"Mastodon","short_description":"","description":"","email":"","version":"4.0.0rc2","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":4,"status_count":26,"domain_count":0},"thumbnail":"http://localhost:3000/packs/media/images/preview-6399aebd96ccf025654e2977454f168f.png","languages":["en"],"registrations":true,"approval_required":false,"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":10485760,"image_matrix_limit":16777216,"video_size_limit":41943040,"video_frame_rate_limit":60,"video_matrix_limit":2304000},"polls":{"max_options":4,"max_characters_per_option":50,"min_expiration":300,"max_expiration":2629746}},"contact_account":null,"rules":[]}' 19 string: '{"uri":"localhost:3000","title":"Mastodon","short_description":"","description":"","email":"","version":"4.0.0rc2","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":4,"status_count":6,"domain_count":0},"thumbnail":"http://localhost:3000/packs/media/images/preview-6399aebd96ccf025654e2977454f168f.png","languages":["en"],"registrations":true,"approval_required":false,"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":10485760,"image_matrix_limit":16777216,"video_size_limit":41943040,"video_frame_rate_limit":60,"video_matrix_limit":2304000},"polls":{"max_options":4,"max_characters_per_option":50,"min_expiration":300,"max_expiration":2629746}},"contact_account":null,"rules":[]}'
20 headers: 20 headers:
21 Cache-Control: 21 Cache-Control:
22 - max-age=180, public 22 - max-age=180, public
23 Content-Security-Policy: 23 Content-Security-Policy:
24 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 24 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
25 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 25 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
26 style-src ''self'' http://localhost:3000 ''nonce-B1nOHrph1hAKwl0wS1cnVA==''; 26 style-src ''self'' http://localhost:3000 ''nonce-VMSI8EA66LRveq8qT7hz2g=='';
27 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 27 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
28 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 28 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
29 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 29 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -33,9 +33,9 @@ interactions:
33 Content-Type: 33 Content-Type:
34 - application/json; charset=utf-8 34 - application/json; charset=utf-8
35 Date: 35 Date:
36 - Thu, 10 Nov 2022 22:13:58 GMT 36 - Sun, 13 Nov 2022 13:16:28 GMT
37 ETag: 37 ETag:
38 - W/"4045472975d392761543da851003f105" 38 - W/"02f6de447b58c8ef38800346c358b5d4"
39 Referrer-Policy: 39 Referrer-Policy:
40 - strict-origin-when-cross-origin 40 - strict-origin-when-cross-origin
41 Transfer-Encoding: 41 Transfer-Encoding:
@@ -51,9 +51,9 @@ interactions:
51 X-Permitted-Cross-Domain-Policies: 51 X-Permitted-Cross-Domain-Policies:
52 - none 52 - none
53 X-Request-Id: 53 X-Request-Id:
54 - d8f470d4-2737-4db7-945d-83df81a502db 54 - 9815249d-9d30-41fd-a6ee-f6f0fc5a68d3
55 X-Runtime: 55 X-Runtime:
56 - '0.014842' 56 - '0.015137'
57 X-XSS-Protection: 57 X-XSS-Protection:
58 - 1; mode=block 58 - 1; mode=block
59 status: 59 status:
@@ -80,18 +80,18 @@ interactions:
80 uri: http://localhost:3000/api/v1/statuses 80 uri: http://localhost:3000/api/v1/statuses
81 response: 81 response:
82 body: 82 body:
83 string: '{"id":"109321810281990927","created_at":"2022-11-10T22:14:03.025Z","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/109321810281990927","url":"http://localhost:3000/@admin/109321810281990927","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan 83 string: '{"id":"109336683735979758","created_at":"2022-11-13T13:16:33.922Z","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/109336683735979758","url":"http://localhost:3000/@admin/109336683735979758","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan
84 class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" 84 class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\"
85 class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e 85 class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e
86 todo funny text here\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py 86 todo funny text here\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
87 test suite","website":null},"account":{"id":"109321664540352180","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-10T00: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":22,"last_status_at":"2022-11-10","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109321664748836260","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}' 87 test suite","website":null},"account":{"id":"109336623096259500","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00: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":3,"last_status_at":"2022-11-13","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109336623311102204","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'
88 headers: 88 headers:
89 Cache-Control: 89 Cache-Control:
90 - no-store 90 - no-store
91 Content-Security-Policy: 91 Content-Security-Policy:
92 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 92 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
93 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 93 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
94 style-src ''self'' http://localhost:3000 ''nonce-23OmcQKuF8MjIWQ74DG4LQ==''; 94 style-src ''self'' http://localhost:3000 ''nonce-ragjhtcIw/zqsSuGIeYFCw=='';
95 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 95 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
96 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 96 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
97 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 97 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -101,7 +101,7 @@ interactions:
101 Content-Type: 101 Content-Type:
102 - application/json; charset=utf-8 102 - application/json; charset=utf-8
103 ETag: 103 ETag:
104 - W/"f58fbc9f60f8ca9a1f44ee15b9387384" 104 - W/"a6de4519f90c7cae2efa6af5b1d0fc49"
105 Referrer-Policy: 105 Referrer-Policy:
106 - strict-origin-when-cross-origin 106 - strict-origin-when-cross-origin
107 Transfer-Encoding: 107 Transfer-Encoding:
@@ -119,13 +119,13 @@ interactions:
119 X-RateLimit-Limit: 119 X-RateLimit-Limit:
120 - '300' 120 - '300'
121 X-RateLimit-Remaining: 121 X-RateLimit-Remaining:
122 - '277' 122 - '291'
123 X-RateLimit-Reset: 123 X-RateLimit-Reset:
124 - '2022-11-11T00:00:00.061328Z' 124 - '2022-11-13T15:00:00.945552Z'
125 X-Request-Id: 125 X-Request-Id:
126 - 2e2efaa6-06d8-4c3c-a9b8-330a5ab34d74 126 - dd8c6405-642f-4992-ae52-f10636bea0f3
127 X-Runtime: 127 X-Runtime:
128 - '0.048975' 128 - '0.035330'
129 X-XSS-Protection: 129 X-XSS-Protection:
130 - 1; mode=block 130 - 1; mode=block
131 status: 131 status:
@@ -152,10 +152,10 @@ interactions:
152 152
153 event: conversation 153 event: conversation
154 154
155 data: {"id":"2","unread":true,"accounts":[{"id":"109321664540352180","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-10T00: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":22,"last_status_at":"2022-11-10","noindex":false,"emojis":[],"fields":[]}],"last_status":{"id":"109321810281990927","created_at":"2022-11-10T22:14:03.025Z","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/109321810281990927","url":"http://localhost:3000/@admin/109321810281990927","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"<p><span 155 data: {"id":"2","unread":true,"accounts":[{"id":"109336623096259500","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00: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":3,"last_status_at":"2022-11-13","noindex":false,"emojis":[],"fields":[]}],"last_status":{"id":"109336683735979758","created_at":"2022-11-13T13:16:33.922Z","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/109336683735979758","url":"http://localhost:3000/@admin/109336683735979758","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"<p><span
156 class=\"h-card\"><a href=\"http://localhost:3000/@mastodonpy_test\" class=\"u-url 156 class=\"h-card\"><a href=\"http://localhost:3000/@mastodonpy_test\" class=\"u-url
157 mention\">@<span>mastodonpy_test</span></a></span> todo funny text here</p>","filtered":[],"reblog":null,"application":{"name":"Mastodon.py 157 mention\">@<span>mastodonpy_test</span></a></span> todo funny text here</p>","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
158 test suite","website":null},"account":{"id":"109321664540352180","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-10T00: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":22,"last_status_at":"2022-11-10","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109321664748836260","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}} 158 test suite","website":null},"account":{"id":"109336623096259500","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00: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":3,"last_status_at":"2022-11-13","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109336623311102204","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}}
159 159
160 160
161 :' 161 :'
@@ -173,7 +173,7 @@ interactions:
173 Content-Type: 173 Content-Type:
174 - text/event-stream 174 - text/event-stream
175 Date: 175 Date:
176 - Thu, 10 Nov 2022 22:13:58 GMT 176 - Sun, 13 Nov 2022 13:16:28 GMT
177 Keep-Alive: 177 Keep-Alive:
178 - timeout=5 178 - timeout=5
179 Transfer-Encoding: 179 Transfer-Encoding:
@@ -181,7 +181,7 @@ interactions:
181 X-Powered-By: 181 X-Powered-By:
182 - Express 182 - Express
183 X-Request-Id: 183 X-Request-Id:
184 - 404f97e9-7600-4cc1-b30d-563ab2c0e6a4 184 - c4360f23-fd6b-49ba-8683-45381395ec00
185 status: 185 status:
186 code: 200 186 code: 200
187 message: OK 187 message: OK
Powered by cgit v1.2.3 (git 2.41.0)