From 64ec9e20987072692227d8817d9fd99d497fea5e Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Wed, 18 Apr 2018 22:00:35 +0200 Subject: Update the tests --- tests/cassettes/test_status_missing.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/cassettes/test_status_missing.yaml') diff --git a/tests/cassettes/test_status_missing.yaml b/tests/cassettes/test_status_missing.yaml index e591af5..d708757 100644 --- a/tests/cassettes/test_status_missing.yaml +++ b/tests/cassettes/test_status_missing.yaml @@ -4,9 +4,9 @@ interactions: headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] + Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] + User-Agent: [python-requests/2.9.1] method: GET uri: http://localhost:3000/api/v1/statuses/0 response: @@ -18,8 +18,8 @@ interactions: Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [5778b7cc-7f26-4887-96a3-9f7ce70b060b] - X-Runtime: ['0.019627'] + X-Request-Id: [a00b882a-5a15-44e7-91af-2fa26f31e68d] + X-Runtime: ['0.065152'] X-XSS-Protection: [1; mode=block] content-length: ['28'] status: {code: 404, message: Not Found} -- cgit v1.2.3 From bc7b9defe8b72b6ab14ade6828a98f4d6e82b1de Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Wed, 18 Apr 2018 22:07:03 +0200 Subject: Attempt 2 at fixing the tests for travis --- tests/cassettes/test_status_missing.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'tests/cassettes/test_status_missing.yaml') diff --git a/tests/cassettes/test_status_missing.yaml b/tests/cassettes/test_status_missing.yaml index d708757..f15a879 100644 --- a/tests/cassettes/test_status_missing.yaml +++ b/tests/cassettes/test_status_missing.yaml @@ -23,4 +23,28 @@ interactions: X-XSS-Protection: [1; mode=block] content-length: ['28'] status: {code: 404, message: Not Found} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] + Connection: [keep-alive] + User-Agent: [python-requests/2.9.1] + method: GET + uri: http://localhost:3000/api/v1/statuses/0 + response: + body: {string: '{"error":"Record not found"}'} + headers: + Cache-Control: [no-cache] + Content-Type: [application/json; charset=utf-8] + Transfer-Encoding: [chunked] + Vary: ['Accept-Encoding, Origin'] + X-Content-Type-Options: [nosniff] + X-Frame-Options: [SAMEORIGIN] + X-Request-Id: [2b985021-244e-4505-bb19-99e5c967692f] + X-Runtime: ['0.048510'] + X-XSS-Protection: [1; mode=block] + content-length: ['28'] + status: {code: 404, message: Not Found} version: 1 -- cgit v1.2.3 From a15d28d9d60128fd5551f05eccd8999b46f70f5e Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sun, 6 May 2018 01:37:13 +0200 Subject: Testing updates, can now test streaming API --- tests/cassettes/test_status_missing.yaml | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) (limited to 'tests/cassettes/test_status_missing.yaml') diff --git a/tests/cassettes/test_status_missing.yaml b/tests/cassettes/test_status_missing.yaml index f15a879..f3b1947 100644 --- a/tests/cassettes/test_status_missing.yaml +++ b/tests/cassettes/test_status_missing.yaml @@ -18,32 +18,8 @@ interactions: Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [a00b882a-5a15-44e7-91af-2fa26f31e68d] - X-Runtime: ['0.065152'] - X-XSS-Protection: [1; mode=block] - content-length: ['28'] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] - Connection: [keep-alive] - User-Agent: [python-requests/2.9.1] - method: GET - uri: http://localhost:3000/api/v1/statuses/0 - response: - body: {string: '{"error":"Record not found"}'} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Transfer-Encoding: [chunked] - Vary: ['Accept-Encoding, Origin'] - X-Content-Type-Options: [nosniff] - X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [2b985021-244e-4505-bb19-99e5c967692f] - X-Runtime: ['0.048510'] + X-Request-Id: [b9e17b7f-e9d6-4809-850a-f6ec4fc04c2e] + X-Runtime: ['0.020397'] X-XSS-Protection: [1; mode=block] content-length: ['28'] status: {code: 404, message: Not Found} -- cgit v1.2.3 From bb92f76e61063bbe59868659fb42824d3649c7b2 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sun, 6 May 2018 03:02:19 +0200 Subject: Refresh casettes and add some new ones --- tests/cassettes/test_status_missing.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/cassettes/test_status_missing.yaml') diff --git a/tests/cassettes/test_status_missing.yaml b/tests/cassettes/test_status_missing.yaml index f3b1947..36b217d 100644 --- a/tests/cassettes/test_status_missing.yaml +++ b/tests/cassettes/test_status_missing.yaml @@ -18,8 +18,8 @@ interactions: Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [b9e17b7f-e9d6-4809-850a-f6ec4fc04c2e] - X-Runtime: ['0.020397'] + X-Request-Id: [0c6db364-d3cd-42fe-a878-3c79e55c25b7] + X-Runtime: ['0.080970'] X-XSS-Protection: [1; mode=block] content-length: ['28'] status: {code: 404, message: Not Found} -- cgit v1.2.3