From e3936649745a627fa2c31fc7b8602793b7d6027b Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 27 Apr 2019 21:04:06 +0200 Subject: Test fixups and small 2.8 fixes Pagination backwards is broken presently. --- tests/cassettes/test_list_by_account.yaml | 62 +++++++++++++++---------------- 1 file changed, 31 insertions(+), 31 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 c8c2514..2b0c422 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":"17","title":"ham burglars"}'} + body: {string: '{"id":"14","title":"ham burglars"}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"dde3b72d9e5da5dbd934a3ee87fb1970"] + ETag: [W/"8247248ef314b99a42399ecd68df8cbc"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -24,8 +24,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [cf9f740e-0593-4d4e-b992-f6d6a2db4db8] - X-Runtime: ['0.141359'] + X-Request-Id: [6933e1c3-5dd0-4ad3-91f2-c6a110bf03b0] + X-Runtime: ['0.023268'] X-XSS-Protection: [1; mode=block] content-length: ['34'] status: {code: 200, message: OK} @@ -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":83,"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-04-27T17:58:11.427Z","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":0,"following_count":0,"statuses_count":4,"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/"9587763994cb7b923d265b9928c57021"] + ETag: [W/"2e9e6004bf46c303088605fe48e20847"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -52,10 +52,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [866418f9-10ef-49f8-af69-2b9da12d74cd] - X-Runtime: ['0.059704'] + X-Request-Id: [fd21f18d-ee14-4826-b7f2-580f0561fd50] + X-Runtime: ['0.022522'] X-XSS-Protection: [1; mode=block] - content-length: ['635'] + content-length: ['609'] status: {code: 200, message: OK} - request: body: reblogs=1&id=1 @@ -70,11 +70,11 @@ interactions: method: POST uri: http://localhost:3000/api/v1/accounts/1/follow response: - body: {string: '{"id":"1","following":true,"showing_reblogs":true,"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,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"e8cd1251bfd918929ffa4febb0dd234e"] + ETag: [W/"1d5525111153d4ca106111ca8fd589c9"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -82,10 +82,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [28088d1d-21a8-47d1-bf56-636ff6786ab5] - X-Runtime: ['0.245029'] + X-Request-Id: [f4fafc41-adf2-49f5-ace9-89f934a484db] + X-Runtime: ['0.100376'] X-XSS-Protection: [1; mode=block] - content-length: ['173'] + content-length: ['209'] status: {code: 200, message: OK} - request: body: account_ids%5B%5D=1 @@ -98,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/17/accounts + uri: http://localhost:3000/api/v1/lists/14/accounts response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"9e6b8b88662bc6da804d2c4a9dcb93c2"] + ETag: [W/"1f19006d4e16e44010f8b60659bab0b0"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -112,8 +112,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [af8ceea9-e1f0-4b1f-be7e-b880a0994c92] - X-Runtime: ['0.168500'] + X-Request-Id: [147f5c72-4189-4239-ba22-769519f55fb4] + X-Runtime: ['0.084526'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -128,11 +128,11 @@ interactions: method: GET uri: http://localhost:3000/api/v1/accounts/1/lists response: - body: {string: '[{"id":"17","title":"ham burglars"}]'} + body: {string: '[{"id":"14","title":"ham burglars"}]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"4bcafc8e6cd2003eef7d3f81a5057cb6"] + ETag: [W/"064f9a87c08df2f323d84d6d7af9c345"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -140,8 +140,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [cc26359b-b82e-44bc-aa92-010d1371227b] - X-Runtime: ['0.072355'] + X-Request-Id: [5d5ae84a-bb43-4300-9554-ceb1c16e7816] + X-Runtime: ['0.049153'] X-XSS-Protection: [1; mode=block] content-length: ['36'] status: {code: 200, message: OK} @@ -157,11 +157,11 @@ interactions: method: POST uri: http://localhost:3000/api/v1/accounts/1/unfollow response: - body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'} + body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"8f010b455ba8645cafb08ac64d4c56e1"] + ETag: [W/"7de0bda800fc09d7aa7e4e09ff1e64ad"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -169,10 +169,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [cc2a9e4b-9d1a-499f-9e68-9e0a8bcbd55b] - X-Runtime: ['0.134607'] + X-Request-Id: [84b951b8-6419-46c9-a190-e50eab89fbec] + X-Runtime: ['0.086345'] X-XSS-Protection: [1; mode=block] - content-length: ['175'] + content-length: ['211'] status: {code: 200, message: OK} - request: body: null @@ -184,13 +184,13 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/lists/17 + uri: http://localhost:3000/api/v1/lists/14 response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"9e6b8b88662bc6da804d2c4a9dcb93c2"] + ETag: [W/"1f19006d4e16e44010f8b60659bab0b0"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -198,8 +198,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [bb3d3773-dcd2-4936-b017-b7fc6c43e58a] - X-Runtime: ['0.132804'] + X-Request-Id: [c3b79a30-dc4b-48b0-8843-bbe2a67b3714] + X-Runtime: ['0.022094'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3