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_notifications_clear.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/cassettes/test_notifications_clear.yaml') diff --git a/tests/cassettes/test_notifications_clear.yaml b/tests/cassettes/test_notifications_clear.yaml index edf5a35..0e60db1 100644 --- a/tests/cassettes/test_notifications_clear.yaml +++ b/tests/cassettes/test_notifications_clear.yaml @@ -7,7 +7,7 @@ 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/notifications/clear response: @@ -15,13 +15,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"35ef2e1d7c4d5273d1cb56508dccd187"] + ETag: [W/"d4da38b737b637a10ab07923eab9d3ae"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [08457d1a-6c84-4813-9949-0acfccd0251e] - X-Runtime: ['0.022075'] + X-Request-Id: [3ac94fb2-9e50-4d6a-93ba-cfe8618a6f5f] + X-Runtime: ['0.128606'] 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_notifications_clear.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'tests/cassettes/test_notifications_clear.yaml') diff --git a/tests/cassettes/test_notifications_clear.yaml b/tests/cassettes/test_notifications_clear.yaml index 0e60db1..2c0e321 100644 --- a/tests/cassettes/test_notifications_clear.yaml +++ b/tests/cassettes/test_notifications_clear.yaml @@ -25,4 +25,30 @@ 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] + Content-Length: ['0'] + User-Agent: [python-requests/2.9.1] + method: POST + uri: http://localhost:3000/api/v1/notifications/clear + response: + body: {string: '{}'} + headers: + Cache-Control: ['max-age=0, private, must-revalidate'] + Content-Type: [application/json; charset=utf-8] + ETag: [W/"7b3fbae952486bce9dc0f8ee9faa57e4"] + Transfer-Encoding: [chunked] + Vary: ['Accept-Encoding, Origin'] + X-Content-Type-Options: [nosniff] + X-Frame-Options: [SAMEORIGIN] + X-Request-Id: [f6e1e1e4-b16c-474f-81ba-a72557a386ef] + X-Runtime: ['0.186060'] + 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_notifications_clear.yaml | 32 +++------------------------ 1 file changed, 3 insertions(+), 29 deletions(-) (limited to 'tests/cassettes/test_notifications_clear.yaml') diff --git a/tests/cassettes/test_notifications_clear.yaml b/tests/cassettes/test_notifications_clear.yaml index 2c0e321..01ed680 100644 --- a/tests/cassettes/test_notifications_clear.yaml +++ b/tests/cassettes/test_notifications_clear.yaml @@ -15,39 +15,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"d4da38b737b637a10ab07923eab9d3ae"] + ETag: [W/"a013e103eb637791e3b7f8af4c2b53e5"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [3ac94fb2-9e50-4d6a-93ba-cfe8618a6f5f] - X-Runtime: ['0.128606'] - 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] - Content-Length: ['0'] - User-Agent: [python-requests/2.9.1] - method: POST - uri: http://localhost:3000/api/v1/notifications/clear - response: - body: {string: '{}'} - headers: - Cache-Control: ['max-age=0, private, must-revalidate'] - Content-Type: [application/json; charset=utf-8] - ETag: [W/"7b3fbae952486bce9dc0f8ee9faa57e4"] - Transfer-Encoding: [chunked] - Vary: ['Accept-Encoding, Origin'] - X-Content-Type-Options: [nosniff] - X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [f6e1e1e4-b16c-474f-81ba-a72557a386ef] - X-Runtime: ['0.186060'] + X-Request-Id: [842c90a6-1137-426f-8f1e-03cecd2bcdb5] + X-Runtime: ['0.109437'] 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_notifications_clear.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/cassettes/test_notifications_clear.yaml') diff --git a/tests/cassettes/test_notifications_clear.yaml b/tests/cassettes/test_notifications_clear.yaml index 01ed680..929cee0 100644 --- a/tests/cassettes/test_notifications_clear.yaml +++ b/tests/cassettes/test_notifications_clear.yaml @@ -15,13 +15,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"a013e103eb637791e3b7f8af4c2b53e5"] + ETag: [W/"3ad4db4e726583801f022c94bb06ffd0"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [842c90a6-1137-426f-8f1e-03cecd2bcdb5] - X-Runtime: ['0.109437'] + X-Request-Id: [0acd51b9-8660-4c42-88e8-088a1cd40aaf] + X-Runtime: ['0.098043'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3