From f8e209f6ff70d3be08b71b05f4cec753a9dac926 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sun, 6 May 2018 02:26:19 +0200 Subject: Add more tests --- tests/cassettes/test_instance_peers.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/cassettes/test_instance_peers.yaml (limited to 'tests/cassettes/test_instance_peers.yaml') diff --git a/tests/cassettes/test_instance_peers.yaml b/tests/cassettes/test_instance_peers.yaml new file mode 100644 index 0000000..0f70fc0 --- /dev/null +++ b/tests/cassettes/test_instance_peers.yaml @@ -0,0 +1,28 @@ +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/instance/peers + response: + body: {string: '[]'} + headers: + Cache-Control: ['max-age=86400, public'] + Content-Type: [application/json; charset=utf-8] + Date: ['Sun, 06 May 2018 00:24:52 GMT'] + ETag: [W/"3c4a13455f997cff85b40946e8a0eb9d"] + Transfer-Encoding: [chunked] + Vary: ['Accept-Encoding, Origin'] + X-Content-Type-Options: [nosniff] + X-Frame-Options: [SAMEORIGIN] + X-Request-Id: [98dc4df6-9979-4d50-8473-96f9253d65b9] + X-Runtime: ['0.031372'] + X-XSS-Protection: [1; mode=block] + content-length: ['2'] + status: {code: 200, message: OK} +version: 1 -- 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_instance_peers.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/cassettes/test_instance_peers.yaml') diff --git a/tests/cassettes/test_instance_peers.yaml b/tests/cassettes/test_instance_peers.yaml index 0f70fc0..0cac91f 100644 --- a/tests/cassettes/test_instance_peers.yaml +++ b/tests/cassettes/test_instance_peers.yaml @@ -14,14 +14,14 @@ interactions: headers: Cache-Control: ['max-age=86400, public'] Content-Type: [application/json; charset=utf-8] - Date: ['Sun, 06 May 2018 00:24:52 GMT'] - ETag: [W/"3c4a13455f997cff85b40946e8a0eb9d"] + Date: ['Sun, 06 May 2018 00:59:42 GMT'] + ETag: [W/"5df1bbcb99fdb348731d6100eec9b007"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [98dc4df6-9979-4d50-8473-96f9253d65b9] - X-Runtime: ['0.031372'] + X-Request-Id: [2275419d-3fd5-43ab-884b-acd98e31931a] + X-Runtime: ['0.041601'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3