aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/cassettes/test_min_max_id_datetimes.yaml50
-rw-r--r--tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pklbin136 -> 84 bytes
-rw-r--r--tests/cassettes/test_scheduled_status.yaml112
-rw-r--r--tests/cassettes/test_scheduled_status_datetimeobjects.pklbin53 -> 21 bytes
-rw-r--r--tests/test_status.py4
-rw-r--r--tests/test_timeline.py13
6 files changed, 91 insertions, 88 deletions
diff --git a/tests/cassettes/test_min_max_id_datetimes.yaml b/tests/cassettes/test_min_max_id_datetimes.yaml
index a3d3daf..e551944 100644
--- a/tests/cassettes/test_min_max_id_datetimes.yaml
+++ b/tests/cassettes/test_min_max_id_datetimes.yaml
@@ -20,7 +20,7 @@ interactions:
20 uri: http://localhost:3000/api/v1/statuses 20 uri: http://localhost:3000/api/v1/statuses
21 response: 21 response:
22 body: 22 body:
23 string: '{"id":"109361414886671615","created_at":"2022-11-17T22:06:01.334Z","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/109361414886671615","url":"http://localhost:3000/@mastodonpy_test/109361414886671615","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py 23 string: '{"id":"109361459769276068","created_at":"2022-11-17T22:17:26.188Z","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/109361459769276068","url":"http://localhost:3000/@mastodonpy_test/109361459769276068","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
24 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 24 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
25 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI 25 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI
26 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":7,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' 26 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":7,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'
@@ -30,7 +30,7 @@ interactions:
30 Content-Security-Policy: 30 Content-Security-Policy:
31 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 31 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
32 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 32 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
33 style-src ''self'' http://localhost:3000 ''nonce-zdbQSwbx4iw16vSozkEaBw==''; 33 style-src ''self'' http://localhost:3000 ''nonce-3i41EcZdrZvb3525PmXeyw=='';
34 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 34 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
35 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 35 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
36 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 36 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -40,7 +40,7 @@ interactions:
40 Content-Type: 40 Content-Type:
41 - application/json; charset=utf-8 41 - application/json; charset=utf-8
42 ETag: 42 ETag:
43 - W/"df3c2de04c21d605b95386d3e8dfd158" 43 - W/"2e520c1fd5d370139af87e0798956824"
44 Referrer-Policy: 44 Referrer-Policy:
45 - strict-origin-when-cross-origin 45 - strict-origin-when-cross-origin
46 Transfer-Encoding: 46 Transfer-Encoding:
@@ -58,13 +58,13 @@ interactions:
58 X-RateLimit-Limit: 58 X-RateLimit-Limit:
59 - '300' 59 - '300'
60 X-RateLimit-Remaining: 60 X-RateLimit-Remaining:
61 - '295' 61 - '294'
62 X-RateLimit-Reset: 62 X-RateLimit-Reset:
63 - '2022-11-18T00:00:00.353667Z' 63 - '2022-11-18T00:00:00.209865Z'
64 X-Request-Id: 64 X-Request-Id:
65 - e332cfa8-a612-45f2-804c-1c3277fd8b1c 65 - b685adcc-5bc1-47b7-aaee-9f6b9bd1203d
66 X-Runtime: 66 X-Runtime:
67 - '0.032788' 67 - '0.039480'
68 X-XSS-Protection: 68 X-XSS-Protection:
69 - 1; mode=block 69 - 1; mode=block
70 status: 70 status:
@@ -84,10 +84,10 @@ interactions:
84 User-Agent: 84 User-Agent:
85 - tests/v311 85 - tests/v311
86 method: GET 86 method: GET
87 uri: http://localhost:3000/api/v1/timelines/home?max_id=109361416175616000&min_id=109361413554176000 87 uri: http://localhost:3000/api/v1/timelines/home?max_id=109361461067776000&min_id=109361458446336000
88 response: 88 response:
89 body: 89 body:
90 string: '[{"id":"109361414886671615","created_at":"2022-11-17T22:06:01.334Z","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/109361414886671615","url":"http://localhost:3000/@mastodonpy_test/109361414886671615","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py 90 string: '[{"id":"109361459769276068","created_at":"2022-11-17T22:17:26.188Z","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/109361459769276068","url":"http://localhost:3000/@mastodonpy_test/109361459769276068","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
91 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 91 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
92 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI 92 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI
93 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":7,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}]' 93 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":7,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}]'
@@ -97,7 +97,7 @@ interactions:
97 Content-Security-Policy: 97 Content-Security-Policy:
98 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 98 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
99 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 99 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
100 style-src ''self'' http://localhost:3000 ''nonce-2KxFxB3gPWoSTIQQOcj+Yg==''; 100 style-src ''self'' http://localhost:3000 ''nonce-hHFjpXtdrPDaDwcOKfHaeg=='';
101 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 101 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
102 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 102 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
103 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 103 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -107,10 +107,10 @@ interactions:
107 Content-Type: 107 Content-Type:
108 - application/json; charset=utf-8 108 - application/json; charset=utf-8
109 ETag: 109 ETag:
110 - W/"587b4daea4aea69b51dc4985d33293bc" 110 - W/"0675f531431a1a5e7cbddf1ca1dadcbe"
111 Link: 111 Link:
112 - <http://localhost:3000/api/v1/timelines/home?max_id=109361414886671615>; rel="next", 112 - <http://localhost:3000/api/v1/timelines/home?max_id=109361459769276068>; rel="next",
113 <http://localhost:3000/api/v1/timelines/home?min_id=109361414886671615>; rel="prev" 113 <http://localhost:3000/api/v1/timelines/home?min_id=109361459769276068>; rel="prev"
114 Referrer-Policy: 114 Referrer-Policy:
115 - strict-origin-when-cross-origin 115 - strict-origin-when-cross-origin
116 Transfer-Encoding: 116 Transfer-Encoding:
@@ -126,9 +126,9 @@ interactions:
126 X-Permitted-Cross-Domain-Policies: 126 X-Permitted-Cross-Domain-Policies:
127 - none 127 - none
128 X-Request-Id: 128 X-Request-Id:
129 - cce9e9fa-1662-4415-aef7-2b42f239eec2 129 - e4e00d82-ef82-40dc-b030-79dc1acbaa6c
130 X-Runtime: 130 X-Runtime:
131 - '0.021393' 131 - '0.022892'
132 X-XSS-Protection: 132 X-XSS-Protection:
133 - 1; mode=block 133 - 1; mode=block
134 status: 134 status:
@@ -148,7 +148,7 @@ interactions:
148 User-Agent: 148 User-Agent:
149 - tests/v311 149 - tests/v311
150 method: GET 150 method: GET
151 uri: http://localhost:3000/api/v1/timelines/home?max_id=109361417486336000&min_id=109361416175616000 151 uri: http://localhost:3000/api/v1/timelines/home?max_id=109361462378496000&min_id=109361461067776000
152 response: 152 response:
153 body: 153 body:
154 string: '[]' 154 string: '[]'
@@ -158,7 +158,7 @@ interactions:
158 Content-Security-Policy: 158 Content-Security-Policy:
159 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 159 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
160 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 160 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
161 style-src ''self'' http://localhost:3000 ''nonce-IUhdTTDwet1ZMyN0WYNkbA==''; 161 style-src ''self'' http://localhost:3000 ''nonce-IAhUx8Tv3oajAaTgbJtGRA=='';
162 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 162 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
163 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 163 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
164 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 164 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -184,9 +184,9 @@ interactions:
184 X-Permitted-Cross-Domain-Policies: 184 X-Permitted-Cross-Domain-Policies:
185 - none 185 - none
186 X-Request-Id: 186 X-Request-Id:
187 - 436aa7ea-1e88-4c84-89dc-c9a0592210c0 187 - 1ecfe6fc-0306-42ed-b8d0-f8754df25598
188 X-Runtime: 188 X-Runtime:
189 - '0.008071' 189 - '0.008668'
190 X-XSS-Protection: 190 X-XSS-Protection:
191 - 1; mode=block 191 - 1; mode=block
192 status: 192 status:
@@ -208,10 +208,10 @@ interactions:
208 User-Agent: 208 User-Agent:
209 - tests/v311 209 - tests/v311
210 method: DELETE 210 method: DELETE
211 uri: http://localhost:3000/api/v1/statuses/109361414886671615 211 uri: http://localhost:3000/api/v1/statuses/109361459769276068
212 response: 212 response:
213 body: 213 body:
214 string: '{"id":"109361414886671615","created_at":"2022-11-17T22:06:01.334Z","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/109361414886671615","url":"http://localhost:3000/@mastodonpy_test/109361414886671615","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py 214 string: '{"id":"109361459769276068","created_at":"2022-11-17T22:17:26.188Z","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/109361459769276068","url":"http://localhost:3000/@mastodonpy_test/109361459769276068","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
215 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 215 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
216 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI 216 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI
217 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":6,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' 217 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":6,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'
@@ -221,7 +221,7 @@ interactions:
221 Content-Security-Policy: 221 Content-Security-Policy:
222 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 222 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
223 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 223 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
224 style-src ''self'' http://localhost:3000 ''nonce-qxtfoR4f93J/Fs22icd/Xg==''; 224 style-src ''self'' http://localhost:3000 ''nonce-Sfpe94MEQgrJN/hZFvxwhw=='';
225 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 225 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
226 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 226 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
227 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 227 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -231,7 +231,7 @@ interactions:
231 Content-Type: 231 Content-Type:
232 - application/json; charset=utf-8 232 - application/json; charset=utf-8
233 ETag: 233 ETag:
234 - W/"1a6201cb0015e79169fd5e55d46489a9" 234 - W/"c2d8f922e8eb602000135387e5911564"
235 Referrer-Policy: 235 Referrer-Policy:
236 - strict-origin-when-cross-origin 236 - strict-origin-when-cross-origin
237 Transfer-Encoding: 237 Transfer-Encoding:
@@ -247,9 +247,9 @@ interactions:
247 X-Permitted-Cross-Domain-Policies: 247 X-Permitted-Cross-Domain-Policies:
248 - none 248 - none
249 X-Request-Id: 249 X-Request-Id:
250 - 2cf29880-e9f0-4b0f-916b-295ba354a464 250 - e27e0bea-c422-4075-91c4-340c5122a7f5
251 X-Runtime: 251 X-Runtime:
252 - '0.022470' 252 - '0.032529'
253 X-XSS-Protection: 253 X-XSS-Protection:
254 - 1; mode=block 254 - 1; mode=block
255 status: 255 status:
diff --git a/tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl b/tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl
index afc3ad4..5d17146 100644
--- a/tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl
+++ b/tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl
Binary files differ
diff --git a/tests/cassettes/test_scheduled_status.yaml b/tests/cassettes/test_scheduled_status.yaml
index 2d860f0..74f35bb 100644
--- a/tests/cassettes/test_scheduled_status.yaml
+++ b/tests/cassettes/test_scheduled_status.yaml
@@ -20,7 +20,7 @@ interactions:
20 uri: http://localhost:3000/api/v1/statuses 20 uri: http://localhost:3000/api/v1/statuses
21 response: 21 response:
22 body: 22 body:
23 string: '{"id":"8","scheduled_at":"4000-01-01T14:33:14.000Z","params":{"text":"please 23 string: '{"id":"9","scheduled_at":"4000-01-01T14:33:14.000Z","params":{"text":"please
24 ensure adequate headroom","media_ids":null,"sensitive":null,"spoiler_text":null,"visibility":null,"language":null,"scheduled_at":null,"poll":null,"idempotency":null,"with_rate_limit":false,"in_reply_to_id":null,"application_id":1234567890123456},"media_attachments":[]}' 24 ensure adequate headroom","media_ids":null,"sensitive":null,"spoiler_text":null,"visibility":null,"language":null,"scheduled_at":null,"poll":null,"idempotency":null,"with_rate_limit":false,"in_reply_to_id":null,"application_id":1234567890123456},"media_attachments":[]}'
25 headers: 25 headers:
26 Cache-Control: 26 Cache-Control:
@@ -28,7 +28,7 @@ interactions:
28 Content-Security-Policy: 28 Content-Security-Policy:
29 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 29 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
30 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 30 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
31 style-src ''self'' http://localhost:3000 ''nonce-Ak/w6f2hbeF+tQDO2xwBNw==''; 31 style-src ''self'' http://localhost:3000 ''nonce-mI+p1n1hlWRvV9yfZhLVkg=='';
32 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 32 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
33 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 33 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
34 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 34 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -38,7 +38,7 @@ interactions:
38 Content-Type: 38 Content-Type:
39 - application/json; charset=utf-8 39 - application/json; charset=utf-8
40 ETag: 40 ETag:
41 - W/"1d6abb8ae5a6f0287532a204b61c688f" 41 - W/"df9312576ee1d523a31bb8070a7dea99"
42 Referrer-Policy: 42 Referrer-Policy:
43 - strict-origin-when-cross-origin 43 - strict-origin-when-cross-origin
44 Transfer-Encoding: 44 Transfer-Encoding:
@@ -56,13 +56,13 @@ interactions:
56 X-RateLimit-Limit: 56 X-RateLimit-Limit:
57 - '300' 57 - '300'
58 X-RateLimit-Remaining: 58 X-RateLimit-Remaining:
59 - '293' 59 - '294'
60 X-RateLimit-Reset: 60 X-RateLimit-Reset:
61 - '2022-11-17T21:00:00.743922Z' 61 - '2022-11-18T00:00:00.255658Z'
62 X-Request-Id: 62 X-Request-Id:
63 - 5e367318-8905-42f7-8b03-dfefef0b8544 63 - fa02dfcd-18c5-46fe-bd48-54be11183d28
64 X-Runtime: 64 X-Runtime:
65 - '0.025933' 65 - '0.017511'
66 X-XSS-Protection: 66 X-XSS-Protection:
67 - 1; mode=block 67 - 1; mode=block
68 status: 68 status:
@@ -86,10 +86,10 @@ interactions:
86 User-Agent: 86 User-Agent:
87 - tests/v311 87 - tests/v311
88 method: PUT 88 method: PUT
89 uri: http://localhost:3000/api/v1/scheduled_statuses/8 89 uri: http://localhost:3000/api/v1/scheduled_statuses/9
90 response: 90 response:
91 body: 91 body:
92 string: '{"id":"8","scheduled_at":"4000-01-01T14:23:14.000Z","params":{"poll":null,"text":"please 92 string: '{"id":"9","scheduled_at":"4000-01-01T14:23:14.000Z","params":{"poll":null,"text":"please
93 ensure adequate headroom","language":null,"media_ids":null,"sensitive":null,"visibility":null,"idempotency":null,"scheduled_at":null,"spoiler_text":null,"application_id":1234567890123456,"in_reply_to_id":null,"with_rate_limit":false},"media_attachments":[]}' 93 ensure adequate headroom","language":null,"media_ids":null,"sensitive":null,"visibility":null,"idempotency":null,"scheduled_at":null,"spoiler_text":null,"application_id":1234567890123456,"in_reply_to_id":null,"with_rate_limit":false},"media_attachments":[]}'
94 headers: 94 headers:
95 Cache-Control: 95 Cache-Control:
@@ -97,7 +97,7 @@ interactions:
97 Content-Security-Policy: 97 Content-Security-Policy:
98 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 98 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
99 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 99 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
100 style-src ''self'' http://localhost:3000 ''nonce-stvmuoKpti0sNxM89xxgZA==''; 100 style-src ''self'' http://localhost:3000 ''nonce-j2eVQtsSGbNcoL6aoVEiag=='';
101 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 101 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
102 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 102 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
103 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 103 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -107,7 +107,7 @@ interactions:
107 Content-Type: 107 Content-Type:
108 - application/json; charset=utf-8 108 - application/json; charset=utf-8
109 ETag: 109 ETag:
110 - W/"ef1f9f079ab2e1fc61e245067021a431" 110 - W/"812dc33d12d6657b6cf985c177f39d2a"
111 Referrer-Policy: 111 Referrer-Policy:
112 - strict-origin-when-cross-origin 112 - strict-origin-when-cross-origin
113 Transfer-Encoding: 113 Transfer-Encoding:
@@ -123,9 +123,9 @@ interactions:
123 X-Permitted-Cross-Domain-Policies: 123 X-Permitted-Cross-Domain-Policies:
124 - none 124 - none
125 X-Request-Id: 125 X-Request-Id:
126 - dcf2a73e-2c68-46d3-ad9d-691a830db5e1 126 - 4ea9551a-906c-483a-845e-e0f3ed9d8ac0
127 X-Runtime: 127 X-Runtime:
128 - '0.012105' 128 - '0.012714'
129 X-XSS-Protection: 129 X-XSS-Protection:
130 - 1; mode=block 130 - 1; mode=block
131 status: 131 status:
@@ -148,7 +148,7 @@ interactions:
148 uri: http://localhost:3000/api/v1/scheduled_statuses 148 uri: http://localhost:3000/api/v1/scheduled_statuses
149 response: 149 response:
150 body: 150 body:
151 string: '[{"id":"8","scheduled_at":"4000-01-01T14:23:14.000Z","params":{"poll":null,"text":"please 151 string: '[{"id":"9","scheduled_at":"4000-01-01T14:23:14.000Z","params":{"poll":null,"text":"please
152 ensure adequate headroom","language":null,"media_ids":null,"sensitive":null,"visibility":null,"idempotency":null,"scheduled_at":null,"spoiler_text":null,"application_id":1234567890123456,"in_reply_to_id":null,"with_rate_limit":false},"media_attachments":[]}]' 152 ensure adequate headroom","language":null,"media_ids":null,"sensitive":null,"visibility":null,"idempotency":null,"scheduled_at":null,"spoiler_text":null,"application_id":1234567890123456,"in_reply_to_id":null,"with_rate_limit":false},"media_attachments":[]}]'
153 headers: 153 headers:
154 Cache-Control: 154 Cache-Control:
@@ -156,7 +156,7 @@ interactions:
156 Content-Security-Policy: 156 Content-Security-Policy:
157 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 157 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
158 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 158 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
159 style-src ''self'' http://localhost:3000 ''nonce-uZuwulirf3GB1inWQ/FEBw==''; 159 style-src ''self'' http://localhost:3000 ''nonce-augTaTyLah4EtSJxDGKS2Q=='';
160 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 160 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
161 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 161 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
162 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 162 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -166,9 +166,9 @@ interactions:
166 Content-Type: 166 Content-Type:
167 - application/json; charset=utf-8 167 - application/json; charset=utf-8
168 ETag: 168 ETag:
169 - W/"53412585062018a03512cca034ff85d4" 169 - W/"a13ea511f7c3cc717d6f994632d73e88"
170 Link: 170 Link:
171 - <http://localhost:3000/api/v1/scheduled_statuses?min_id=8>; rel="prev" 171 - <http://localhost:3000/api/v1/scheduled_statuses?min_id=9>; rel="prev"
172 Referrer-Policy: 172 Referrer-Policy:
173 - strict-origin-when-cross-origin 173 - strict-origin-when-cross-origin
174 Transfer-Encoding: 174 Transfer-Encoding:
@@ -184,9 +184,9 @@ interactions:
184 X-Permitted-Cross-Domain-Policies: 184 X-Permitted-Cross-Domain-Policies:
185 - none 185 - none
186 X-Request-Id: 186 X-Request-Id:
187 - 4eab30ef-c087-4026-bcc5-22a0d80d5426 187 - 60917645-b2f3-402c-b4fe-32a8aa625ebb
188 X-Runtime: 188 X-Runtime:
189 - '0.007217' 189 - '0.007773'
190 X-XSS-Protection: 190 X-XSS-Protection:
191 - 1; mode=block 191 - 1; mode=block
192 status: 192 status:
@@ -206,10 +206,10 @@ interactions:
206 User-Agent: 206 User-Agent:
207 - tests/v311 207 - tests/v311
208 method: GET 208 method: GET
209 uri: http://localhost:3000/api/v1/scheduled_statuses/8 209 uri: http://localhost:3000/api/v1/scheduled_statuses/9
210 response: 210 response:
211 body: 211 body:
212 string: '{"id":"8","scheduled_at":"4000-01-01T14:23:14.000Z","params":{"poll":null,"text":"please 212 string: '{"id":"9","scheduled_at":"4000-01-01T14:23:14.000Z","params":{"poll":null,"text":"please
213 ensure adequate headroom","language":null,"media_ids":null,"sensitive":null,"visibility":null,"idempotency":null,"scheduled_at":null,"spoiler_text":null,"application_id":1234567890123456,"in_reply_to_id":null,"with_rate_limit":false},"media_attachments":[]}' 213 ensure adequate headroom","language":null,"media_ids":null,"sensitive":null,"visibility":null,"idempotency":null,"scheduled_at":null,"spoiler_text":null,"application_id":1234567890123456,"in_reply_to_id":null,"with_rate_limit":false},"media_attachments":[]}'
214 headers: 214 headers:
215 Cache-Control: 215 Cache-Control:
@@ -217,7 +217,7 @@ interactions:
217 Content-Security-Policy: 217 Content-Security-Policy:
218 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 218 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
219 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 219 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
220 style-src ''self'' http://localhost:3000 ''nonce-sDG/INd5trVXh399MBMRLg==''; 220 style-src ''self'' http://localhost:3000 ''nonce-ZMti6eUsNggtrYI0vZMLRg=='';
221 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 221 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
222 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 222 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
223 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 223 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -227,7 +227,7 @@ interactions:
227 Content-Type: 227 Content-Type:
228 - application/json; charset=utf-8 228 - application/json; charset=utf-8
229 ETag: 229 ETag:
230 - W/"ef1f9f079ab2e1fc61e245067021a431" 230 - W/"812dc33d12d6657b6cf985c177f39d2a"
231 Referrer-Policy: 231 Referrer-Policy:
232 - strict-origin-when-cross-origin 232 - strict-origin-when-cross-origin
233 Transfer-Encoding: 233 Transfer-Encoding:
@@ -243,9 +243,9 @@ interactions:
243 X-Permitted-Cross-Domain-Policies: 243 X-Permitted-Cross-Domain-Policies:
244 - none 244 - none
245 X-Request-Id: 245 X-Request-Id:
246 - 59c54621-0e4e-49e4-a78b-95bbedc22370 246 - bc1d183e-3f0c-4884-bace-4383fdf83843
247 X-Runtime: 247 X-Runtime:
248 - '0.006789' 248 - '0.007630'
249 X-XSS-Protection: 249 X-XSS-Protection:
250 - 1; mode=block 250 - 1; mode=block
251 status: 251 status:
@@ -267,7 +267,7 @@ interactions:
267 User-Agent: 267 User-Agent:
268 - tests/v311 268 - tests/v311
269 method: DELETE 269 method: DELETE
270 uri: http://localhost:3000/api/v1/scheduled_statuses/8 270 uri: http://localhost:3000/api/v1/scheduled_statuses/9
271 response: 271 response:
272 body: 272 body:
273 string: '{}' 273 string: '{}'
@@ -277,7 +277,7 @@ interactions:
277 Content-Security-Policy: 277 Content-Security-Policy:
278 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 278 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
279 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 279 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
280 style-src ''self'' http://localhost:3000 ''nonce-MxIQ3EKn0B1lCGfXe6p4Gg==''; 280 style-src ''self'' http://localhost:3000 ''nonce-2j6knk07w6b9MguUxpFt9w=='';
281 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 281 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
282 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 282 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
283 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 283 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -303,9 +303,9 @@ interactions:
303 X-Permitted-Cross-Domain-Policies: 303 X-Permitted-Cross-Domain-Policies:
304 - none 304 - none
305 X-Request-Id: 305 X-Request-Id:
306 - 47d7f0c0-e174-42f2-8506-86942fc5ebbf 306 - d07e6544-42a1-479b-98f3-cddadb05122e
307 X-Runtime: 307 X-Runtime:
308 - '0.010192' 308 - '0.010246'
309 X-XSS-Protection: 309 X-XSS-Protection:
310 - 1; mode=block 310 - 1; mode=block
311 status: 311 status:
@@ -335,7 +335,7 @@ interactions:
335 Content-Security-Policy: 335 Content-Security-Policy:
336 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 336 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
337 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 337 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
338 style-src ''self'' http://localhost:3000 ''nonce-vDFRE2ovp6xbVtXBXalZVw==''; 338 style-src ''self'' http://localhost:3000 ''nonce-SFhpwFFzcWA9fLPDtBRYrA=='';
339 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 339 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
340 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 340 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
341 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 341 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -361,16 +361,16 @@ interactions:
361 X-Permitted-Cross-Domain-Policies: 361 X-Permitted-Cross-Domain-Policies:
362 - none 362 - none
363 X-Request-Id: 363 X-Request-Id:
364 - c0a893ff-dde3-4bb4-ab03-8f4c70f26f22 364 - 650593a5-0f7f-45d9-9a3c-e94ed9a31622
365 X-Runtime: 365 X-Runtime:
366 - '0.007906' 366 - '0.006801'
367 X-XSS-Protection: 367 X-XSS-Protection:
368 - 1; mode=block 368 - 1; mode=block
369 status: 369 status:
370 code: 200 370 code: 200
371 message: OK 371 message: OK
372- request: 372- request:
373 body: status=please+ensure+adequate+headroom&scheduled_at=2022-11-17T19%3A58%3A07%2B00%3A00 373 body: status=please+ensure+adequate+headroom&scheduled_at=2022-11-17T22%3A18%3A00%2B00%3A00
374 headers: 374 headers:
375 Accept: 375 Accept:
376 - '*/*' 376 - '*/*'
@@ -390,18 +390,18 @@ interactions:
390 uri: http://localhost:3000/api/v1/statuses 390 uri: http://localhost:3000/api/v1/statuses
391 response: 391 response:
392 body: 392 body:
393 string: '{"id":"109360911667710470","created_at":"2022-11-17T19:58:02.822Z","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/109360911667710470","url":"http://localhost:3000/@mastodonpy_test/109360911667710470","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eplease 393 string: '{"id":"109361461679492770","created_at":"2022-11-17T22:17:55.335Z","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/109361461679492770","url":"http://localhost:3000/@mastodonpy_test/109361461679492770","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eplease
394 ensure adequate headroom\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py 394 ensure adequate headroom\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
395 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 395 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
396 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI 396 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI
397 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":6,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' 397 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":7,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'
398 headers: 398 headers:
399 Cache-Control: 399 Cache-Control:
400 - no-store 400 - no-store
401 Content-Security-Policy: 401 Content-Security-Policy:
402 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 402 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
403 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 403 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
404 style-src ''self'' http://localhost:3000 ''nonce-8OI7FZj2LTcg0sMTtFIKsQ==''; 404 style-src ''self'' http://localhost:3000 ''nonce-g0xyYi8hSYTV7gTXyr7jLA=='';
405 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 405 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
406 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 406 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
407 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 407 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -411,7 +411,7 @@ interactions:
411 Content-Type: 411 Content-Type:
412 - application/json; charset=utf-8 412 - application/json; charset=utf-8
413 ETag: 413 ETag:
414 - W/"3a893eeef2d4aae154d54e233344b05b" 414 - W/"e147cc54de07c0284263b0fc95f4e1b6"
415 Referrer-Policy: 415 Referrer-Policy:
416 - strict-origin-when-cross-origin 416 - strict-origin-when-cross-origin
417 Transfer-Encoding: 417 Transfer-Encoding:
@@ -429,13 +429,13 @@ interactions:
429 X-RateLimit-Limit: 429 X-RateLimit-Limit:
430 - '300' 430 - '300'
431 X-RateLimit-Remaining: 431 X-RateLimit-Remaining:
432 - '292' 432 - '293'
433 X-RateLimit-Reset: 433 X-RateLimit-Reset:
434 - '2022-11-17T21:00:00.845464Z' 434 - '2022-11-18T00:00:00.355035Z'
435 X-Request-Id: 435 X-Request-Id:
436 - 1b2f8591-6ff0-4d1e-8ac7-a2ac1f1fe25a 436 - 15ee4c66-8ed9-475b-aae7-61d8f77c119e
437 X-Runtime: 437 X-Runtime:
438 - '0.034573' 438 - '0.031334'
439 X-XSS-Protection: 439 X-XSS-Protection:
440 - 1; mode=block 440 - 1; mode=block
441 status: 441 status:
@@ -458,30 +458,34 @@ interactions:
458 uri: http://localhost:3000/api/v1/timelines/home 458 uri: http://localhost:3000/api/v1/timelines/home
459 response: 459 response:
460 body: 460 body:
461 string: '[{"id":"109360911667710470","created_at":"2022-11-17T19:58:02.822Z","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/109360911667710470","url":"http://localhost:3000/@mastodonpy_test/109360911667710470","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eplease 461 string: '[{"id":"109361461679492770","created_at":"2022-11-17T22:17:55.335Z","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/109361461679492770","url":"http://localhost:3000/@mastodonpy_test/109361461679492770","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eplease
462 ensure adequate headroom\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
463 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
464 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI
465 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":7,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"109360911667710470","created_at":"2022-11-17T19:58:02.822Z","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/109360911667710470","url":"http://localhost:3000/@mastodonpy_test/109360911667710470","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eplease
462 ensure adequate headroom\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py 466 ensure adequate headroom\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
463 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 467 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
464 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI 468 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI
465 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":6,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"109360904113799391","created_at":"2022-11-17T19:56:07.558Z","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/109360904113799391","url":"http://localhost:3000/@mastodonpy_test/109360904113799391","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eplease 469 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":7,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"109360904113799391","created_at":"2022-11-17T19:56:07.558Z","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/109360904113799391","url":"http://localhost:3000/@mastodonpy_test/109360904113799391","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eplease
466 ensure adequate headroom\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py 470 ensure adequate headroom\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
467 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 471 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
468 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI 472 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI
469 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":6,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"109360579914087110","created_at":"2022-11-17T18:33:40.663Z","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/109360579914087110","url":"http://localhost:3000/@mastodonpy_test/109360579914087110","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eplease 473 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":7,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"109360579914087110","created_at":"2022-11-17T18:33:40.663Z","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/109360579914087110","url":"http://localhost:3000/@mastodonpy_test/109360579914087110","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eplease
470 ensure adequate headroom\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py 474 ensure adequate headroom\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
471 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 475 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
472 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI 476 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI
473 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":6,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"109337450437842705","created_at":"2022-11-13T16:31:32.863Z","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/109337450437842705","url":"http://localhost:3000/@mastodonpy_test/109337450437842705","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 477 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":7,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"109337450437842705","created_at":"2022-11-13T16:31:32.863Z","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/109337450437842705","url":"http://localhost:3000/@mastodonpy_test/109337450437842705","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
474 cool guy\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py 478 cool guy\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
475 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 479 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
476 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI 480 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI
477 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":6,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}]' 481 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":7,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}]'
478 headers: 482 headers:
479 Cache-Control: 483 Cache-Control:
480 - no-store 484 - no-store
481 Content-Security-Policy: 485 Content-Security-Policy:
482 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 486 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
483 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 487 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
484 style-src ''self'' http://localhost:3000 ''nonce-HMi+VW9f5rE0rG5Dy5SF5Q==''; 488 style-src ''self'' http://localhost:3000 ''nonce-nUEebsODmCE7ng8X4Pz5sg=='';
485 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 489 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
486 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 490 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
487 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 491 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -491,10 +495,10 @@ interactions:
491 Content-Type: 495 Content-Type:
492 - application/json; charset=utf-8 496 - application/json; charset=utf-8
493 ETag: 497 ETag:
494 - W/"a4a8a28faa3eb838f93ff309d4642aa1" 498 - W/"04b7ad9544aeb414f400cc16cb7f663e"
495 Link: 499 Link:
496 - <http://localhost:3000/api/v1/timelines/home?max_id=109337450437842705>; rel="next", 500 - <http://localhost:3000/api/v1/timelines/home?max_id=109337450437842705>; rel="next",
497 <http://localhost:3000/api/v1/timelines/home?min_id=109360911667710470>; rel="prev" 501 <http://localhost:3000/api/v1/timelines/home?min_id=109361461679492770>; rel="prev"
498 Referrer-Policy: 502 Referrer-Policy:
499 - strict-origin-when-cross-origin 503 - strict-origin-when-cross-origin
500 Transfer-Encoding: 504 Transfer-Encoding:
@@ -510,9 +514,9 @@ interactions:
510 X-Permitted-Cross-Domain-Policies: 514 X-Permitted-Cross-Domain-Policies:
511 - none 515 - none
512 X-Request-Id: 516 X-Request-Id:
513 - 5c53a97d-095f-4fbc-af8a-71d8d6147dc6 517 - 6f1bfa0f-63d7-4f9b-bbe9-a2d626413970
514 X-Runtime: 518 X-Runtime:
515 - '0.037492' 519 - '0.037135'
516 X-XSS-Protection: 520 X-XSS-Protection:
517 - 1; mode=block 521 - 1; mode=block
518 status: 522 status:
@@ -542,7 +546,7 @@ interactions:
542 Content-Security-Policy: 546 Content-Security-Policy:
543 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 547 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
544 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 548 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
545 style-src ''self'' http://localhost:3000 ''nonce-nfIWTN6yir29ewBAXPSIVg==''; 549 style-src ''self'' http://localhost:3000 ''nonce-EWPfc+xRbq+wOuc8PARDLQ=='';
546 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 550 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
547 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 551 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
548 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 552 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -568,9 +572,9 @@ interactions:
568 X-Permitted-Cross-Domain-Policies: 572 X-Permitted-Cross-Domain-Policies:
569 - none 573 - none
570 X-Request-Id: 574 X-Request-Id:
571 - 14c0b629-2a90-4f51-90cf-afebf89e3456 575 - 794ebf4e-add3-4ba3-965a-b98334fa058f
572 X-Runtime: 576 X-Runtime:
573 - '0.008067' 577 - '0.007638'
574 X-XSS-Protection: 578 X-XSS-Protection:
575 - 1; mode=block 579 - 1; mode=block
576 status: 580 status:
diff --git a/tests/cassettes/test_scheduled_status_datetimeobjects.pkl b/tests/cassettes/test_scheduled_status_datetimeobjects.pkl
index ee0e5fc..efe6e3d 100644
--- a/tests/cassettes/test_scheduled_status_datetimeobjects.pkl
+++ b/tests/cassettes/test_scheduled_status_datetimeobjects.pkl
Binary files differ
diff --git a/tests/test_status.py b/tests/test_status.py
index f45634f..5c139e6 100644
--- a/tests/test_status.py
+++ b/tests/test_status.py
@@ -176,10 +176,10 @@ def test_scheduled_status(api):
176 assert not scheduled_toot_2.id in map(lambda x: x.id, scheduled_toot_list_2) 176 assert not scheduled_toot_2.id in map(lambda x: x.id, scheduled_toot_list_2)
177 177
178 if os.path.exists("tests/cassettes/test_scheduled_status_datetimeobjects.pkl"): 178 if os.path.exists("tests/cassettes/test_scheduled_status_datetimeobjects.pkl"):
179 the_very_immediate_future = pickle.load(open("tests/cassettes/test_scheduled_status_datetimeobjects.pkl", 'rb')) 179 the_very_immediate_future = datetime.datetime.fromtimestamp(pickle.load(open("tests/cassettes/test_scheduled_status_datetimeobjects.pkl", 'rb')))
180 else: 180 else:
181 the_very_immediate_future = datetime.datetime.now() + datetime.timedelta(seconds=5) 181 the_very_immediate_future = datetime.datetime.now() + datetime.timedelta(seconds=5)
182 pickle.dump(the_very_immediate_future, open("tests/cassettes/test_scheduled_status_datetimeobjects.pkl", 'wb')) 182 pickle.dump(the_very_immediate_future.timestamp(), open("tests/cassettes/test_scheduled_status_datetimeobjects.pkl", 'wb'))
183 scheduled_toot_4 = api.status_post("please ensure adequate headroom", scheduled_at=the_very_immediate_future) 183 scheduled_toot_4 = api.status_post("please ensure adequate headroom", scheduled_at=the_very_immediate_future)
184 time.sleep(15) 184 time.sleep(15)
185 statuses = api.timeline_home() 185 statuses = api.timeline_home()
diff --git a/tests/test_timeline.py b/tests/test_timeline.py
index 14b7703..bc6728f 100644
--- a/tests/test_timeline.py
+++ b/tests/test_timeline.py
@@ -82,10 +82,9 @@ def test_min_max_id(api, status):
82def test_min_max_id_datetimes(api, status): 82def test_min_max_id_datetimes(api, status):
83 if os.path.exists("tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl"): 83 if os.path.exists("tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl"):
84 data_dict = pickle.load(open("tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl", 'rb')) 84 data_dict = pickle.load(open("tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl", 'rb'))
85 the_past = data_dict["the_past"] 85 the_past = datetime.datetime.fromtimestamp(data_dict["the_past"])
86 the_future = data_dict["the_future"] 86 the_future = datetime.datetime.fromtimestamp(data_dict["the_future"])
87 the_far_future = data_dict["the_far_future"] 87 the_far_future = datetime.datetime.fromtimestamp(data_dict["the_far_future"])
88 print("restoring from dict\n", the_past, the_future, the_far_future)
89 else: 88 else:
90 epoch_time = datetime.datetime.now().timestamp() 89 epoch_time = datetime.datetime.now().timestamp()
91 now = datetime.datetime.fromtimestamp(epoch_time) 90 now = datetime.datetime.fromtimestamp(epoch_time)
@@ -93,9 +92,9 @@ def test_min_max_id_datetimes(api, status):
93 the_future = now + datetime.timedelta(seconds=20) 92 the_future = now + datetime.timedelta(seconds=20)
94 the_far_future = now + datetime.timedelta(seconds=40) 93 the_far_future = now + datetime.timedelta(seconds=40)
95 pickle.dump({ 94 pickle.dump({
96 "the_past": the_past, 95 "the_past": the_past.timestamp(),
97 "the_future": the_future, 96 "the_future": the_future.timestamp(),
98 "the_far_future": the_far_future, 97 "the_far_future": the_far_future.timestamp(),
99 }, open("tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl", 'wb')) 98 }, open("tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl", 'wb'))
100 99
101 time.sleep(3) 100 time.sleep(3)
Powered by cgit v1.2.3 (git 2.41.0)