From 0e00fced99976d74e972a3c9ca5b762697840a33 Mon Sep 17 00:00:00 2001 From: halcy Date: Sun, 13 Nov 2022 16:16:29 +0200 Subject: fix tests --- tests/cassettes/test_follow_suggestions.yaml | 74 ++++++++++++++-------------- 1 file changed, 37 insertions(+), 37 deletions(-) (limited to 'tests/cassettes/test_follow_suggestions.yaml') diff --git a/tests/cassettes/test_follow_suggestions.yaml b/tests/cassettes/test_follow_suggestions.yaml index b3e57a8..8f84abc 100644 --- a/tests/cassettes/test_follow_suggestions.yaml +++ b/tests/cassettes/test_follow_suggestions.yaml @@ -20,17 +20,17 @@ interactions: uri: http://localhost:3000/api/v1/statuses response: body: - string: '{"id":"109336676011335007","created_at":"2022-11-13T13:14:36.076Z","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/109336676011335007","url":"http://localhost:3000/@mastodonpy_test/109336676011335007","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":"109336623311102204","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John + string: '{"id":"109336902393975125","created_at":"2022-11-13T14:12:10.377Z","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/109336902393975125","url":"http://localhost:3000/@mastodonpy_test/109336902393975125","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":"109336899193569236","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/336/623/311/102/204/original/8f758332953652da.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/336/623/311/102/204/original/8f758332953652da.jpg","header":"http://localhost:3000/system/accounts/headers/109/336/623/311/102/204/original/c7470bf076df1e55.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/336/623/311/102/204/original/c7470bf076df1e55.jpg","followers_count":0,"following_count":0,"statuses_count":1,"last_status_at":"2022-11-13","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/336/899/193/569/236/original/e639fe005819e5b9.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/336/899/193/569/236/original/e639fe005819e5b9.jpg","header":"http://localhost:3000/system/accounts/headers/109/336/899/193/569/236/original/26075346d9e9e361.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/336/899/193/569/236/original/26075346d9e9e361.jpg","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2022-11-13","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-vzytf7WURapFcKqqc+NW2Q==''; + style-src ''self'' http://localhost:3000 ''nonce-mirUNY9+gtR5i/rG4PKTuw==''; 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/"108c96498da181654b6afb66c64cc975" + - W/"e893e24860d66a0eb36d53a791d48742" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -60,11 +60,11 @@ interactions: X-RateLimit-Remaining: - '297' X-RateLimit-Reset: - - '2022-11-13T15:00:00.139708Z' + - '2022-11-13T15:00:00.396981Z' X-Request-Id: - - 0a4710a6-982b-4739-aad3-29a3e3f1493c + - fb8d254d-6431-4eb1-9760-fd4a2953ce93 X-Runtime: - - '0.124726' + - '0.031390' X-XSS-Protection: - 1; mode=block status: @@ -86,20 +86,20 @@ interactions: User-Agent: - tests/v311 method: POST - uri: http://localhost:3000/api/v1/statuses/109336676011335007/favourite + uri: http://localhost:3000/api/v1/statuses/109336902393975125/favourite response: body: - string: '{"id":"109336676011335007","created_at":"2022-11-13T13:14:36.076Z","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/109336676011335007","url":"http://localhost:3000/@mastodonpy_test/109336676011335007","replies_count":0,"reblogs_count":0,"favourites_count":1,"edited_at":null,"favourited":true,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"109336623311102204","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John + string: '{"id":"109336902393975125","created_at":"2022-11-13T14:12:10.377Z","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/109336902393975125","url":"http://localhost:3000/@mastodonpy_test/109336902393975125","replies_count":0,"reblogs_count":0,"favourites_count":1,"edited_at":null,"favourited":true,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py + test suite","website":null},"account":{"id":"109336899193569236","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/336/623/311/102/204/original/8f758332953652da.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/336/623/311/102/204/original/8f758332953652da.jpg","header":"http://localhost:3000/system/accounts/headers/109/336/623/311/102/204/original/c7470bf076df1e55.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/336/623/311/102/204/original/c7470bf076df1e55.jpg","followers_count":0,"following_count":0,"statuses_count":1,"last_status_at":"2022-11-13","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/336/899/193/569/236/original/e639fe005819e5b9.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/336/899/193/569/236/original/e639fe005819e5b9.jpg","header":"http://localhost:3000/system/accounts/headers/109/336/899/193/569/236/original/26075346d9e9e361.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/336/899/193/569/236/original/26075346d9e9e361.jpg","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2022-11-13","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-VG2muPTvr3LdX+n3Y8Fdfg==''; + style-src ''self'' http://localhost:3000 ''nonce-bbnnFACr0mHOdS7Ktclw2w==''; 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/"dc7bffc4ae53546bbcec096d1d342204" + - W/"db7a7c53a219f3256bd3c112afad5024" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -125,9 +125,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - d7e7766d-7e8c-430e-ba15-dd997d62b440 + - 22995b9b-a6cb-46cb-91cd-955ed82fa8f2 X-Runtime: - - '0.038408' + - '0.040596' X-XSS-Protection: - 1; mode=block status: @@ -150,16 +150,16 @@ interactions: uri: http://localhost:3000/api/v1/suggestions response: body: - string: '[{"id":"109336623311102204","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John + string: '[{"id":"109336899193569236","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/336/623/311/102/204/original/8f758332953652da.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/336/623/311/102/204/original/8f758332953652da.jpg","header":"http://localhost:3000/system/accounts/headers/109/336/623/311/102/204/original/c7470bf076df1e55.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/336/623/311/102/204/original/c7470bf076df1e55.jpg","followers_count":0,"following_count":0,"statuses_count":1,"last_status_at":"2022-11-13","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]}]' + walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/336/899/193/569/236/original/e639fe005819e5b9.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/336/899/193/569/236/original/e639fe005819e5b9.jpg","header":"http://localhost:3000/system/accounts/headers/109/336/899/193/569/236/original/26075346d9e9e361.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/336/899/193/569/236/original/26075346d9e9e361.jpg","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2022-11-13","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":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-cf8XlDlyp98UpJq4nk0Sfw==''; + style-src ''self'' http://localhost:3000 ''nonce-fcYcXPu1bjg70oKliijT7w==''; 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 @@ -169,7 +169,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"65d93cba34997ce68af86e88f2482afc" + - W/"d1dba3151c3fb35c79289fb811f72067" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -185,9 +185,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 0d9b80f0-7862-41ee-9bee-283db5943bd4 + - 1842a16c-ece8-46f0-b9ca-4fd739e09fd2 X-Runtime: - - '0.016229' + - '0.015820' X-XSS-Protection: - 1; mode=block status: @@ -209,7 +209,7 @@ interactions: User-Agent: - tests/v311 method: DELETE - uri: http://localhost:3000/api/v1/suggestions/109336623311102204 + uri: http://localhost:3000/api/v1/suggestions/109336899193569236 response: body: string: '{}' @@ -219,7 +219,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-nS0SdHS7NKS1UgyM098kDQ==''; + style-src ''self'' http://localhost:3000 ''nonce-27+y8+Go363szNECj7qPkw==''; 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 @@ -245,9 +245,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - ee8c829f-0756-45d0-b3e4-e019d7cff4d2 + - 9af7ccb3-0a61-40a4-b58f-cc72f1536c7c X-Runtime: - - '0.007369' + - '0.008200' X-XSS-Protection: - 1; mode=block status: @@ -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-UV/9AXMbL7G4zEma2sff/Q==''; + style-src ''self'' http://localhost:3000 ''nonce-zOilzwqrPNfT0hZIZCKOmQ==''; 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: - - 874fc4d6-8ddf-49d0-ae19-7540b5973c90 + - 70dfb38b-624e-4cd9-a82d-05dbd7d7536a X-Runtime: - - '0.006495' + - '0.007242' X-XSS-Protection: - 1; mode=block status: @@ -327,20 +327,20 @@ interactions: User-Agent: - tests/v311 method: DELETE - uri: http://localhost:3000/api/v1/statuses/109336676011335007 + uri: http://localhost:3000/api/v1/statuses/109336902393975125 response: body: - string: '{"id":"109336676011335007","created_at":"2022-11-13T13:14:36.076Z","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/109336676011335007","url":"http://localhost:3000/@mastodonpy_test/109336676011335007","replies_count":0,"reblogs_count":0,"favourites_count":1,"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":"109336623311102204","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John + string: '{"id":"109336902393975125","created_at":"2022-11-13T14:12:10.377Z","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/109336902393975125","url":"http://localhost:3000/@mastodonpy_test/109336902393975125","replies_count":0,"reblogs_count":0,"favourites_count":1,"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":"109336899193569236","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/336/623/311/102/204/original/8f758332953652da.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/336/623/311/102/204/original/8f758332953652da.jpg","header":"http://localhost:3000/system/accounts/headers/109/336/623/311/102/204/original/c7470bf076df1e55.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/336/623/311/102/204/original/c7470bf076df1e55.jpg","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":"2022-11-13","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/336/899/193/569/236/original/e639fe005819e5b9.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/336/899/193/569/236/original/e639fe005819e5b9.jpg","header":"http://localhost:3000/system/accounts/headers/109/336/899/193/569/236/original/26075346d9e9e361.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/336/899/193/569/236/original/26075346d9e9e361.jpg","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2022-11-13","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-G4r4T0APBvgnJ29h9aOhhQ==''; + style-src ''self'' http://localhost:3000 ''nonce-4R7T96s4qA6wUTsuLxVuNQ==''; 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 @@ -350,7 +350,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"54e92fb2c8f7d09f2cd1f245f2e03e6d" + - W/"61df1e03ce4413a74b5c7065be2a5e13" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -366,9 +366,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 142db8d0-466c-4f12-8682-5f40eff6f93f + - 789c8d07-b6f2-4bcf-8f81-438ccc38ba64 X-Runtime: - - '0.025217' + - '0.025278' X-XSS-Protection: - 1; mode=block status: -- cgit v1.2.3