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_by_account.yaml | 58 +++++++++++++++---------------- 1 file changed, 29 insertions(+), 29 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 d07bfb7..4546977 100644 --- a/tests/cassettes/test_list_by_account.yaml +++ b/tests/cassettes/test_list_by_account.yaml @@ -12,19 +12,19 @@ interactions: method: POST uri: http://localhost:3000/api/v1/lists response: - body: {string: '{"id":"24","title":"ham burglars"}'} + body: {string: '{"id":"9","title":"ham burglars"}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"be955eaf8be280515d5ba0ba9ecb1a50"] + ETag: [W/"640f48d875075b3e649f85c290d31fd1"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [672adb20-033a-4630-82f4-4646ce737155] - X-Runtime: ['0.055324'] + X-Request-Id: [1d9ac5dc-12bb-4912-a97f-1d6af93e9ff2] + X-Runtime: ['0.049308'] X-XSS-Protection: [1; mode=block] - content-length: ['34'] + content-length: ['33'] status: {code: 200, message: OK} - request: body: null @@ -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":0,"following_count":0,"statuses_count":3,"source":{"privacy":"public","sensitive":false,"note":""}}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"691f6bd96e64ff4fe001604d8861d949"] + ETag: [W/"51219e03abcdd2d127bb724fe0a838d6"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [d9788143-6fa1-4353-ab46-a4a157265615] - X-Runtime: ['0.059023'] + X-Request-Id: [3e80d124-aae6-435b-8a1b-e0a0cad63ccd] + X-Runtime: ['0.036737'] 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/"f91b05337597468badfd19f87dd3fe7d"] + ETag: [W/"a68e62a364c40a8a5da2e2143dcfaecd"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [3d70f64d-6d49-403e-b666-a266faa93132] - X-Runtime: ['0.107833'] + X-Request-Id: [7c8099fa-0867-4cce-8319-a83c9cd99bc6] + X-Runtime: ['0.134127'] X-XSS-Protection: [1; mode=block] content-length: ['174'] status: {code: 200, message: OK} @@ -88,19 +88,19 @@ interactions: Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST - uri: http://localhost:3000/api/v1/lists/24/accounts + uri: http://localhost:3000/api/v1/lists/9/accounts response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"7d75201dffe84268b8e3844d4dc96e56"] + ETag: [W/"9f1be5e69062532601176acaaa81e8db"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [75a29c9f-5126-4cb7-b446-b8cbc7800408] - X-Runtime: ['0.069586'] + X-Request-Id: [6b6e6e37-0bbd-4532-99a3-dfa746739733] + X-Runtime: ['0.040029'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -115,19 +115,19 @@ interactions: method: GET uri: http://localhost:3000/api/v1/accounts/1/lists response: - body: {string: '[{"id":"24","title":"ham burglars"}]'} + body: {string: '[{"id":"9","title":"ham burglars"}]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"47f8168c1f7a8f3d8ff54544f88564d8"] + ETag: [W/"5f364b9443a59ad23cb424bc96d9f5e8"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [afb958a3-8002-4cc1-abbf-907d69032264] - X-Runtime: ['0.040643'] + X-Request-Id: [5b3c9ed2-e3e1-4fb2-9d48-6f119f413354] + X-Runtime: ['0.018570'] X-XSS-Protection: [1; mode=block] - content-length: ['36'] + content-length: ['35'] status: {code: 200, message: OK} - request: body: null @@ -145,13 +145,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"b2c35ec6363918f9324f60b9ce18ad00"] + ETag: [W/"fc1dc246eca7eb18d44186a403f34e4d"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [0d09fa82-d5b4-440c-b5aa-4f995cbd452a] - X-Runtime: ['0.097106'] + X-Request-Id: [81376983-689a-42f6-beeb-fdcfebaf8079] + X-Runtime: ['0.044272'] X-XSS-Protection: [1; mode=block] content-length: ['175'] status: {code: 200, message: OK} @@ -165,19 +165,19 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.9.1] method: DELETE - uri: http://localhost:3000/api/v1/lists/24 + uri: http://localhost:3000/api/v1/lists/9 response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"7d75201dffe84268b8e3844d4dc96e56"] + ETag: [W/"9f1be5e69062532601176acaaa81e8db"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [5918aefb-8fa2-465f-b513-5ef9f4036a88] - X-Runtime: ['0.063303'] + X-Request-Id: [d1348013-9f40-490a-bf57-b47811b9a5b5] + X-Runtime: ['0.031188'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3