aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-05-06 01:37:13 +0200
committerLorenz Diener <[email protected]>2018-05-06 01:37:13 +0200
commita15d28d9d60128fd5551f05eccd8999b46f70f5e (patch)
tree84c2e92799983594138a9a4fc4ec7dab429e52bf /tests/cassettes/test_instance.yaml
parentad6b8eeb044760adf4b420199164b245012350f4 (diff)
downloadmastodon.py-a15d28d9d60128fd5551f05eccd8999b46f70f5e.tar.gz
Testing updates, can now test streaming API
Diffstat (limited to 'tests/cassettes/test_instance.yaml')
-rw-r--r--tests/cassettes/test_instance.yaml35
1 files changed, 5 insertions, 30 deletions
diff --git a/tests/cassettes/test_instance.yaml b/tests/cassettes/test_instance.yaml
index 679cc8c..68f3ada 100644
--- a/tests/cassettes/test_instance.yaml
+++ b/tests/cassettes/test_instance.yaml
@@ -10,43 +10,18 @@ interactions:
10 method: GET 10 method: GET
11 uri: http://localhost:3000/api/v1/instance/ 11 uri: http://localhost:3000/api/v1/instance/
12 response: 12 response:
13 body: {string: '{"uri":"localhost:3000","title":"Mastodon","description":"","email":"","version":"2.3.3","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":2,"status_count":40,"domain_count":0},"thumbnail":"http://localhost:3000/packs/preview.jpg","languages":["en"],"contact_account":null}'} 13 body: {string: '{"uri":"localhost:3000","title":"Mastodon","description":"","email":"","version":"2.3.3","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":2,"status_count":163,"domain_count":0},"thumbnail":"http://localhost:3000/packs/preview.jpg","languages":["en"],"contact_account":null}'}
14 headers: 14 headers:
15 Cache-Control: ['max-age=0, private, must-revalidate'] 15 Cache-Control: ['max-age=0, private, must-revalidate']
16 Content-Type: [application/json; charset=utf-8] 16 Content-Type: [application/json; charset=utf-8]
17 ETag: [W/"cc006bfb3d7d0e9c8ba0152279a6e0fc"] 17 ETag: [W/"6369e79e89641d4226da4d0b29bf6bd3"]
18 Transfer-Encoding: [chunked] 18 Transfer-Encoding: [chunked]
19 Vary: ['Accept-Encoding, Origin'] 19 Vary: ['Accept-Encoding, Origin']
20 X-Content-Type-Options: [nosniff] 20 X-Content-Type-Options: [nosniff]
21 X-Frame-Options: [SAMEORIGIN] 21 X-Frame-Options: [SAMEORIGIN]
22 X-Request-Id: [25947583-c3d8-4be9-bc34-6e2aeda8975d] 22 X-Request-Id: [2efe3e9c-3a21-4fb3-a48d-c7cd6c0447f4]
23 X-Runtime: ['0.182618'] 23 X-Runtime: ['0.123283']
24 X-XSS-Protection: [1; mode=block] 24 X-XSS-Protection: [1; mode=block]
25 content-length: ['292'] 25 content-length: ['293']
26 status: {code: 200, message: OK}
27- request:
28 body: null
29 headers:
30 Accept: ['*/*']
31 Accept-Encoding: ['gzip, deflate']
32 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
33 Connection: [keep-alive]
34 User-Agent: [python-requests/2.9.1]
35 method: GET
36 uri: http://localhost:3000/api/v1/instance/
37 response:
38 body: {string: '{"uri":"localhost:3000","title":"Mastodon","description":"","email":"","version":"2.3.3","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":2,"status_count":40,"domain_count":0},"thumbnail":"http://localhost:3000/packs/preview.jpg","languages":["en"],"contact_account":null}'}
39 headers:
40 Cache-Control: ['max-age=0, private, must-revalidate']
41 Content-Type: [application/json; charset=utf-8]
42 ETag: [W/"d10838ec1c36f518f9275bc7bac36c3d"]
43 Transfer-Encoding: [chunked]
44 Vary: ['Accept-Encoding, Origin']
45 X-Content-Type-Options: [nosniff]
46 X-Frame-Options: [SAMEORIGIN]
47 X-Request-Id: [96e4f613-a2eb-4e63-b237-257989333b97]
48 X-Runtime: ['0.192588']
49 X-XSS-Protection: [1; mode=block]
50 content-length: ['292']
51 status: {code: 200, message: OK} 26 status: {code: 200, message: OK}
52version: 1 27version: 1
Powered by cgit v1.2.3 (git 2.41.0)