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_mute_unmute.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'tests/cassettes/test_account_mute_unmute.yaml') diff --git a/tests/cassettes/test_account_mute_unmute.yaml b/tests/cassettes/test_account_mute_unmute.yaml index 16e70f8..6f2d18e 100644 --- a/tests/cassettes/test_account_mute_unmute.yaml +++ b/tests/cassettes/test_account_mute_unmute.yaml @@ -7,23 +7,23 @@ interactions: Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] Connection: [keep-alive] Content-Length: ['0'] - User-Agent: [python-requests/2.18.4] + User-Agent: [python-requests/2.9.1] method: POST uri: http://localhost:3000/api/v1/accounts/1/mute response: - body: {string: '{"id":"1","following":false,"followed_by":false,"blocking":false,"muting":true,"requested":false,"domain_blocking":false}'} + body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":true,"muting_notifications":true,"requested":false,"domain_blocking":false}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"29202955a4020108196abe86f9cd0179"] + ETag: [W/"bad0a6406a3864e574a59a1ccf46db20"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [45f28867-e291-4323-85fb-3f7a6f787a84] - X-Runtime: ['0.056882'] + X-Request-Id: [c8d0df54-8920-4d93-a426-2df9b1f20449] + X-Runtime: ['0.157243'] X-XSS-Protection: [1; mode=block] - content-length: ['121'] + content-length: ['173'] status: {code: 200, message: OK} - request: body: null @@ -33,22 +33,22 @@ interactions: Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] Connection: [keep-alive] Content-Length: ['0'] - User-Agent: [python-requests/2.18.4] + User-Agent: [python-requests/2.9.1] method: POST uri: http://localhost:3000/api/v1/accounts/1/unmute response: - body: {string: '{"id":"1","following":false,"followed_by":false,"blocking":false,"muting":false,"requested":false,"domain_blocking":false}'} + 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/"05e46d89ddd4fee200b318b7343c32b4"] + ETag: [W/"87221e47b85c075458d260d65c52aa13"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [2e3c386a-0ec4-46d6-9473-e47d242f91ce] - X-Runtime: ['0.041201'] + X-Request-Id: [22c3069c-f9e3-444c-ab9a-b330af09d17b] + X-Runtime: ['0.044107'] X-XSS-Protection: [1; mode=block] - content-length: ['122'] + 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_mute_unmute.yaml | 52 +++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'tests/cassettes/test_account_mute_unmute.yaml') diff --git a/tests/cassettes/test_account_mute_unmute.yaml b/tests/cassettes/test_account_mute_unmute.yaml index 6f2d18e..3ca8b55 100644 --- a/tests/cassettes/test_account_mute_unmute.yaml +++ b/tests/cassettes/test_account_mute_unmute.yaml @@ -51,4 +51,56 @@ 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] + Content-Length: ['0'] + User-Agent: [python-requests/2.9.1] + method: POST + uri: http://localhost:3000/api/v1/accounts/1/mute + response: + body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":true,"muting_notifications":true,"requested":false,"domain_blocking":false}'} + headers: + Cache-Control: ['max-age=0, private, must-revalidate'] + Content-Type: [application/json; charset=utf-8] + ETag: [W/"eb02aa306c43dc2cedd064423050e780"] + Transfer-Encoding: [chunked] + Vary: ['Accept-Encoding, Origin'] + X-Content-Type-Options: [nosniff] + X-Frame-Options: [SAMEORIGIN] + X-Request-Id: [a280815b-2e4b-4a4d-9daa-dd552e0ef497] + X-Runtime: ['0.180829'] + X-XSS-Protection: [1; mode=block] + content-length: ['173'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] + Connection: [keep-alive] + Content-Length: ['0'] + User-Agent: [python-requests/2.9.1] + method: POST + uri: http://localhost:3000/api/v1/accounts/1/unmute + 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/"229b5f1dd5df8ec902733f300aadca06"] + Transfer-Encoding: [chunked] + Vary: ['Accept-Encoding, Origin'] + X-Content-Type-Options: [nosniff] + X-Frame-Options: [SAMEORIGIN] + X-Request-Id: [be6655f4-5da9-4bf6-808e-9a4d01fc166b] + X-Runtime: ['0.068562'] + X-XSS-Protection: [1; mode=block] + content-length: ['175'] + 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_mute_unmute.yaml | 64 +++------------------------ 1 file changed, 6 insertions(+), 58 deletions(-) (limited to 'tests/cassettes/test_account_mute_unmute.yaml') diff --git a/tests/cassettes/test_account_mute_unmute.yaml b/tests/cassettes/test_account_mute_unmute.yaml index 3ca8b55..81b2fb4 100644 --- a/tests/cassettes/test_account_mute_unmute.yaml +++ b/tests/cassettes/test_account_mute_unmute.yaml @@ -15,13 +15,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"bad0a6406a3864e574a59a1ccf46db20"] + ETag: [W/"a2ef8797df0b890961779d6460232833"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [c8d0df54-8920-4d93-a426-2df9b1f20449] - X-Runtime: ['0.157243'] + X-Request-Id: [46a68ff1-d44a-4968-8644-fe2ccf895909] + X-Runtime: ['0.137282'] X-XSS-Protection: [1; mode=block] content-length: ['173'] status: {code: 200, message: OK} @@ -41,65 +41,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"87221e47b85c075458d260d65c52aa13"] + ETag: [W/"4e5bdb0c2073b9e61052d5ff830594ca"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [22c3069c-f9e3-444c-ab9a-b330af09d17b] - X-Runtime: ['0.044107'] - 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] - Content-Length: ['0'] - User-Agent: [python-requests/2.9.1] - method: POST - uri: http://localhost:3000/api/v1/accounts/1/mute - response: - body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":true,"muting_notifications":true,"requested":false,"domain_blocking":false}'} - headers: - Cache-Control: ['max-age=0, private, must-revalidate'] - Content-Type: [application/json; charset=utf-8] - ETag: [W/"eb02aa306c43dc2cedd064423050e780"] - Transfer-Encoding: [chunked] - Vary: ['Accept-Encoding, Origin'] - X-Content-Type-Options: [nosniff] - X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [a280815b-2e4b-4a4d-9daa-dd552e0ef497] - X-Runtime: ['0.180829'] - X-XSS-Protection: [1; mode=block] - content-length: ['173'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python-requests/2.9.1] - method: POST - uri: http://localhost:3000/api/v1/accounts/1/unmute - 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/"229b5f1dd5df8ec902733f300aadca06"] - Transfer-Encoding: [chunked] - Vary: ['Accept-Encoding, Origin'] - X-Content-Type-Options: [nosniff] - X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [be6655f4-5da9-4bf6-808e-9a4d01fc166b] - X-Runtime: ['0.068562'] + X-Request-Id: [badf01d7-f9ff-48b3-b7b3-b22bfcaafba0] + X-Runtime: ['0.077923'] X-XSS-Protection: [1; mode=block] content-length: ['175'] 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_mute_unmute.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/cassettes/test_account_mute_unmute.yaml') diff --git a/tests/cassettes/test_account_mute_unmute.yaml b/tests/cassettes/test_account_mute_unmute.yaml index 81b2fb4..0e64e3d 100644 --- a/tests/cassettes/test_account_mute_unmute.yaml +++ b/tests/cassettes/test_account_mute_unmute.yaml @@ -15,13 +15,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"a2ef8797df0b890961779d6460232833"] + ETag: [W/"b81ab7721168e5c5b1602fcbc3562a0c"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [46a68ff1-d44a-4968-8644-fe2ccf895909] - X-Runtime: ['0.137282'] + X-Request-Id: [bd36681b-28bd-4653-9bf7-c7afbc702904] + X-Runtime: ['0.171504'] X-XSS-Protection: [1; mode=block] content-length: ['173'] status: {code: 200, message: OK} @@ -41,13 +41,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"4e5bdb0c2073b9e61052d5ff830594ca"] + ETag: [W/"888df26b7845b092f4fbdb2b26c1f000"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [badf01d7-f9ff-48b3-b7b3-b22bfcaafba0] - X-Runtime: ['0.077923'] + X-Request-Id: [42c8e4f7-831e-47af-bb55-6a0a8b409ad5] + X-Runtime: ['0.044711'] X-XSS-Protection: [1; mode=block] content-length: ['175'] status: {code: 200, message: OK} -- cgit v1.2.3