aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-05-06 02:26:19 +0200
committerLorenz Diener <[email protected]>2018-05-06 02:26:19 +0200
commitf8e209f6ff70d3be08b71b05f4cec753a9dac926 (patch)
tree01d8c51afadb49350b2fde718f2a5cb1351b2d2f /tests/cassettes
parentf34a1803a398a94f1231345145140291cd699398 (diff)
downloadmastodon.py-f8e209f6ff70d3be08b71b05f4cec753a9dac926.tar.gz
Add more tests
Diffstat (limited to 'tests/cassettes')
-rw-r--r--tests/cassettes/test_instance_activity.yaml28
-rw-r--r--tests/cassettes/test_instance_peers.yaml28
2 files changed, 56 insertions, 0 deletions
diff --git a/tests/cassettes/test_instance_activity.yaml b/tests/cassettes/test_instance_activity.yaml
new file mode 100644
index 0000000..f981c19
--- /dev/null
+++ b/tests/cassettes/test_instance_activity.yaml
@@ -0,0 +1,28 @@
1interactions:
2- request:
3 body: null
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
8 Connection: [keep-alive]
9 User-Agent: [python-requests/2.9.1]
10 method: GET
11 uri: http://localhost:3000/api/v1/instance/activity
12 response:
13 body: {string: '[{"week":"1525039200","statuses":"402","logins":"2","registrations":"0"},{"week":"1524434400","statuses":"0","logins":"0","registrations":"0"},{"week":"1523829600","statuses":"1514","logins":"2","registrations":"0"},{"week":"1523224800","statuses":"0","logins":"0","registrations":"0"},{"week":"1522620000","statuses":"0","logins":"0","registrations":"0"},{"week":"1522015200","statuses":"0","logins":"0","registrations":"0"},{"week":"1521414000","statuses":"0","logins":"0","registrations":"0"},{"week":"1520809200","statuses":"0","logins":"0","registrations":"0"},{"week":"1520204400","statuses":"0","logins":"0","registrations":"0"},{"week":"1519599600","statuses":"0","logins":"0","registrations":"0"},{"week":"1518994800","statuses":"0","logins":"0","registrations":"0"},{"week":"1518390000","statuses":"0","logins":"0","registrations":"0"}]'}
14 headers:
15 Cache-Control: ['max-age=86400, public']
16 Content-Type: [application/json; charset=utf-8]
17 Date: ['Sun, 06 May 2018 00:22:05 GMT']
18 ETag: [W/"58f08c236168987e365c17c22d5d7788"]
19 Transfer-Encoding: [chunked]
20 Vary: ['Accept-Encoding, Origin']
21 X-Content-Type-Options: [nosniff]
22 X-Frame-Options: [SAMEORIGIN]
23 X-Request-Id: [1155ee76-f23a-407c-a833-26e70c8efbe2]
24 X-Runtime: ['0.070592']
25 X-XSS-Protection: [1; mode=block]
26 content-length: ['846']
27 status: {code: 200, message: OK}
28version: 1
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 @@
1interactions:
2- request:
3 body: null
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
8 Connection: [keep-alive]
9 User-Agent: [python-requests/2.9.1]
10 method: GET
11 uri: http://localhost:3000/api/v1/instance/peers
12 response:
13 body: {string: '[]'}
14 headers:
15 Cache-Control: ['max-age=86400, public']
16 Content-Type: [application/json; charset=utf-8]
17 Date: ['Sun, 06 May 2018 00:24:52 GMT']
18 ETag: [W/"3c4a13455f997cff85b40946e8a0eb9d"]
19 Transfer-Encoding: [chunked]
20 Vary: ['Accept-Encoding, Origin']
21 X-Content-Type-Options: [nosniff]
22 X-Frame-Options: [SAMEORIGIN]
23 X-Request-Id: [98dc4df6-9979-4d50-8473-96f9253d65b9]
24 X-Runtime: ['0.031372']
25 X-XSS-Protection: [1; mode=block]
26 content-length: ['2']
27 status: {code: 200, message: OK}
28version: 1
Powered by cgit v1.2.3 (git 2.41.0)