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_scheduled_status.yaml | 40 +++++++++++++++--------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'tests/cassettes/test_scheduled_status.yaml') diff --git a/tests/cassettes/test_scheduled_status.yaml b/tests/cassettes/test_scheduled_status.yaml index 545ab71..d39fedb 100644 --- a/tests/cassettes/test_scheduled_status.yaml +++ b/tests/cassettes/test_scheduled_status.yaml @@ -12,7 +12,7 @@ interactions: method: POST uri: http://localhost:3000/api/v1/statuses response: - body: {string: '{"id":"4","scheduled_at":"4000-01-01T14:33:14.000Z","params":{"text":"please + body: {string: '{"id":"8","scheduled_at":"4000-01-01T14:33:14.000Z","params":{"text":"please ensure adequate headroom","media_ids":null,"sensitive":null,"spoiler_text":null,"visibility":null,"scheduled_at":null,"poll":null,"idempotency":null,"in_reply_to_id":null,"application_id":1234567890123456},"media_attachments":[]}'} headers: Cache-Control: ['no-cache, no-store'] @@ -24,8 +24,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [69c461d6-ec0f-4827-97af-02b784547893] - X-Runtime: ['0.058337'] + X-Request-Id: [bfe978eb-f4c2-4e23-9b2c-f2684199d70c] + X-Runtime: ['0.043879'] X-XSS-Protection: [1; mode=block] content-length: ['306'] status: {code: 200, message: OK} @@ -40,9 +40,9 @@ interactions: Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: PUT - uri: http://localhost:3000/api/v1/scheduled_statuses/4 + uri: http://localhost:3000/api/v1/scheduled_statuses/8 response: - body: {string: '{"id":"4","scheduled_at":"4000-01-01T14:23:14.000Z","params":{"poll":null,"text":"please + body: {string: '{"id":"8","scheduled_at":"4000-01-01T14:23:14.000Z","params":{"poll":null,"text":"please ensure adequate headroom","media_ids":null,"sensitive":null,"visibility":null,"idempotency":null,"scheduled_at":null,"spoiler_text":null,"application_id":1234567890123456,"in_reply_to_id":null},"media_attachments":[]}'} headers: Cache-Control: ['no-cache, no-store'] @@ -54,8 +54,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [9103b98b-2baa-482d-ba2b-5c7912f8006a] - X-Runtime: ['0.038755'] + X-Request-Id: [67df8ea9-9456-4981-83d0-3f78bef21df5] + X-Runtime: ['0.026484'] X-XSS-Protection: [1; mode=block] content-length: ['306'] status: {code: 200, message: OK} @@ -70,12 +70,12 @@ interactions: method: GET uri: http://localhost:3000/api/v1/scheduled_statuses response: - body: {string: '[{"id":"4","scheduled_at":"4000-01-01T14:23:14.000Z","params":{"poll":null,"text":"please + body: {string: '[{"id":"8","scheduled_at":"4000-01-01T14:23:14.000Z","params":{"poll":null,"text":"please ensure adequate headroom","media_ids":null,"sensitive":null,"visibility":null,"idempotency":null,"scheduled_at":null,"spoiler_text":null,"application_id":1234567890123456,"in_reply_to_id":null},"media_attachments":[]}]'} headers: Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - Link: ['; rel="prev"'] + Link: ['; rel="prev"'] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -83,8 +83,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [f3f6a628-8c24-4174-8bda-deca3929f815] - X-Runtime: ['0.021390'] + X-Request-Id: [f0ffdb8e-1c8f-425d-b858-619b325be44e] + X-Runtime: ['0.018816'] X-XSS-Protection: [1; mode=block] content-length: ['308'] status: {code: 200, message: OK} @@ -97,9 +97,9 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/scheduled_statuses/4 + uri: http://localhost:3000/api/v1/scheduled_statuses/8 response: - body: {string: '{"id":"4","scheduled_at":"4000-01-01T14:23:14.000Z","params":{"poll":null,"text":"please + body: {string: '{"id":"8","scheduled_at":"4000-01-01T14:23:14.000Z","params":{"poll":null,"text":"please ensure adequate headroom","media_ids":null,"sensitive":null,"visibility":null,"idempotency":null,"scheduled_at":null,"spoiler_text":null,"application_id":1234567890123456,"in_reply_to_id":null},"media_attachments":[]}'} headers: Cache-Control: ['no-cache, no-store'] @@ -111,8 +111,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [1b30b74a-ea5a-4882-ae61-23cd3fbc115e] - X-Runtime: ['0.025444'] + X-Request-Id: [eabcac4f-b28c-4d38-8a62-f254fa2fd491] + X-Runtime: ['0.018835'] X-XSS-Protection: [1; mode=block] content-length: ['306'] status: {code: 200, message: OK} @@ -126,7 +126,7 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/scheduled_statuses/4 + uri: http://localhost:3000/api/v1/scheduled_statuses/8 response: body: {string: '{}'} headers: @@ -139,8 +139,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [897a3d94-6ea9-4113-b160-08c198dd7a79] - X-Runtime: ['0.030323'] + X-Request-Id: [42aa2b95-6544-4d93-bcbb-3406b6518989] + X-Runtime: ['0.028709'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -166,8 +166,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [80acc3bd-a31a-45f0-a0e6-7b3ffde8ec42] - X-Runtime: ['0.018255'] + X-Request-Id: [27b907b7-6555-4273-abab-7e51d6e42b58] + X-Runtime: ['0.033475'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3