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_relationships.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/cassettes/test_account_relationships.yaml') diff --git a/tests/cassettes/test_account_relationships.yaml b/tests/cassettes/test_account_relationships.yaml index 96e4e0c..a54171c 100644 --- a/tests/cassettes/test_account_relationships.yaml +++ b/tests/cassettes/test_account_relationships.yaml @@ -6,22 +6,22 @@ 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/relationships?id=1 response: - body: {string: '[{"id":"1","following":false,"followed_by":false,"blocking":false,"muting":false,"requested":false,"domain_blocking":false}]'} + body: {string: '[{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"62305384b0a973eadd31ca6bca1133e9"] + ETag: [W/"12d5a2183002439a527d0994653bd88e"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [825f3691-e858-4048-9dda-065917a2798a] - X-Runtime: ['0.031853'] + X-Request-Id: [b18690e8-8bc8-4740-9068-1388a2c6b506] + X-Runtime: ['0.059159'] X-XSS-Protection: [1; mode=block] - content-length: ['124'] + content-length: ['175'] status: {code: 200, message: OK} version: 1 -- 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_relationships.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'tests/cassettes/test_account_relationships.yaml') diff --git a/tests/cassettes/test_account_relationships.yaml b/tests/cassettes/test_account_relationships.yaml index a54171c..ed7a66a 100644 --- a/tests/cassettes/test_account_relationships.yaml +++ b/tests/cassettes/test_account_relationships.yaml @@ -24,4 +24,29 @@ interactions: X-XSS-Protection: [1; mode=block] content-length: ['175'] 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/relationships?id=1 + response: + body: {string: '[{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}]'} + headers: + Cache-Control: ['max-age=0, private, must-revalidate'] + Content-Type: [application/json; charset=utf-8] + ETag: [W/"fbf17fbd279a2aa92e05f444fd3a4467"] + Transfer-Encoding: [chunked] + Vary: ['Accept-Encoding, Origin'] + X-Content-Type-Options: [nosniff] + X-Frame-Options: [SAMEORIGIN] + X-Request-Id: [6ac6e3a9-f065-409a-87ae-2cc44d9fcfec] + X-Runtime: ['0.079264'] + X-XSS-Protection: [1; mode=block] + content-length: ['177'] + 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_relationships.yaml | 31 +++---------------------- 1 file changed, 3 insertions(+), 28 deletions(-) (limited to 'tests/cassettes/test_account_relationships.yaml') diff --git a/tests/cassettes/test_account_relationships.yaml b/tests/cassettes/test_account_relationships.yaml index ed7a66a..301fffc 100644 --- a/tests/cassettes/test_account_relationships.yaml +++ b/tests/cassettes/test_account_relationships.yaml @@ -1,29 +1,4 @@ interactions: -- 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/relationships?id=1 - response: - body: {string: '[{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}]'} - headers: - Cache-Control: ['max-age=0, private, must-revalidate'] - Content-Type: [application/json; charset=utf-8] - ETag: [W/"12d5a2183002439a527d0994653bd88e"] - Transfer-Encoding: [chunked] - Vary: ['Accept-Encoding, Origin'] - X-Content-Type-Options: [nosniff] - X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [b18690e8-8bc8-4740-9068-1388a2c6b506] - X-Runtime: ['0.059159'] - X-XSS-Protection: [1; mode=block] - content-length: ['175'] - status: {code: 200, message: OK} - request: body: null headers: @@ -39,13 +14,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"fbf17fbd279a2aa92e05f444fd3a4467"] + ETag: [W/"b0baab1111c457b31007d77e975704d0"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [6ac6e3a9-f065-409a-87ae-2cc44d9fcfec] - X-Runtime: ['0.079264'] + X-Request-Id: [50bc4815-b31a-4638-ac24-49adea9398e3] + X-Runtime: ['0.075910'] X-XSS-Protection: [1; mode=block] content-length: ['177'] 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_relationships.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/cassettes/test_account_relationships.yaml') diff --git a/tests/cassettes/test_account_relationships.yaml b/tests/cassettes/test_account_relationships.yaml index 301fffc..2dd1de2 100644 --- a/tests/cassettes/test_account_relationships.yaml +++ b/tests/cassettes/test_account_relationships.yaml @@ -14,13 +14,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"b0baab1111c457b31007d77e975704d0"] + ETag: [W/"3e42d518a1b884c880b4c2f0a1aa9bdb"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [50bc4815-b31a-4638-ac24-49adea9398e3] - X-Runtime: ['0.075910'] + X-Request-Id: [e05b693c-fc55-4e85-ba66-87c03b4c84a0] + X-Runtime: ['0.044903'] X-XSS-Protection: [1; mode=block] content-length: ['177'] status: {code: 200, message: OK} -- cgit v1.2.3