From 437f68c29a18303de3c75962021bbe030b2cf85c Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Fri, 11 Oct 2019 23:59:24 +0200 Subject: Update tests for 3.0.1 and fix regressions --- .../cassettes/test_account_update_credentials.yaml | 44 +++++++++++----------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'tests/cassettes/test_account_update_credentials.yaml') diff --git a/tests/cassettes/test_account_update_credentials.yaml b/tests/cassettes/test_account_update_credentials.yaml index d4091ef..858e2b8 100644 --- a/tests/cassettes/test_account_update_credentials.yaml +++ b/tests/cassettes/test_account_update_credentials.yaml @@ -1,19 +1,19 @@ interactions: - request: body: !!binary | - LS1hNzU5NWI0NDY2N2Y0ZDZlOTE3MGRkZmMxMGRkNDVjZQ0KQ29udGVudC1EaXNwb3NpdGlvbjog - Zm9ybS1kYXRhOyBuYW1lPSJub3RlIg0KDQpJIHdhbGsgZnVubnkNCi0tYTc1OTViNDQ2NjdmNGQ2 - ZTkxNzBkZGZjMTBkZDQ1Y2UNCkNvbnRlbnQtRGlzcG9zaXRpb246IGZvcm0tZGF0YTsgbmFtZT0i - ZGlzcGxheV9uYW1lIg0KDQpKb2huIExlbm5vbg0KLS1hNzU5NWI0NDY2N2Y0ZDZlOTE3MGRkZmMx - MGRkNDVjZQ0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJmaWVsZHNfYXR0 - cmlidXRlc1swXVtuYW1lXSINCg0KYnJlYWQNCi0tYTc1OTViNDQ2NjdmNGQ2ZTkxNzBkZGZjMTBk - ZDQ1Y2UNCkNvbnRlbnQtRGlzcG9zaXRpb246IGZvcm0tZGF0YTsgbmFtZT0iZmllbGRzX2F0dHJp - YnV0ZXNbMF1bdmFsdWVdIg0KDQp0b2FzdHkuDQotLWE3NTk1YjQ0NjY3ZjRkNmU5MTcwZGRmYzEw - ZGQ0NWNlDQpDb250ZW50LURpc3Bvc2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZpZWx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AAEBAQBIAEgAAP/iAhxJQ0NfUFJPRklMRQABAQAAAgxsY21zAhAAAG1udHJSR0IgWFlaIAfc @@ -1888,22 +1888,22 @@ interactions: pUqKI6mINwj9YYOV2oMLkmWXo9TfelSoHhykWUoovQTO33qdoivLumOvT8UqVFWbbHaEokDtzf5q My4XCMTEjfPbPilSoFOFzByxzhRey1WUSaxVdtqVKgaCiiCrnK5pkwMTGX4pUqBTtsYnLjJ4xUrW DGZB1d1z+KVKguWW3ctzMCb7u1NAIwEky3zsvWlSoIzwuWI/YpgkyI8qxk4wZ/WlSoGNPcbo46Oe - bs70qVKg/9kNCi0tYTc1OTViNDQ2NjdmNGQ2ZTkxNzBkZGZjMTBkZDQ1Y2UtLQ0K + bs70qVKg/9kNCi0tZGQyN2MwMTVjNzgwNGFmOGI1MDJiZmExODA0ODk2MGItLQ0K headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] Connection: [keep-alive] Content-Length: ['107607'] - Content-Type: [multipart/form-data; boundary=a7595b44667f4d6e9170ddfc10dd45ce] + Content-Type: [multipart/form-data; boundary=dd27c015c7804af8b502bfa18048960b] User-Agent: [python-requests/2.18.4] method: PATCH uri: http://localhost:3000/api/v1/accounts/update_credentials response: body: {string: '{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John - Lennon","locked":true,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003eI - walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561237923","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561237923","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561237923","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561237923","followers_count":0,"following_count":0,"statuses_count":0,"source":{"privacy":"public","sensitive":false,"language":null,"note":"I - walk funny","fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]}'} + Lennon","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003eI + walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570830497","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570830497","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570830497","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1570830497","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2019-10-11T21:46:51.405Z","source":{"privacy":"public","sensitive":false,"language":null,"note":"I + walk funny","fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}],"follow_requests_count":0},"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]}'} headers: Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] @@ -1914,9 +1914,9 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [e936c6c1-c6d5-4e7f-81e8-a736f5f7807e] - X-Runtime: ['0.145442'] + X-Request-Id: [4940bbdd-4266-42cc-aef0-9b72c927a982] + X-Runtime: ['0.136734'] X-XSS-Protection: [1; mode=block] - content-length: ['1134'] + content-length: ['1205'] status: {code: 200, message: OK} version: 1 -- cgit v1.2.3