From c122f1531f03b16316fd8532cffd92f65705d56b Mon Sep 17 00:00:00 2001 From: halcy Date: Fri, 18 Nov 2022 00:19:17 +0200 Subject: Maybe fix test TZ issues --- tests/cassettes/test_min_max_id_datetimes.yaml | 50 ++++----- .../test_min_max_id_datetimes_datetimeobjects.pkl | Bin 136 -> 84 bytes tests/cassettes/test_scheduled_status.yaml | 112 +++++++++++---------- .../test_scheduled_status_datetimeobjects.pkl | Bin 53 -> 21 bytes tests/test_status.py | 4 +- tests/test_timeline.py | 13 ++- 6 files changed, 91 insertions(+), 88 deletions(-) (limited to 'tests') 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: uri: http://localhost:3000/api/v1/statuses response: body: - 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 + 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 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI 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: Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-zdbQSwbx4iw16vSozkEaBw==''; + style-src ''self'' http://localhost:3000 ''nonce-3i41EcZdrZvb3525PmXeyw==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -40,7 +40,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"df3c2de04c21d605b95386d3e8dfd158" + - W/"2e520c1fd5d370139af87e0798956824" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -58,13 +58,13 @@ interactions: X-RateLimit-Limit: - '300' X-RateLimit-Remaining: - - '295' + - '294' X-RateLimit-Reset: - - '2022-11-18T00:00:00.353667Z' + - '2022-11-18T00:00:00.209865Z' X-Request-Id: - - e332cfa8-a612-45f2-804c-1c3277fd8b1c + - b685adcc-5bc1-47b7-aaee-9f6b9bd1203d X-Runtime: - - '0.032788' + - '0.039480' X-XSS-Protection: - 1; mode=block status: @@ -84,10 +84,10 @@ interactions: User-Agent: - tests/v311 method: GET - uri: http://localhost:3000/api/v1/timelines/home?max_id=109361416175616000&min_id=109361413554176000 + uri: http://localhost:3000/api/v1/timelines/home?max_id=109361461067776000&min_id=109361458446336000 response: body: - 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 + 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 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI 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: Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-2KxFxB3gPWoSTIQQOcj+Yg==''; + style-src ''self'' http://localhost:3000 ''nonce-hHFjpXtdrPDaDwcOKfHaeg==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -107,10 +107,10 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"587b4daea4aea69b51dc4985d33293bc" + - W/"0675f531431a1a5e7cbddf1ca1dadcbe" Link: - - ; rel="next", - ; rel="prev" + - ; rel="next", + ; rel="prev" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -126,9 +126,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - cce9e9fa-1662-4415-aef7-2b42f239eec2 + - e4e00d82-ef82-40dc-b030-79dc1acbaa6c X-Runtime: - - '0.021393' + - '0.022892' X-XSS-Protection: - 1; mode=block status: @@ -148,7 +148,7 @@ interactions: User-Agent: - tests/v311 method: GET - uri: http://localhost:3000/api/v1/timelines/home?max_id=109361417486336000&min_id=109361416175616000 + uri: http://localhost:3000/api/v1/timelines/home?max_id=109361462378496000&min_id=109361461067776000 response: body: string: '[]' @@ -158,7 +158,7 @@ interactions: Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-IUhdTTDwet1ZMyN0WYNkbA==''; + style-src ''self'' http://localhost:3000 ''nonce-IAhUx8Tv3oajAaTgbJtGRA==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -184,9 +184,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 436aa7ea-1e88-4c84-89dc-c9a0592210c0 + - 1ecfe6fc-0306-42ed-b8d0-f8754df25598 X-Runtime: - - '0.008071' + - '0.008668' X-XSS-Protection: - 1; mode=block status: @@ -208,10 +208,10 @@ interactions: User-Agent: - tests/v311 method: DELETE - uri: http://localhost:3000/api/v1/statuses/109361414886671615 + uri: http://localhost:3000/api/v1/statuses/109361459769276068 response: body: - 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 + 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 test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI 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: Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-qxtfoR4f93J/Fs22icd/Xg==''; + style-src ''self'' http://localhost:3000 ''nonce-Sfpe94MEQgrJN/hZFvxwhw==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -231,7 +231,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"1a6201cb0015e79169fd5e55d46489a9" + - W/"c2d8f922e8eb602000135387e5911564" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -247,9 +247,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 2cf29880-e9f0-4b0f-916b-295ba354a464 + - e27e0bea-c422-4075-91c4-340c5122a7f5 X-Runtime: - - '0.022470' + - '0.032529' X-XSS-Protection: - 1; mode=block 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 Binary files a/tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl and b/tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl 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: uri: http://localhost:3000/api/v1/statuses response: body: - string: '{"id":"8","scheduled_at":"4000-01-01T14:33:14.000Z","params":{"text":"please + string: '{"id":"9","scheduled_at":"4000-01-01T14:33:14.000Z","params":{"text":"please 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":[]}' headers: Cache-Control: @@ -28,7 +28,7 @@ interactions: Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-Ak/w6f2hbeF+tQDO2xwBNw==''; + style-src ''self'' http://localhost:3000 ''nonce-mI+p1n1hlWRvV9yfZhLVkg==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -38,7 +38,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"1d6abb8ae5a6f0287532a204b61c688f" + - W/"df9312576ee1d523a31bb8070a7dea99" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -56,13 +56,13 @@ interactions: X-RateLimit-Limit: - '300' X-RateLimit-Remaining: - - '293' + - '294' X-RateLimit-Reset: - - '2022-11-17T21:00:00.743922Z' + - '2022-11-18T00:00:00.255658Z' X-Request-Id: - - 5e367318-8905-42f7-8b03-dfefef0b8544 + - fa02dfcd-18c5-46fe-bd48-54be11183d28 X-Runtime: - - '0.025933' + - '0.017511' X-XSS-Protection: - 1; mode=block status: @@ -86,10 +86,10 @@ interactions: User-Agent: - tests/v311 method: PUT - uri: http://localhost:3000/api/v1/scheduled_statuses/8 + uri: http://localhost:3000/api/v1/scheduled_statuses/9 response: body: - string: '{"id":"8","scheduled_at":"4000-01-01T14:23:14.000Z","params":{"poll":null,"text":"please + string: '{"id":"9","scheduled_at":"4000-01-01T14:23:14.000Z","params":{"poll":null,"text":"please 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":[]}' headers: Cache-Control: @@ -97,7 +97,7 @@ interactions: Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-stvmuoKpti0sNxM89xxgZA==''; + style-src ''self'' http://localhost:3000 ''nonce-j2eVQtsSGbNcoL6aoVEiag==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -107,7 +107,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"ef1f9f079ab2e1fc61e245067021a431" + - W/"812dc33d12d6657b6cf985c177f39d2a" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -123,9 +123,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - dcf2a73e-2c68-46d3-ad9d-691a830db5e1 + - 4ea9551a-906c-483a-845e-e0f3ed9d8ac0 X-Runtime: - - '0.012105' + - '0.012714' X-XSS-Protection: - 1; mode=block status: @@ -148,7 +148,7 @@ interactions: uri: http://localhost:3000/api/v1/scheduled_statuses response: body: - string: '[{"id":"8","scheduled_at":"4000-01-01T14:23:14.000Z","params":{"poll":null,"text":"please + string: '[{"id":"9","scheduled_at":"4000-01-01T14:23:14.000Z","params":{"poll":null,"text":"please 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":[]}]' headers: Cache-Control: @@ -156,7 +156,7 @@ interactions: Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-uZuwulirf3GB1inWQ/FEBw==''; + style-src ''self'' http://localhost:3000 ''nonce-augTaTyLah4EtSJxDGKS2Q==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -166,9 +166,9 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"53412585062018a03512cca034ff85d4" + - W/"a13ea511f7c3cc717d6f994632d73e88" Link: - - ; rel="prev" + - ; rel="prev" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -184,9 +184,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 4eab30ef-c087-4026-bcc5-22a0d80d5426 + - 60917645-b2f3-402c-b4fe-32a8aa625ebb X-Runtime: - - '0.007217' + - '0.007773' X-XSS-Protection: - 1; mode=block status: @@ -206,10 +206,10 @@ interactions: User-Agent: - tests/v311 method: GET - uri: http://localhost:3000/api/v1/scheduled_statuses/8 + uri: http://localhost:3000/api/v1/scheduled_statuses/9 response: body: - string: '{"id":"8","scheduled_at":"4000-01-01T14:23:14.000Z","params":{"poll":null,"text":"please + string: '{"id":"9","scheduled_at":"4000-01-01T14:23:14.000Z","params":{"poll":null,"text":"please 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":[]}' headers: Cache-Control: @@ -217,7 +217,7 @@ interactions: Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-sDG/INd5trVXh399MBMRLg==''; + style-src ''self'' http://localhost:3000 ''nonce-ZMti6eUsNggtrYI0vZMLRg==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -227,7 +227,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"ef1f9f079ab2e1fc61e245067021a431" + - W/"812dc33d12d6657b6cf985c177f39d2a" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -243,9 +243,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 59c54621-0e4e-49e4-a78b-95bbedc22370 + - bc1d183e-3f0c-4884-bace-4383fdf83843 X-Runtime: - - '0.006789' + - '0.007630' X-XSS-Protection: - 1; mode=block status: @@ -267,7 +267,7 @@ interactions: User-Agent: - tests/v311 method: DELETE - uri: http://localhost:3000/api/v1/scheduled_statuses/8 + uri: http://localhost:3000/api/v1/scheduled_statuses/9 response: body: string: '{}' @@ -277,7 +277,7 @@ interactions: Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-MxIQ3EKn0B1lCGfXe6p4Gg==''; + style-src ''self'' http://localhost:3000 ''nonce-2j6knk07w6b9MguUxpFt9w==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -303,9 +303,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 47d7f0c0-e174-42f2-8506-86942fc5ebbf + - d07e6544-42a1-479b-98f3-cddadb05122e X-Runtime: - - '0.010192' + - '0.010246' X-XSS-Protection: - 1; mode=block status: @@ -335,7 +335,7 @@ interactions: Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-vDFRE2ovp6xbVtXBXalZVw==''; + style-src ''self'' http://localhost:3000 ''nonce-SFhpwFFzcWA9fLPDtBRYrA==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -361,16 +361,16 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - c0a893ff-dde3-4bb4-ab03-8f4c70f26f22 + - 650593a5-0f7f-45d9-9a3c-e94ed9a31622 X-Runtime: - - '0.007906' + - '0.006801' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK - request: - body: status=please+ensure+adequate+headroom&scheduled_at=2022-11-17T19%3A58%3A07%2B00%3A00 + body: status=please+ensure+adequate+headroom&scheduled_at=2022-11-17T22%3A18%3A00%2B00%3A00 headers: Accept: - '*/*' @@ -390,18 +390,18 @@ interactions: uri: http://localhost:3000/api/v1/statuses response: body: - 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 + 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 ensure adequate headroom\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI - 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}' + 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}' headers: Cache-Control: - no-store Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-8OI7FZj2LTcg0sMTtFIKsQ==''; + style-src ''self'' http://localhost:3000 ''nonce-g0xyYi8hSYTV7gTXyr7jLA==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -411,7 +411,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"3a893eeef2d4aae154d54e233344b05b" + - W/"e147cc54de07c0284263b0fc95f4e1b6" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -429,13 +429,13 @@ interactions: X-RateLimit-Limit: - '300' X-RateLimit-Remaining: - - '292' + - '293' X-RateLimit-Reset: - - '2022-11-17T21:00:00.845464Z' + - '2022-11-18T00:00:00.355035Z' X-Request-Id: - - 1b2f8591-6ff0-4d1e-8ac7-a2ac1f1fe25a + - 15ee4c66-8ed9-475b-aae7-61d8f77c119e X-Runtime: - - '0.034573' + - '0.031334' X-XSS-Protection: - 1; mode=block status: @@ -458,30 +458,34 @@ interactions: uri: http://localhost:3000/api/v1/timelines/home response: body: - 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 + 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 + ensure adequate headroom\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py + test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John + Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI + 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 ensure adequate headroom\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI - 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 + 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 ensure adequate headroom\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI - 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 + 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 ensure adequate headroom\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI - 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 + 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 cool guy\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI - 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}]' + 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}]' headers: Cache-Control: - no-store Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-HMi+VW9f5rE0rG5Dy5SF5Q==''; + style-src ''self'' http://localhost:3000 ''nonce-nUEebsODmCE7ng8X4Pz5sg==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -491,10 +495,10 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"a4a8a28faa3eb838f93ff309d4642aa1" + - W/"04b7ad9544aeb414f400cc16cb7f663e" Link: - ; rel="next", - ; rel="prev" + ; rel="prev" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -510,9 +514,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 5c53a97d-095f-4fbc-af8a-71d8d6147dc6 + - 6f1bfa0f-63d7-4f9b-bbe9-a2d626413970 X-Runtime: - - '0.037492' + - '0.037135' X-XSS-Protection: - 1; mode=block status: @@ -542,7 +546,7 @@ interactions: Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-nfIWTN6yir29ewBAXPSIVg==''; + style-src ''self'' http://localhost:3000 ''nonce-EWPfc+xRbq+wOuc8PARDLQ==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -568,9 +572,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 14c0b629-2a90-4f51-90cf-afebf89e3456 + - 794ebf4e-add3-4ba3-965a-b98334fa058f X-Runtime: - - '0.008067' + - '0.007638' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/cassettes/test_scheduled_status_datetimeobjects.pkl b/tests/cassettes/test_scheduled_status_datetimeobjects.pkl index ee0e5fc..efe6e3d 100644 Binary files a/tests/cassettes/test_scheduled_status_datetimeobjects.pkl and b/tests/cassettes/test_scheduled_status_datetimeobjects.pkl 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): assert not scheduled_toot_2.id in map(lambda x: x.id, scheduled_toot_list_2) if os.path.exists("tests/cassettes/test_scheduled_status_datetimeobjects.pkl"): - the_very_immediate_future = pickle.load(open("tests/cassettes/test_scheduled_status_datetimeobjects.pkl", 'rb')) + the_very_immediate_future = datetime.datetime.fromtimestamp(pickle.load(open("tests/cassettes/test_scheduled_status_datetimeobjects.pkl", 'rb'))) else: the_very_immediate_future = datetime.datetime.now() + datetime.timedelta(seconds=5) - pickle.dump(the_very_immediate_future, open("tests/cassettes/test_scheduled_status_datetimeobjects.pkl", 'wb')) + pickle.dump(the_very_immediate_future.timestamp(), open("tests/cassettes/test_scheduled_status_datetimeobjects.pkl", 'wb')) scheduled_toot_4 = api.status_post("please ensure adequate headroom", scheduled_at=the_very_immediate_future) time.sleep(15) 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): def test_min_max_id_datetimes(api, status): if os.path.exists("tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl"): data_dict = pickle.load(open("tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl", 'rb')) - the_past = data_dict["the_past"] - the_future = data_dict["the_future"] - the_far_future = data_dict["the_far_future"] - print("restoring from dict\n", the_past, the_future, the_far_future) + the_past = datetime.datetime.fromtimestamp(data_dict["the_past"]) + the_future = datetime.datetime.fromtimestamp(data_dict["the_future"]) + the_far_future = datetime.datetime.fromtimestamp(data_dict["the_far_future"]) else: epoch_time = datetime.datetime.now().timestamp() now = datetime.datetime.fromtimestamp(epoch_time) @@ -93,9 +92,9 @@ def test_min_max_id_datetimes(api, status): the_future = now + datetime.timedelta(seconds=20) the_far_future = now + datetime.timedelta(seconds=40) pickle.dump({ - "the_past": the_past, - "the_future": the_future, - "the_far_future": the_far_future, + "the_past": the_past.timestamp(), + "the_future": the_future.timestamp(), + "the_far_future": the_far_future.timestamp(), }, open("tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl", 'wb')) time.sleep(3) -- cgit v1.2.3