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_timeline.yaml | 96 ++++++++++++++++----------------- 1 file changed, 48 insertions(+), 48 deletions(-) (limited to 'tests/cassettes/test_list_timeline.yaml') diff --git a/tests/cassettes/test_list_timeline.yaml b/tests/cassettes/test_list_timeline.yaml index b2b04cc..0fa4d04 100644 --- a/tests/cassettes/test_list_timeline.yaml +++ b/tests/cassettes/test_list_timeline.yaml @@ -12,11 +12,11 @@ interactions: method: POST uri: http://localhost:3000/api/v1/lists response: - body: {string: '{"id":"18","title":"ham burglars"}'} + body: {string: '{"id":"15","title":"ham burglars"}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"89adc3a989c2f3799d0f2eb6838a680e"] + ETag: [W/"35d9c20658d15aecef0d51932d8fbc97"] 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: [bb89e61d-663d-4951-ae41-af9359d2a947] - X-Runtime: ['0.061267'] + X-Request-Id: [d36b9525-abe1-4f03-a2f0-5479f4830849] + X-Runtime: ['0.020166'] 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/"c881683a1b6c154bf98bbc847bf74b4d"] + 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: [41ac5c04-f21a-4320-93b1-38032b889bba] - X-Runtime: ['0.074416'] + X-Request-Id: [6ec7caee-9ef0-4395-803f-4b3f8edb9d10] + X-Runtime: ['0.022512'] 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/"7d8d0d5b6df00a05e3ff05d1f70cfa28"] + ETag: [W/"8bb5f007d66d0e48cde8941828493c2f"] 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: [7bd1016f-e234-4a99-9bd0-15d974f7ee57] - X-Runtime: ['0.175634'] + X-Request-Id: [78b1e360-1958-4a05-96db-533ab3a65b30] + X-Runtime: ['0.078609'] 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/18/accounts + uri: http://localhost:3000/api/v1/lists/15/accounts response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"000682dcb8bbb7e9fb5157f6a1c5faa5"] + ETag: [W/"873fd6721b080f5ef31b79e7092c5c54"] 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: [b74c2be5-1bf5-4c72-9bab-6469bc27bfe4] - X-Runtime: ['0.096261'] + X-Request-Id: [3cc46091-6784-4b8e-a719-886ed486911e] + X-Runtime: ['0.078086'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -130,13 +130,13 @@ interactions: method: POST uri: http://localhost:3000/api/v1/statuses response: - body: {string: '{"id":"100465729365897428","created_at":"2018-07-30T21:16:12.479Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/100465729365897428","content":"\u003cp\u003eI - have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost:3000/@admin/100465729365897428","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"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":84,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} + body: {string: '{"id":"101999515346991470","created_at":"2019-04-27T18:18:09.183Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/101999515346991470","content":"\u003cp\u003eI + have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost/@admin/101999515346991470","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py + test suite","website":null},"account":{"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":5,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"101a1935d04ea0c5be84df131a702ed7"] + ETag: [W/"c38f7eefbb8b1cabc8a2e8ee3fb35044"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -144,10 +144,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [587fd368-e279-432f-8bbb-5febf8a63859] - X-Runtime: ['0.420572'] + X-Request-Id: [c1545708-8305-47ba-a94b-8656fcb8ed4d] + X-Runtime: ['0.186044'] X-XSS-Protection: [1; mode=block] - content-length: ['1197'] + content-length: ['1203'] status: {code: 200, message: OK} - request: body: null @@ -158,17 +158,17 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/timelines/list/18 + uri: http://localhost:3000/api/v1/timelines/list/15 response: - body: {string: '[{"id":"100465729365897428","created_at":"2018-07-30T21:16:12.479Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/100465729365897428","content":"\u003cp\u003eI - have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost:3000/@admin/100465729365897428","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"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":84,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}]'} + body: {string: '[{"id":"101999515346991470","created_at":"2019-04-27T18:18:09.183Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/101999515346991470","content":"\u003cp\u003eI + have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost/@admin/101999515346991470","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"reblog":null,"application":{"name":"Mastodon.py + test suite","website":null},"account":{"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":5,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"8f72530112c7d007afed4d7275e9a395"] - Link: ['; - rel="next", ; + ETag: [W/"9280ea291d6b47bac0b8fbad9f763dd3"] + Link: ['; + rel="next", ; rel="prev"'] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] @@ -177,10 +177,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [999d80fe-a436-41bb-95d9-01ced81d131e] - X-Runtime: ['0.058719'] + X-Request-Id: [5740f524-6ad4-4f9b-b6ac-12720e85b41f] + X-Runtime: ['0.076979'] X-XSS-Protection: [1; mode=block] - content-length: ['1184'] + content-length: ['1190'] status: {code: 200, message: OK} - request: body: null @@ -192,13 +192,13 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/statuses/100465729365897428 + uri: http://localhost:3000/api/v1/statuses/101999515346991470 response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"184f6cea9aa61e17f6e9b832ae0677fb"] + ETag: [W/"71fb4d7e1e48f649eba00c8cd0090849"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -206,8 +206,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [e83bde18-1cf4-43b7-ad64-f5ff51ac8910] - X-Runtime: ['0.035918'] + X-Request-Id: [ab0c27fe-e237-42ae-9faf-a2972baa8bfa] + X-Runtime: ['0.020533'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -223,11 +223,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/"d600508246b7b7425c2af4acf4b0c687"] + ETag: [W/"a981f53aa51b0f85997b6a7913278ca6"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -235,10 +235,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [9ed1d62d-5d9d-4e7f-8729-7831cf9b8b5b] - X-Runtime: ['0.124575'] + X-Request-Id: [37cb9622-9d6e-4502-8ef5-5a099a71a4a1] + X-Runtime: ['0.119308'] X-XSS-Protection: [1; mode=block] - content-length: ['175'] + content-length: ['211'] status: {code: 200, message: OK} - request: body: null @@ -250,13 +250,13 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/lists/18 + uri: http://localhost:3000/api/v1/lists/15 response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"c71af75fc26159a037d7a4e061deeccc"] + ETag: [W/"71fb4d7e1e48f649eba00c8cd0090849"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -264,8 +264,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [aa2782f7-0242-49c9-9d24-76c03906c940] - X-Runtime: ['0.048383'] + X-Request-Id: [74ba4eae-f0a7-4ffc-8e74-dba7a27f3bda] + X-Runtime: ['0.032257'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3