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 --- tests/cassettes/test_list_add_remove_account.yaml | 90 +++++++++++------------ 1 file changed, 45 insertions(+), 45 deletions(-) (limited to 'tests/cassettes/test_list_add_remove_account.yaml') diff --git a/tests/cassettes/test_list_add_remove_account.yaml b/tests/cassettes/test_list_add_remove_account.yaml index 6e52143..3d36e93 100644 --- a/tests/cassettes/test_list_add_remove_account.yaml +++ b/tests/cassettes/test_list_add_remove_account.yaml @@ -12,7 +12,7 @@ interactions: method: POST uri: http://localhost:3000/api/v1/lists response: - body: {string: '{"id":"23","title":"ham burglars"}'} + body: {string: '{"id":"43","title":"ham burglars"}'} headers: Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] @@ -23,8 +23,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [0ba2e550-2701-4ba4-a6df-2bf9af846f50] - X-Runtime: ['0.032579'] + X-Request-Id: [fe576154-b879-482a-a62d-da7e366d6721] + X-Runtime: ['0.028738'] X-XSS-Protection: [1; mode=block] content-length: ['34'] status: {code: 200, message: OK} @@ -39,7 +39,7 @@ 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":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":3,"following_count":1,"statuses_count":16,"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":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":3,"following_count":1,"statuses_count":27,"last_status_at":"2019-10-11T21:48:42.003Z","source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[]}'} headers: Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] @@ -50,10 +50,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [74394ac8-9c79-42cc-9187-b44f92fc5af5] - X-Runtime: ['0.022118'] + X-Request-Id: [f0caa592-56a1-4ef4-be70-60b41f2fc2d6] + X-Runtime: ['0.030191'] X-XSS-Protection: [1; mode=block] - content-length: ['610'] + content-length: ['680'] status: {code: 200, message: OK} - request: body: reblogs=1&id=1 @@ -79,8 +79,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [b396cc05-f3ea-431d-824d-768c011b07df] - X-Runtime: ['0.030474'] + X-Request-Id: [7bd6941b-e3df-4519-83df-435eb5c322ca] + X-Runtime: ['0.056128'] X-XSS-Protection: [1; mode=block] content-length: ['209'] status: {code: 200, message: OK} @@ -95,7 +95,7 @@ interactions: Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST - uri: http://localhost:3000/api/v1/lists/23/accounts + uri: http://localhost:3000/api/v1/lists/43/accounts response: body: {string: '{}'} headers: @@ -108,8 +108,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [72858bb4-d338-4695-a38e-9240eeb37a60] - X-Runtime: ['0.070906'] + X-Request-Id: [2c7c620c-03c5-4414-9731-c704e64b9353] + X-Runtime: ['0.048851'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -122,13 +122,13 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/lists/23/accounts + uri: http://localhost:3000/api/v1/lists/43/accounts response: - body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":3,"following_count":1,"statuses_count":16,"emojis":[],"fields":[]}]'} + body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":3,"following_count":1,"statuses_count":27,"last_status_at":"2019-10-11T21:48:42.003Z","emojis":[],"fields":[]}]'} headers: Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - Link: ['; rel="prev"'] + Link: ['; rel="prev"'] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -136,10 +136,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [8b177dee-43f2-4fc5-9db1-a906c8b4f29e] - X-Runtime: ['0.023825'] + X-Request-Id: [5f11ecfa-0a01-40ce-b492-e45614f62bc4] + X-Runtime: ['0.034811'] X-XSS-Protection: [1; mode=block] - content-length: ['526'] + content-length: ['570'] status: {code: 200, message: OK} - request: body: null @@ -164,8 +164,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [04f70bd2-e950-48ee-b0aa-99b02ab53d0a] - X-Runtime: ['0.056326'] + X-Request-Id: [7bcfcf3c-b635-474d-9ddf-f895f7dcc7a8] + X-Runtime: ['0.082880'] X-XSS-Protection: [1; mode=block] content-length: ['211'] status: {code: 200, message: OK} @@ -178,7 +178,7 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/lists/23/accounts + uri: http://localhost:3000/api/v1/lists/43/accounts response: body: {string: '[]'} headers: @@ -191,8 +191,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [0d6e50ca-46be-4a05-b58a-1d8be45add6d] - X-Runtime: ['0.019933'] + X-Request-Id: [0861bab8-799e-4ddd-adc4-67a79e1508fb] + X-Runtime: ['0.018946'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -220,8 +220,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [3d1171e6-ea9e-4221-a85e-51c51047fce7] - X-Runtime: ['0.072940'] + X-Request-Id: [425f2499-1911-4499-87f4-8e4d5dad18f7] + X-Runtime: ['0.097413'] X-XSS-Protection: [1; mode=block] content-length: ['209'] status: {code: 200, message: OK} @@ -236,7 +236,7 @@ interactions: Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST - uri: http://localhost:3000/api/v1/lists/23/accounts + uri: http://localhost:3000/api/v1/lists/43/accounts response: body: {string: '{}'} headers: @@ -249,8 +249,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [e4b229ef-d9cf-44ee-9676-88ef39a6f6ef] - X-Runtime: ['0.076555'] + X-Request-Id: [a36688a8-8816-41d4-a104-5f0380e943f3] + X-Runtime: ['0.102944'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -263,13 +263,13 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/lists/23/accounts + uri: http://localhost:3000/api/v1/lists/43/accounts response: - body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":3,"following_count":1,"statuses_count":16,"emojis":[],"fields":[]}]'} + body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":3,"following_count":1,"statuses_count":27,"last_status_at":"2019-10-11T21:48:42.003Z","emojis":[],"fields":[]}]'} headers: Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - Link: ['; rel="prev"'] + Link: ['; rel="prev"'] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -277,10 +277,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [9a980948-de02-44d3-934d-95fad60c7e01] - X-Runtime: ['0.060008'] + X-Request-Id: [4ab8767a-021b-45de-a8f6-b7bf4572bc24] + X-Runtime: ['0.057221'] X-XSS-Protection: [1; mode=block] - content-length: ['526'] + content-length: ['570'] status: {code: 200, message: OK} - request: body: account_ids%5B%5D=1 @@ -293,7 +293,7 @@ interactions: Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/lists/23/accounts + uri: http://localhost:3000/api/v1/lists/43/accounts response: body: {string: '{}'} headers: @@ -306,8 +306,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [bc97a9d9-9080-4298-972f-fcfbd976fc58] - X-Runtime: ['0.030609'] + X-Request-Id: [120e304e-7092-499c-a8ee-b13cc26b1c3b] + X-Runtime: ['0.054979'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -320,7 +320,7 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/lists/23/accounts + uri: http://localhost:3000/api/v1/lists/43/accounts response: body: {string: '[]'} headers: @@ -333,8 +333,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [933b4826-f6cc-41b3-a570-7dd0534ae664] - X-Runtime: ['0.018318'] + X-Request-Id: [8d5e3bce-1221-4d66-85d3-fe957d0142dc] + X-Runtime: ['0.047257'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -361,8 +361,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [7786e4c9-3e80-4c34-ac21-b24d1a905641] - X-Runtime: ['0.047449'] + X-Request-Id: [944b3299-7257-49c0-bc05-2bc09c5e19b8] + X-Runtime: ['0.112388'] X-XSS-Protection: [1; mode=block] content-length: ['211'] status: {code: 200, message: OK} @@ -376,7 +376,7 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/lists/23 + uri: http://localhost:3000/api/v1/lists/43 response: body: {string: '{}'} headers: @@ -389,8 +389,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [793118f9-f0d9-463d-9c02-d3745dc2990b] - X-Runtime: ['0.032512'] + X-Request-Id: [60d8628b-b112-4228-a45d-f281cf6b16af] + X-Runtime: ['0.069627'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3