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_add_remove_account.yaml | 134 +++++++++++----------- 1 file changed, 67 insertions(+), 67 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 9f2751d..daeb29c 100644 --- a/tests/cassettes/test_list_add_remove_account.yaml +++ b/tests/cassettes/test_list_add_remove_account.yaml @@ -12,11 +12,11 @@ interactions: method: POST uri: http://localhost:3000/api/v1/lists response: - body: {string: '{"id":"16","title":"ham burglars"}'} + body: {string: '{"id":"13","title":"ham burglars"}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"b584c20fa9cf0db03162b6661d2621e8"] + ETag: [W/"07509f109f42d4687ab3f97cecc32f2d"] 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: [e8856f14-de79-4f10-82f2-6551725f7332] - X-Runtime: ['0.026911'] + X-Request-Id: [ecfb3d17-0eb9-47ef-88c6-cef7a63ca0fb] + X-Runtime: ['0.025506'] 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":1,"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":1,"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/"c9ee97c0acce48b20640608733e71598"] + ETag: [W/"4743bd5a10738b03a8075c666b8ae4b7"] 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: [667ef227-4ec3-4e07-b67c-44eefb02e7ee] - X-Runtime: ['0.030328'] + X-Request-Id: [7a546efa-0f22-4b8d-a45c-31bea316120d] + X-Runtime: ['0.019141'] 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/"a43703d3ce33bdb9fe5527c33203da98"] + ETag: [W/"b3b583b439113ba5a011fdfb18034122"] 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: [a055644f-1165-43cb-bcf0-879e42c141e7] - X-Runtime: ['0.052602'] + X-Request-Id: [3596d493-bc20-4630-ad44-874077a9021e] + X-Runtime: ['0.052244'] 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/16/accounts + uri: http://localhost:3000/api/v1/lists/13/accounts response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"1117e5398aa3b3d23877677b5f948531"] + ETag: [W/"f7218fbcd1fb889396566736881b9808"] 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: [81659cc8-b46a-4222-8380-748513586891] - X-Runtime: ['0.052149'] + X-Request-Id: [7339a54b-fb1a-496e-bfda-ac8ac686dc00] + X-Runtime: ['0.060909'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -126,14 +126,14 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/lists/16/accounts + uri: http://localhost:3000/api/v1/lists/13/accounts 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":1,"following_count":0,"statuses_count":83,"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":1,"following_count":0,"statuses_count":4,"emojis":[],"fields":[]}]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"62b2d456f18018a2b00ab285296a177e"] - Link: ['; rel="prev"'] + ETag: [W/"e56e3daf7f8db25fba528785afbc93e9"] + Link: ['; rel="prev"'] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -141,10 +141,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [56c1c3a0-18cd-4f4f-8342-d76766c38f68] - X-Runtime: ['0.036450'] + X-Request-Id: [ae178f64-95e9-42b4-88cf-6ca4fd86f9e1] + X-Runtime: ['0.020260'] X-XSS-Protection: [1; mode=block] - content-length: ['551'] + content-length: ['525'] status: {code: 200, message: OK} - request: body: null @@ -158,11 +158,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/"aad57287d0aae27aee223c4b2cd56a37"] + ETag: [W/"fce88baa792f3991e7dbd5b7006926f7"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -170,10 +170,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [d1bd3ba6-3c6f-4d2d-92ef-8ad50367f4fa] - X-Runtime: ['0.071916'] + X-Request-Id: [91746aff-6054-4308-9356-6ecea72f49e7] + X-Runtime: ['0.045276'] 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: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/lists/16/accounts + uri: http://localhost:3000/api/v1/lists/13/accounts response: body: {string: '[]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"6e1c9e2391ff741ca248e8e79afdb372"] + ETag: [W/"5839a794e7a473cadc209ef56542b467"] 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: [6fae0a25-e32f-448e-af4d-1d995fcd19fb] - X-Runtime: ['0.028235'] + X-Request-Id: [e1f4e3a6-d51f-482c-a3e7-a83a0551cc3b] + X-Runtime: ['0.021326'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -216,11 +216,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/"e6d1a4d0b4c63bc211f53f07521e53f9"] + ETag: [W/"1d5525111153d4ca106111ca8fd589c9"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -228,10 +228,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [3bc55c29-5799-49d0-8315-e3efa6fa488e] - X-Runtime: ['0.117992'] + X-Request-Id: [caec88f4-10ba-4ea3-b346-03d1a6a90772] + X-Runtime: ['0.080250'] X-XSS-Protection: [1; mode=block] - content-length: ['173'] + content-length: ['209'] status: {code: 200, message: OK} - request: body: account_ids%5B%5D=1 @@ -244,13 +244,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/16/accounts + uri: http://localhost:3000/api/v1/lists/13/accounts response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"7c50305199ecfdfb56aa3896291ad357"] + ETag: [W/"1f19006d4e16e44010f8b60659bab0b0"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -258,8 +258,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [335e6bcc-3d24-4135-889d-80de7004b292] - X-Runtime: ['0.078046'] + X-Request-Id: [439a863a-ce94-4c1f-a7b9-4469a1f42249] + X-Runtime: ['0.091119'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -272,14 +272,14 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/lists/16/accounts + uri: http://localhost:3000/api/v1/lists/13/accounts 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":1,"following_count":0,"statuses_count":83,"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":1,"following_count":0,"statuses_count":4,"emojis":[],"fields":[]}]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"a8059cb31f57d484a02559a0554b4892"] - Link: ['; rel="prev"'] + ETag: [W/"12d850bde19acd8541ce57682d068d23"] + Link: ['; rel="prev"'] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -287,10 +287,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [0918b8dc-ab7a-4a5f-8cce-c36f46d117d6] - X-Runtime: ['0.056222'] + X-Request-Id: [f64a85d5-0704-48a2-913d-f7edc512fd5d] + X-Runtime: ['0.052260'] X-XSS-Protection: [1; mode=block] - content-length: ['551'] + content-length: ['525'] status: {code: 200, message: OK} - request: body: account_ids%5B%5D=1 @@ -303,13 +303,13 @@ interactions: Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/lists/16/accounts + uri: http://localhost:3000/api/v1/lists/13/accounts response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"7c50305199ecfdfb56aa3896291ad357"] + ETag: [W/"1f19006d4e16e44010f8b60659bab0b0"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -317,8 +317,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [914a133a-a710-4e35-9c6b-cf7a0c8d5a1f] - X-Runtime: ['0.074748'] + X-Request-Id: [1d93f963-f3e1-430b-b12f-3a35b8c97b18] + X-Runtime: ['0.061400'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -331,13 +331,13 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/lists/16/accounts + uri: http://localhost:3000/api/v1/lists/13/accounts response: body: {string: '[]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"b55fc74f07cbe5934774cd4625d649d0"] + ETag: [W/"e6ae59ab52fdbf017d506af98d3c0346"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -345,8 +345,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [41a683e4-fc71-4e96-9d92-97f0a01db9f6] - X-Runtime: ['0.045815'] + X-Request-Id: [c8cb7671-b6cb-4afd-91e7-a8878ae10dca] + X-Runtime: ['0.020637'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -362,11 +362,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/"7caae68836c3f3de747a26f4992f14d9"] + ETag: [W/"7de0bda800fc09d7aa7e4e09ff1e64ad"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -374,10 +374,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [7e6499ec-fb54-4c76-ab02-5faa886a2179] - X-Runtime: ['0.113259'] + X-Request-Id: [a19d2776-8646-4bec-a6b3-34f371fecde7] + X-Runtime: ['0.049793'] X-XSS-Protection: [1; mode=block] - content-length: ['175'] + content-length: ['211'] status: {code: 200, message: OK} - request: body: null @@ -389,13 +389,13 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/lists/16 + uri: http://localhost:3000/api/v1/lists/13 response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"7c50305199ecfdfb56aa3896291ad357"] + ETag: [W/"1f19006d4e16e44010f8b60659bab0b0"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -403,8 +403,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [292e1cc8-90a7-492d-acb5-93f2c82eb835] - X-Runtime: ['0.105068'] + X-Request-Id: [b4f120a6-6147-445f-ac98-4d0a871c6e5b] + X-Runtime: ['0.023427'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3