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_timeline.yaml | 72 ++++++++++++++++----------------- 1 file changed, 36 insertions(+), 36 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 84015fe..12ff640 100644 --- a/tests/cassettes/test_list_timeline.yaml +++ b/tests/cassettes/test_list_timeline.yaml @@ -12,7 +12,7 @@ interactions: method: POST uri: http://localhost:3000/api/v1/lists response: - body: {string: '{"id":"25","title":"ham burglars"}'} + body: {string: '{"id":"45","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: [ba48641d-cf50-4b83-8560-08981737cf88] - X-Runtime: ['0.021952'] + X-Request-Id: [a2ecd5fa-03f5-4446-a717-f9298ff76bc5] + X-Runtime: ['0.026638'] 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":2,"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":2,"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: [78e34f89-3407-4a87-b9c3-abb13551f476] - X-Runtime: ['0.022950'] + X-Request-Id: [9c6dcf4d-a07b-45bb-95b9-c3d16122aba2] + X-Runtime: ['0.028693'] 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: [c00a31f9-1a7b-4ed0-a1e0-28e5352a24f3] - X-Runtime: ['0.070776'] + X-Request-Id: [059e01a6-4333-495b-9672-de5967942414] + X-Runtime: ['0.114812'] 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/25/accounts + uri: http://localhost:3000/api/v1/lists/45/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: [05f3227d-bb62-4807-b6f4-2546522abac6] - X-Runtime: ['0.075572'] + X-Request-Id: [277c8d9c-25f2-4004-9d68-568121ce360c] + X-Runtime: ['0.094615'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -126,9 +126,9 @@ interactions: method: POST uri: http://localhost:3000/api/v1/statuses response: - body: {string: '{"id":"102317290726462285","created_at":"2019-06-22T21:12:36.659Z","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/102317290726462285","url":"http://localhost/@admin/102317290726462285","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003eI + body: {string: '{"id":"102945949822472535","created_at":"2019-10-11T21:48:53.207Z","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/102945949822472535","url":"http://localhost/@admin/102945949822472535","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003eI have never stolen a ham in my life.\u003c/p\u003e","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-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":17,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} + test suite","website":null},"account":{"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":28,"last_status_at":"2019-10-11T21:48:53.223Z","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} headers: Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] @@ -139,10 +139,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [6f69bb85-4635-4e9e-9a42-f26e4b683727] - X-Runtime: ['0.178400'] + X-Request-Id: [db943767-de21-4f0d-a1b6-f6b4471f9587] + X-Runtime: ['0.203556'] X-XSS-Protection: [1; mode=block] - content-length: ['1204'] + content-length: ['1248'] status: {code: 200, message: OK} - request: body: null @@ -153,16 +153,16 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/timelines/list/25 + uri: http://localhost:3000/api/v1/timelines/list/45 response: - body: {string: '[{"id":"102317290726462285","created_at":"2019-06-22T21:12:36.659Z","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/102317290726462285","url":"http://localhost/@admin/102317290726462285","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"content":"\u003cp\u003eI + body: {string: '[{"id":"102945949822472535","created_at":"2019-10-11T21:48:53.207Z","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/102945949822472535","url":"http://localhost/@admin/102945949822472535","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"content":"\u003cp\u003eI have never stolen a ham in my life.\u003c/p\u003e","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-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":17,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}]'} + test suite","website":null},"account":{"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":28,"last_status_at":"2019-10-11T21:48:53.223Z","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}]'} headers: Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - Link: ['; - rel="next", ; + Link: ['; + rel="next", ; rel="prev"'] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] @@ -171,10 +171,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [65f03835-bd09-49c8-9a7c-7e912e4ddbe2] - X-Runtime: ['0.062445'] + X-Request-Id: [9c2a0611-e655-42d7-8c4a-6dc5863d58f4] + X-Runtime: ['0.074015'] X-XSS-Protection: [1; mode=block] - content-length: ['1191'] + content-length: ['1235'] status: {code: 200, message: OK} - request: body: null @@ -186,11 +186,11 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/statuses/102317290726462285 + uri: http://localhost:3000/api/v1/statuses/102945949822472535 response: - body: {string: '{"id":"102317290726462285","created_at":"2019-06-22T21:12:36.659Z","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/102317290726462285","url":"http://localhost/@admin/102317290726462285","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"text":"I + body: {string: '{"id":"102945949822472535","created_at":"2019-10-11T21:48:53.207Z","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/102945949822472535","url":"http://localhost/@admin/102945949822472535","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"text":"I have never stolen a ham in my life.","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-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":17,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} + test suite","website":null},"account":{"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":28,"last_status_at":"2019-10-11T21:48:53.223Z","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} headers: Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] @@ -201,10 +201,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [e62f4641-cdda-490b-9966-df6bb8127144] - X-Runtime: ['0.079065'] + X-Request-Id: [dcf6d582-f9e8-48a8-9a2f-3a22a0ba0f26] + X-Runtime: ['0.108989'] X-XSS-Protection: [1; mode=block] - content-length: ['1174'] + content-length: ['1218'] status: {code: 200, message: OK} - request: body: null @@ -229,8 +229,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [85c8a500-8c01-4053-9782-cd28a56d23d5] - X-Runtime: ['0.088744'] + X-Request-Id: [25ae7a5d-947a-40da-939e-b8072f65b034] + X-Runtime: ['0.115934'] X-XSS-Protection: [1; mode=block] content-length: ['211'] status: {code: 200, message: OK} @@ -244,7 +244,7 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/lists/25 + uri: http://localhost:3000/api/v1/lists/45 response: body: {string: '{}'} headers: @@ -257,8 +257,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [0004f8b3-73e1-444f-8aff-cc2d20798dca] - X-Runtime: ['0.021890'] + X-Request-Id: [12fe2386-982a-4bcc-8215-de9fa42c9b9f] + X-Runtime: ['0.060430'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3