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_favourites.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/cassettes/test_favourites.yaml') diff --git a/tests/cassettes/test_favourites.yaml b/tests/cassettes/test_favourites.yaml index 1bba85f..9d3dcff 100644 --- a/tests/cassettes/test_favourites.yaml +++ b/tests/cassettes/test_favourites.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/favourites response: @@ -14,13 +14,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"81bd415584c93a9b65e719202c32c8f6"] + ETag: [W/"68f51f2861ca2f405c6b0f9e4eefaa0e"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [0cc085dc-b2c7-4524-9dbf-4b9449f4aa79] - X-Runtime: ['0.029419'] + X-Request-Id: [a548720a-a7ec-4d08-af69-e8a8cd1b9275] + X-Runtime: ['0.172379'] 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_favourites.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'tests/cassettes/test_favourites.yaml') diff --git a/tests/cassettes/test_favourites.yaml b/tests/cassettes/test_favourites.yaml index 9d3dcff..86c5ef6 100644 --- a/tests/cassettes/test_favourites.yaml +++ b/tests/cassettes/test_favourites.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/favourites + response: + body: {string: '[]'} + headers: + Cache-Control: ['max-age=0, private, must-revalidate'] + Content-Type: [application/json; charset=utf-8] + ETag: [W/"2ed7bf17170937e37fdd46b27c08ffc1"] + Transfer-Encoding: [chunked] + Vary: ['Accept-Encoding, Origin'] + X-Content-Type-Options: [nosniff] + X-Frame-Options: [SAMEORIGIN] + X-Request-Id: [ac50ed92-8c5a-48eb-b6ad-b06b921f6426] + X-Runtime: ['0.158843'] + 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_favourites.yaml | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) (limited to 'tests/cassettes/test_favourites.yaml') diff --git a/tests/cassettes/test_favourites.yaml b/tests/cassettes/test_favourites.yaml index 86c5ef6..6616043 100644 --- a/tests/cassettes/test_favourites.yaml +++ b/tests/cassettes/test_favourites.yaml @@ -14,38 +14,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"68f51f2861ca2f405c6b0f9e4eefaa0e"] + ETag: [W/"4ccaca5da883144fd521df8ed7984202"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [a548720a-a7ec-4d08-af69-e8a8cd1b9275] - X-Runtime: ['0.172379'] - 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/favourites - response: - body: {string: '[]'} - headers: - Cache-Control: ['max-age=0, private, must-revalidate'] - Content-Type: [application/json; charset=utf-8] - ETag: [W/"2ed7bf17170937e37fdd46b27c08ffc1"] - Transfer-Encoding: [chunked] - Vary: ['Accept-Encoding, Origin'] - X-Content-Type-Options: [nosniff] - X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [ac50ed92-8c5a-48eb-b6ad-b06b921f6426] - X-Runtime: ['0.158843'] + X-Request-Id: [28115f0a-32ee-4d6a-bd7b-19d28be551f0] + X-Runtime: ['0.106569'] 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_favourites.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/cassettes/test_favourites.yaml') diff --git a/tests/cassettes/test_favourites.yaml b/tests/cassettes/test_favourites.yaml index 6616043..14ea755 100644 --- a/tests/cassettes/test_favourites.yaml +++ b/tests/cassettes/test_favourites.yaml @@ -14,13 +14,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"4ccaca5da883144fd521df8ed7984202"] + ETag: [W/"8983004fb932f483142df60fe26420f7"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [28115f0a-32ee-4d6a-bd7b-19d28be551f0] - X-Runtime: ['0.106569'] + X-Request-Id: [cc69f1c1-5781-40b2-ba60-79b64335d7a1] + X-Runtime: ['0.154723'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3