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_follow_requests.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/cassettes/test_follow_requests.yaml') diff --git a/tests/cassettes/test_follow_requests.yaml b/tests/cassettes/test_follow_requests.yaml index 2fdc788..9275051 100644 --- a/tests/cassettes/test_follow_requests.yaml +++ b/tests/cassettes/test_follow_requests.yaml @@ -6,7 +6,7 @@ interactions: Accept-Encoding: ['gzip, deflate'] 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/follow_requests response: @@ -14,13 +14,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"7f1d3431d40cc617f6f01b30e477e673"] + ETag: [W/"21eeab19553364284817ace739f8a425"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [a8b8606f-2fe9-4f6d-a236-6db318021be1] - X-Runtime: ['0.028856'] + X-Request-Id: [3d70637b-b74d-4d79-b539-b6083c1b2df2] + X-Runtime: ['0.055493'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- 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_follow_requests.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'tests/cassettes/test_follow_requests.yaml') diff --git a/tests/cassettes/test_follow_requests.yaml b/tests/cassettes/test_follow_requests.yaml index 9275051..66a1d39 100644 --- a/tests/cassettes/test_follow_requests.yaml +++ b/tests/cassettes/test_follow_requests.yaml @@ -24,4 +24,29 @@ interactions: X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} +- 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/follow_requests + response: + body: {string: '[]'} + headers: + Cache-Control: ['max-age=0, private, must-revalidate'] + Content-Type: [application/json; charset=utf-8] + ETag: [W/"c5c39439192aea078e580e62323ed861"] + Transfer-Encoding: [chunked] + Vary: ['Accept-Encoding, Origin'] + X-Content-Type-Options: [nosniff] + X-Frame-Options: [SAMEORIGIN] + X-Request-Id: [20a919e7-9bed-478d-a851-448dbb53fdd7] + X-Runtime: ['0.086047'] + X-XSS-Protection: [1; mode=block] + content-length: ['2'] + status: {code: 200, message: OK} 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_follow_requests.yaml | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) (limited to 'tests/cassettes/test_follow_requests.yaml') diff --git a/tests/cassettes/test_follow_requests.yaml b/tests/cassettes/test_follow_requests.yaml index 66a1d39..94c03e0 100644 --- a/tests/cassettes/test_follow_requests.yaml +++ b/tests/cassettes/test_follow_requests.yaml @@ -14,38 +14,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"21eeab19553364284817ace739f8a425"] + ETag: [W/"89604aa02b378e391010cf1ac73dbf0d"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [3d70637b-b74d-4d79-b539-b6083c1b2df2] - X-Runtime: ['0.055493'] - X-XSS-Protection: [1; mode=block] - content-length: ['2'] - status: {code: 200, message: OK} -- 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/follow_requests - response: - body: {string: '[]'} - headers: - Cache-Control: ['max-age=0, private, must-revalidate'] - Content-Type: [application/json; charset=utf-8] - ETag: [W/"c5c39439192aea078e580e62323ed861"] - Transfer-Encoding: [chunked] - Vary: ['Accept-Encoding, Origin'] - X-Content-Type-Options: [nosniff] - X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [20a919e7-9bed-478d-a851-448dbb53fdd7] - X-Runtime: ['0.086047'] + X-Request-Id: [ac56cc14-5dd4-4fca-844c-20aa6dad51d9] + X-Runtime: ['0.077052'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- 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_follow_requests.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/cassettes/test_follow_requests.yaml') diff --git a/tests/cassettes/test_follow_requests.yaml b/tests/cassettes/test_follow_requests.yaml index 94c03e0..a6439b2 100644 --- a/tests/cassettes/test_follow_requests.yaml +++ b/tests/cassettes/test_follow_requests.yaml @@ -14,13 +14,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"89604aa02b378e391010cf1ac73dbf0d"] + ETag: [W/"1ec378ccea68001b120ba03b14cc7095"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [ac56cc14-5dd4-4fca-844c-20aa6dad51d9] - X-Runtime: ['0.077052'] + X-Request-Id: [1ce7c724-fc02-43ec-ac83-740dd1152e3d] + X-Runtime: ['0.050591'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3