From 8d5fe70c7e52656b2f89d0acfb1aed23bf583041 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Mon, 7 May 2018 00:53:13 +0200 Subject: Fix some bugs, update tests --- tests/cassettes/test_list_timeline.yaml | 90 ++++++++++++++++----------------- 1 file changed, 45 insertions(+), 45 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 ceb2089..7fb7a7c 100644 --- a/tests/cassettes/test_list_timeline.yaml +++ b/tests/cassettes/test_list_timeline.yaml @@ -12,17 +12,17 @@ interactions: method: POST uri: http://localhost:3000/api/v1/lists response: - body: {string: '{"id":"25","title":"ham burglars"}'} + body: {string: '{"id":"11","title":"ham burglars"}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"c56ed009e747b046f62c422a4bd0c475"] + ETag: [W/"959fa100ca1cadc8d076d53173c65d3f"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [fee67ca2-a91f-4d5e-870d-f94f63fdae01] - X-Runtime: ['0.046275'] + X-Request-Id: [603e1265-8813-42b0-9840-e0ef3ad51458] + X-Runtime: ['0.029091'] X-XSS-Protection: [1; mode=block] content-length: ['34'] status: {code: 200, message: OK} @@ -37,19 +37,19 @@ 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,"created_at":"2018-04-17T21:40:55.626Z","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":51,"source":{"privacy":"public","sensitive":false,"note":""}}'} + body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-05-06T22:36:57.850Z","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":6,"source":{"privacy":"public","sensitive":false,"note":""}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"6f31f5da2f0f9aeec5ce050c8e439288"] + ETag: [W/"48dec04b47acf91c95d921354636a6a7"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [c7ba1cc0-3315-4847-a0f8-7ca1c8014f53] - X-Runtime: ['0.048756'] + X-Request-Id: [1d7b5b7d-5dd0-4c34-9af9-f544d2aa2331] + X-Runtime: ['0.020716'] X-XSS-Protection: [1; mode=block] - content-length: ['571'] + content-length: ['570'] status: {code: 200, message: OK} - request: body: null @@ -67,13 +67,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"ff571039e7eccffedf0c3baf0ee5835d"] + ETag: [W/"cef1a083cbdd840a03cca72b95ea653b"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [aecd782a-5218-489a-a801-52be98fab5bb] - X-Runtime: ['0.137542'] + X-Request-Id: [10929688-c231-44ab-aee7-bdcda5699197] + X-Runtime: ['0.035432'] X-XSS-Protection: [1; mode=block] content-length: ['174'] status: {code: 200, message: OK} @@ -88,24 +88,24 @@ interactions: Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST - uri: http://localhost:3000/api/v1/lists/25/accounts + uri: http://localhost:3000/api/v1/lists/11/accounts response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"1040bdd26362a18b29d5084d0ea80fbc"] + ETag: [W/"dfebc5bdd5f9edfea8c743decc046958"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [327011fb-439c-4d25-b568-5f3b2c3f7d54] - X-Runtime: ['0.073036'] + X-Request-Id: [05d5732f-89cf-49a1-91fc-fb92ab2394fd] + X-Runtime: ['0.043590'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} - request: - body: visibility=public&status=I+have+never+stolen+a+ham+in+my+life. + body: status=I+have+never+stolen+a+ham+in+my+life.&visibility=public headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -117,21 +117,21 @@ interactions: method: POST uri: http://localhost:3000/api/v1/statuses response: - body: {string: '{"id":"99982642668365711","created_at":"2018-05-06T13:40:54.415Z","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/99982642668365711","content":"\u003cp\u003eI - have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost:3000/@admin/99982642668365711","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,"created_at":"2018-04-17T21:40:55.626Z","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":52},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} + body: {string: '{"id":"99984786118987758","created_at":"2018-05-06T22:46:00.862Z","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/99984786118987758","content":"\u003cp\u003eI + have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost:3000/@admin/99984786118987758","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,"created_at":"2018-05-06T22:36:57.850Z","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":7},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"088ca43a6864bf53d809c7cc6be28fbb"] + ETag: [W/"fa4c60b4f9f1c900fdc55f8c5c21cea2"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [960b252d-e19e-4c3c-ab13-6ca5e82038e1] - X-Runtime: ['0.239041'] + X-Request-Id: [42009640-e1ef-4ecb-ab79-211096f164fb] + X-Runtime: ['0.226850'] X-XSS-Protection: [1; mode=block] - content-length: ['1158'] + content-length: ['1157'] status: {code: 200, message: OK} - request: body: null @@ -142,26 +142,26 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET - uri: http://localhost:3000/api/v1/timelines/list/25 + uri: http://localhost:3000/api/v1/timelines/list/11 response: - body: {string: '[{"id":"99982642668365711","created_at":"2018-05-06T13:40:54.415Z","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/99982642668365711","content":"\u003cp\u003eI - have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost:3000/@admin/99982642668365711","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,"created_at":"2018-04-17T21:40:55.626Z","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":52},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}]'} + body: {string: '[{"id":"99984786118987758","created_at":"2018-05-06T22:46:00.862Z","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/99984786118987758","content":"\u003cp\u003eI + have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost:3000/@admin/99984786118987758","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,"created_at":"2018-05-06T22:36:57.850Z","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":7},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"db76a989e40e671ea4344ecdaacebe3d"] - Link: ['; - rel="next", ; + ETag: [W/"edf8767f9d8e63a3102bbcdac58ce620"] + Link: ['; + rel="next", ; rel="prev"'] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [5bd50e1b-667c-4f56-b363-d576b1a7aab2] - X-Runtime: ['0.133037'] + X-Request-Id: [64a57a6c-8f1a-487c-b809-5b4e578755cc] + X-Runtime: ['0.144037'] X-XSS-Protection: [1; mode=block] - content-length: ['1145'] + content-length: ['1144'] status: {code: 200, message: OK} - request: body: null @@ -173,19 +173,19 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.9.1] method: DELETE - uri: http://localhost:3000/api/v1/statuses/99982642668365711 + uri: http://localhost:3000/api/v1/statuses/99984786118987758 response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"1040bdd26362a18b29d5084d0ea80fbc"] + ETag: [W/"1e9183cf3bfe2134fd39b219636ffa8b"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [0aadaf37-9c0a-45e6-ae00-47e47775257f] - X-Runtime: ['0.059188'] + X-Request-Id: [9010a178-3602-4b4e-b4e9-673ecc1ca274] + X-Runtime: ['0.042932'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -205,13 +205,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"a1b7df866f4cd9bb23dfdc00a0f40042"] + ETag: [W/"418dfb344e516f102d3d12f34f0e8c93"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [eb36fc4f-98cb-430f-ad5c-1efb8e41641b] - X-Runtime: ['0.124516'] + X-Request-Id: [ebc45a88-c907-4fad-8441-14e31891b1fb] + X-Runtime: ['0.094351'] X-XSS-Protection: [1; mode=block] content-length: ['175'] status: {code: 200, message: OK} @@ -225,19 +225,19 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.9.1] method: DELETE - uri: http://localhost:3000/api/v1/lists/25 + uri: http://localhost:3000/api/v1/lists/11 response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"fb2e8895e367561e01e27ebb11075fd3"] + ETag: [W/"1e9183cf3bfe2134fd39b219636ffa8b"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [24816eab-335e-4282-92f9-e202b71824f7] - X-Runtime: ['0.041613'] + X-Request-Id: [018f88c7-3e3a-46e5-9145-937c9d1eceaa] + X-Runtime: ['0.030450'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3