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_account_relationships.yaml | 70 ++++++++++++++++++++++--- 1 file changed, 64 insertions(+), 6 deletions(-) (limited to 'tests/cassettes/test_account_relationships.yaml') diff --git a/tests/cassettes/test_account_relationships.yaml b/tests/cassettes/test_account_relationships.yaml index 134e5a0..06a2aa8 100644 --- a/tests/cassettes/test_account_relationships.yaml +++ b/tests/cassettes/test_account_relationships.yaml @@ -13,17 +13,17 @@ interactions: User-Agent: - tests/v311 method: GET - uri: http://localhost:3000/api/v1/accounts/relationships?id=1234567890123456 + uri: http://localhost:3000/api/v1/accounts/verify_credentials response: body: - string: '[{"id":"1234567890123456","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}]' + string: '{"id":"109336623311102204","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test","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":0,"last_status_at":null,"noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"-99","name":"","permissions":"65536","color":"","highlighted":false}}' 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-lHcvwfM6AVJYMlavA81lYw==''; + style-src ''self'' http://localhost:3000 ''nonce-kpYYTWmqUppeT2Uo9wKwow==''; 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 @@ -33,7 +33,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"2408146df6da97992c651abfd596706f" + - W/"18eda7d2236e4c13844c36377704d960" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -49,9 +49,67 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 7b8466ad-2ed4-411c-b912-1770a060d63f + - 2359bb2a-c03a-4d34-b430-04f34854aaf6 X-Runtime: - - '0.024448' + - '0.011387' + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN + Connection: + - keep-alive + User-Agent: + - tests/v311 + method: GET + uri: http://localhost:3000/api/v1/accounts/relationships?id=109336623311102204 + response: + body: + string: '[{"id":"109336623311102204","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}]' + 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-tL1EJgJPtEzzFD3BO46cKA==''; + 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 + ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' + ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; + worker-src ''self'' blob: http://localhost:3000' + Content-Type: + - application/json; charset=utf-8 + ETag: + - W/"fc66a52b42da8b36cf28ef3883b6405f" + Referrer-Policy: + - strict-origin-when-cross-origin + Transfer-Encoding: + - chunked + Vary: + - Accept, Origin + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - SAMEORIGIN + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - db5882a4-10f9-486c-8577-26f22e54104d + X-Runtime: + - '0.017211' X-XSS-Protection: - 1; mode=block status: -- cgit v1.2.3