From b1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2 Mon Sep 17 00:00:00 2001 From: halcy Date: Sun, 13 Nov 2022 15:33:10 +0200 Subject: Add support for timed mutes, fix tests to actually pass with new setup --- tests/cassettes/test_poll_illegal_vote.yaml | 30 ++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'tests/cassettes/test_poll_illegal_vote.yaml') diff --git a/tests/cassettes/test_poll_illegal_vote.yaml b/tests/cassettes/test_poll_illegal_vote.yaml index 1d7b8ac..5a735d1 100644 --- a/tests/cassettes/test_poll_illegal_vote.yaml +++ b/tests/cassettes/test_poll_illegal_vote.yaml @@ -21,8 +21,8 @@ interactions: uri: http://localhost:3000/api/v1/statuses response: body: - string: '{"id":"109304276106259799","created_at":"2022-11-07T19:54:52.741Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/109304276106259799","url":"http://localhost:3000/@admin/109304276106259799","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003enice\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"109304268902557892","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2022-11-07","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":{"id":"2","expires_at":"2022-11-07T19:59:52.738Z","expired":false,"multiple":false,"votes_count":0,"voters_count":0,"voted":true,"own_votes":[],"options":[{"title":"four + string: '{"id":"109336679609194893","created_at":"2022-11-13T13:15:30.952Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/109336679609194893","url":"http://localhost:3000/@admin/109336679609194893","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003enice\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py + test suite","website":null},"account":{"id":"109336623096259500","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2022-11-13","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":{"id":"2","expires_at":"2022-11-13T13:20:30.950Z","expired":false,"multiple":false,"votes_count":0,"voters_count":0,"voted":true,"own_votes":[],"options":[{"title":"four twenty","votes_count":0},{"title":"sixty-nine","votes_count":0}],"emojis":[]}}' headers: Cache-Control: @@ -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-KWtaFOwK0GCoht8tJcrpUQ==''; + style-src ''self'' http://localhost:3000 ''nonce-4n1sX8WvMpcRfALAUCruZA==''; 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/"3e6460cb19416fd3a27d2afd2227ef87" + - W/"06701bce687d73c24fc562cdca414618" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -60,11 +60,11 @@ interactions: X-RateLimit-Remaining: - '295' X-RateLimit-Reset: - - '2022-11-07T21:00:00.772229Z' + - '2022-11-13T15:00:00.974768Z' X-Request-Id: - - b0177276-2836-419a-ae28-c7bad38f76c9 + - fafdc5a9-1922-4943-9aa2-eb2064046fc1 X-Runtime: - - '0.054317' + - '0.035297' X-XSS-Protection: - 1; mode=block status: @@ -91,7 +91,7 @@ interactions: uri: http://localhost:3000/api/v1/polls/2/votes response: body: - string: '{"id":"2","expires_at":"2022-11-07T19:59:52.738Z","expired":false,"multiple":false,"votes_count":1,"voters_count":1,"voted":true,"own_votes":[1],"options":[{"title":"four + string: '{"id":"2","expires_at":"2022-11-13T13:20:30.950Z","expired":false,"multiple":false,"votes_count":1,"voters_count":1,"voted":true,"own_votes":[1],"options":[{"title":"four twenty","votes_count":0},{"title":"sixty-nine","votes_count":1}],"emojis":[]}' headers: Cache-Control: @@ -99,7 +99,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-wNJ/EbJ5E1jFxYNJdQrOkg==''; + style-src ''self'' http://localhost:3000 ''nonce-xX/EGFcHLrTBz8cxPFdECg==''; 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 @@ -109,7 +109,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"b076985dc7b872bb2ab766a6e8218a39" + - W/"0bb8cffedaaf980a8e1059c8dc2c6ec1" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -125,9 +125,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 962f99b8-14dc-4b84-82b3-141cc9bd74d1 + - fb1e8eed-b020-49e7-af57-5c27e9567734 X-Runtime: - - '0.026520' + - '0.022584' X-XSS-Protection: - 1; mode=block status: @@ -162,7 +162,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-ngEU5rwwKi6kHyZ1TkIQtg==''; + style-src ''self'' http://localhost:3000 ''nonce-mxpafiWXtzNWrRrgMcwOJw==''; 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 @@ -186,9 +186,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 290065a6-737d-4655-a8ec-3986f0cda68d + - 7208d4a6-ffad-4511-8630-a8968ad1a00d X-Runtime: - - '0.681554' + - '0.635120' X-XSS-Protection: - 1; mode=block status: -- cgit v1.2.3