From 087fb249dad981be4dfbfea13a842bfcc1cd8fd7 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Mon, 30 Jul 2018 20:25:25 +0200 Subject: Fix tests --- tests/cassettes/test_list_by_account.yaml | 67 ++++++++++++++++--------------- 1 file changed, 34 insertions(+), 33 deletions(-) (limited to 'tests/cassettes/test_list_by_account.yaml') diff --git a/tests/cassettes/test_list_by_account.yaml b/tests/cassettes/test_list_by_account.yaml index 6340e83..d74accb 100644 --- a/tests/cassettes/test_list_by_account.yaml +++ b/tests/cassettes/test_list_by_account.yaml @@ -12,11 +12,11 @@ interactions: method: POST uri: http://localhost:3000/api/v1/lists response: - body: {string: '{"id":"9","title":"ham burglars"}'} + body: {string: '{"id":"12","title":"ham burglars"}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"0cfb62ec28516f1f944d1edde5fbaa35"] + ETag: [W/"9d25791829ea38f2ad58d7f62532e947"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -24,10 +24,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [e1f21d90-93e8-4014-bf33-a7cdc349e9aa] - X-Runtime: ['0.021446'] + X-Request-Id: [e66b2030-01e8-4ebf-9674-73adf96695df] + X-Runtime: ['0.043475'] X-XSS-Protection: [1; mode=block] - content-length: ['33'] + content-length: ['34'] status: {code: 200, message: OK} - request: body: null @@ -40,11 +40,11 @@ interactions: method: GET uri: http://localhost:3000/api/v1/accounts/verify_credentials response: - body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","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":5,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'} + body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","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":67,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"2c1db1f5c9c342772002bf0d4ff450ec"] + ETag: [W/"5211bab11227593f32fe99dfc5c25984"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -52,28 +52,29 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [0047cb29-9a8b-472b-b820-b82e628d36c0] - X-Runtime: ['0.017867'] + X-Request-Id: [0ded0bcc-1c0d-447a-8f61-ed7192620979] + X-Runtime: ['0.277921'] X-XSS-Protection: [1; mode=block] - content-length: ['634'] + content-length: ['635'] status: {code: 200, message: OK} - request: - body: null + body: reblogs=True&id=1 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] Connection: [keep-alive] - Content-Length: ['0'] + Content-Length: ['17'] + Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: http://localhost:3000/api/v1/accounts/1/follow response: - body: {string: '{"id":"1","following":true,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'} + body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"d0a82968c8f9aeedda238946aae1989a"] + ETag: [W/"104706c5d5a5d4d87780cdec31e76836"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -81,10 +82,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [76639bf0-e7fe-4c88-8bc9-e0c7de46e577] - X-Runtime: ['0.072864'] + X-Request-Id: [4dbf24ce-460a-4457-b3a5-62dd116f7ca9] + X-Runtime: ['0.078180'] X-XSS-Protection: [1; mode=block] - content-length: ['174'] + content-length: ['173'] status: {code: 200, message: OK} - request: body: account_ids%5B%5D=1 @@ -97,13 +98,13 @@ interactions: Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST - uri: http://localhost:3000/api/v1/lists/9/accounts + uri: http://localhost:3000/api/v1/lists/12/accounts response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"f39c5a269dd640bacf5a55db8d2d3e90"] + ETag: [W/"0cdb2e7c6eb5550ff52103826ed9e2cd"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -111,8 +112,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [f3b0ce92-006d-410e-8d01-f0f93cc7443b] - X-Runtime: ['0.048021'] + X-Request-Id: [66b91f80-7290-4b31-9318-8f2b129b2be7] + X-Runtime: ['0.058322'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -127,11 +128,11 @@ interactions: method: GET uri: http://localhost:3000/api/v1/accounts/1/lists response: - body: {string: '[{"id":"9","title":"ham burglars"}]'} + body: {string: '[{"id":"12","title":"ham burglars"}]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"a2969b9e5d7329b172f845038528a9f8"] + ETag: [W/"403cd5e122640c4a0e94ec6f21466511"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -139,10 +140,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [591c3ebd-0fa5-4efb-aa0a-b3ccf251c4ef] - X-Runtime: ['0.027378'] + X-Request-Id: [0e41c009-30b7-4135-91bb-3f745842a841] + X-Runtime: ['0.062819'] X-XSS-Protection: [1; mode=block] - content-length: ['35'] + content-length: ['36'] status: {code: 200, message: OK} - request: body: null @@ -160,7 +161,7 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"78d855ca7c8355ade68a375107a29ae3"] + ETag: [W/"8f29f445514fac6569926c516a323b44"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -168,8 +169,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [227aee7e-4f8d-4dec-9e27-813b9870fe39] - X-Runtime: ['0.042813'] + X-Request-Id: [528732f0-22b6-4e38-add7-c40b233f1616] + X-Runtime: ['0.085867'] X-XSS-Protection: [1; mode=block] content-length: ['175'] status: {code: 200, message: OK} @@ -183,13 +184,13 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/lists/9 + uri: http://localhost:3000/api/v1/lists/12 response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"f39c5a269dd640bacf5a55db8d2d3e90"] + ETag: [W/"ffab38e79475e4159e128e2821989fd2"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -197,8 +198,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [76ebc393-c790-40fd-abb3-dcd7d35e351e] - X-Runtime: ['0.047284'] + X-Request-Id: [30abb974-4601-4cd7-9587-aba15accc618] + X-Runtime: ['0.056331'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3