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_account_following.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/cassettes/test_account_following.yaml') diff --git a/tests/cassettes/test_account_following.yaml b/tests/cassettes/test_account_following.yaml index 1e872d1..a829afc 100644 --- a/tests/cassettes/test_account_following.yaml +++ b/tests/cassettes/test_account_following.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/accounts/1/following response: @@ -14,13 +14,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"c52068b0fe39c86669dce2267d90925e"] + ETag: [W/"8f60d171a8bf45967a7bf8d176eaee98"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [9df6a517-2e2e-499b-b0a5-0b1d6cea9f1a] - X-Runtime: ['0.037545'] + X-Request-Id: [2a001dba-c34a-49e1-ad77-40a8ffbccf3e] + X-Runtime: ['0.042274'] 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_account_following.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'tests/cassettes/test_account_following.yaml') diff --git a/tests/cassettes/test_account_following.yaml b/tests/cassettes/test_account_following.yaml index a829afc..f9e4d60 100644 --- a/tests/cassettes/test_account_following.yaml +++ b/tests/cassettes/test_account_following.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/accounts/1/following + response: + body: {string: '[]'} + headers: + Cache-Control: ['max-age=0, private, must-revalidate'] + Content-Type: [application/json; charset=utf-8] + ETag: [W/"5e588fc017a83fb7d2ef23e497250076"] + Transfer-Encoding: [chunked] + Vary: ['Accept-Encoding, Origin'] + X-Content-Type-Options: [nosniff] + X-Frame-Options: [SAMEORIGIN] + X-Request-Id: [bf22dd77-1d1b-4417-b8ff-985b9ae170de] + X-Runtime: ['0.069914'] + 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_account_following.yaml | 31 +++-------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) (limited to 'tests/cassettes/test_account_following.yaml') diff --git a/tests/cassettes/test_account_following.yaml b/tests/cassettes/test_account_following.yaml index f9e4d60..400ab8b 100644 --- a/tests/cassettes/test_account_following.yaml +++ b/tests/cassettes/test_account_following.yaml @@ -14,38 +14,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"8f60d171a8bf45967a7bf8d176eaee98"] + ETag: [W/"193e2c1d479871af01374c2c7017d903"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [2a001dba-c34a-49e1-ad77-40a8ffbccf3e] - X-Runtime: ['0.042274'] - 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/accounts/1/following - response: - body: {string: '[]'} - headers: - Cache-Control: ['max-age=0, private, must-revalidate'] - Content-Type: [application/json; charset=utf-8] - ETag: [W/"5e588fc017a83fb7d2ef23e497250076"] - Transfer-Encoding: [chunked] - Vary: ['Accept-Encoding, Origin'] - X-Content-Type-Options: [nosniff] - X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [bf22dd77-1d1b-4417-b8ff-985b9ae170de] - X-Runtime: ['0.069914'] + X-Request-Id: [1302f8d4-5d45-44f6-a574-c272e4644d50] + X-Runtime: ['0.065250'] 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_account_following.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/cassettes/test_account_following.yaml') diff --git a/tests/cassettes/test_account_following.yaml b/tests/cassettes/test_account_following.yaml index 400ab8b..1aae172 100644 --- a/tests/cassettes/test_account_following.yaml +++ b/tests/cassettes/test_account_following.yaml @@ -14,13 +14,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"193e2c1d479871af01374c2c7017d903"] + ETag: [W/"d21cc31537780b09e689112cad9f33d5"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [1302f8d4-5d45-44f6-a574-c272e4644d50] - X-Runtime: ['0.065250'] + X-Request-Id: [b621a881-773f-4ffe-afec-c3078063a75a] + X-Runtime: ['0.060834'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3