From 087fb249dad981be4dfbfea13a842bfcc1cd8fd7 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Mon, 30 Jul 2018 20:25:25 +0200 Subject: Fix tests --- tests/cassettes/test_account_search.yaml | 57 ++++++++++++++++---------------- 1 file changed, 29 insertions(+), 28 deletions(-) (limited to 'tests/cassettes/test_account_search.yaml') diff --git a/tests/cassettes/test_account_search.yaml b/tests/cassettes/test_account_search.yaml index 78f20e8..b8698c5 100644 --- a/tests/cassettes/test_account_search.yaml +++ b/tests/cassettes/test_account_search.yaml @@ -10,11 +10,11 @@ interactions: method: GET uri: http://localhost:3000/api/v1/accounts/search?q=admin 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":5,"emojis":[],"fields":[]}]'} + 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":67,"emojis":[],"fields":[]}]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"9ed38f78d86f3323e4d890f7fde996fe"] + ETag: [W/"db85ef2b54ebcf74ab2a62a3611b32f9"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -22,28 +22,29 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [7a7d43e4-0b13-4e23-aa34-560855b13366] - X-Runtime: ['0.028422'] + X-Request-Id: [d64736d5-872b-4576-a016-507e5a6210c9] + X-Runtime: ['0.593596'] X-XSS-Protection: [1; mode=block] - content-length: ['550'] + content-length: ['551'] status: {code: 200, message: OK} - request: - body: null + body: reblogs=True&id=1 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] Connection: [keep-alive] - Content-Length: ['0'] + Content-Length: ['17'] + Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: http://localhost:3000/api/v1/accounts/1/follow response: - body: {string: '{"id":"1","following":true,"showing_reblogs":false,"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,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"2aac633ba6c8db22698d7975d76a2350"] + ETag: [W/"73b11b0fc7e76756964f8713cfbd32d3"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -51,10 +52,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [de297198-591f-4e6e-8515-24f1b7741899] - X-Runtime: ['0.062917'] + X-Request-Id: [9d397398-5005-4e02-bb24-6be14263e449] + X-Runtime: ['0.281744'] X-XSS-Protection: [1; mode=block] - content-length: ['174'] + content-length: ['173'] status: {code: 200, message: OK} - request: body: null @@ -67,11 +68,11 @@ interactions: method: GET uri: http://localhost:3000/api/v1/accounts/search?following=True&q=admin 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":5,"emojis":[],"fields":[]}]'} + 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":67,"emojis":[],"fields":[]}]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"6420365b0c00860d2adcedbe18d93c46"] + ETag: [W/"d684e220cc20b462f23ae1d44d5ef8e2"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -79,10 +80,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [9c9011c5-cc1b-40a4-9d1b-56f669adc944] - X-Runtime: ['0.035517'] + X-Request-Id: [e511d32a-a026-447c-b4c9-aa10bec732d7] + X-Runtime: ['0.057559'] X-XSS-Protection: [1; mode=block] - content-length: ['550'] + content-length: ['551'] status: {code: 200, message: OK} - request: body: null @@ -100,7 +101,7 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"567fcb76cedd3fab2d295958338f60e1"] + ETag: [W/"97b254dec020382a063f788a6984808f"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -108,8 +109,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [e9a45781-41e5-4184-86b3-bf528fd342df] - X-Runtime: ['0.045182'] + X-Request-Id: [1e249c7b-04fe-42d7-b6c6-330d072b38db] + X-Runtime: ['0.116435'] X-XSS-Protection: [1; mode=block] content-length: ['175'] status: {code: 200, message: OK} @@ -128,7 +129,7 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"573082b711c5e9cb9dfd1bef03d669a2"] + ETag: [W/"98911f27999fb7ceab3f494fc3157179"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -136,8 +137,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [1381d7b9-67d0-423c-82c8-91e34f24b010] - X-Runtime: ['0.021078'] + X-Request-Id: [c75c8037-cfe2-40f5-a780-f76fe720e6d0] + X-Runtime: ['0.066532'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -152,11 +153,11 @@ interactions: method: GET uri: http://localhost:3000/api/v1/accounts/search?q=admin 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":5,"emojis":[],"fields":[]}]'} + 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":67,"emojis":[],"fields":[]}]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"9ed38f78d86f3323e4d890f7fde996fe"] + ETag: [W/"db85ef2b54ebcf74ab2a62a3611b32f9"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -164,9 +165,9 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [1dd3604c-c7d2-4938-8569-77c84b69b8b1] - X-Runtime: ['0.017571'] + X-Request-Id: [d2d1d56b-fd97-4998-b364-2a8c1d9e6e33] + X-Runtime: ['0.053387'] X-XSS-Protection: [1; mode=block] - content-length: ['550'] + content-length: ['551'] status: {code: 200, message: OK} version: 1 -- cgit v1.2.3