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_search.yaml
parentad6b8eeb044760adf4b420199164b245012350f4 (diff)
downloadmastodon.py-a15d28d9d60128fd5551f05eccd8999b46f70f5e.tar.gz
Testing updates, can now test streaming API
Diffstat (limited to 'tests/cassettes/test_search.yaml')
-rw-r--r--tests/cassettes/test_search.yaml37
1 files changed, 5 insertions, 32 deletions
diff --git a/tests/cassettes/test_search.yaml b/tests/cassettes/test_search.yaml
index 4c19f3f..595b9a9 100644
--- a/tests/cassettes/test_search.yaml
+++ b/tests/cassettes/test_search.yaml
@@ -8,49 +8,22 @@ interactions:
8 Connection: [keep-alive] 8 Connection: [keep-alive]
9 User-Agent: [python-requests/2.9.1] 9 User-Agent: [python-requests/2.9.1]
10 method: GET 10 method: GET
11 uri: http://localhost:3000/api/v1/search?resolve=False&q=mastodonpy_test
12 response:
13 body: {string: '{"hashtags":[],"accounts":[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
14 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
15 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":0,"statuses_count":20}],"statuses":[]}'}
16 headers:
17 Cache-Control: ['max-age=0, private, must-revalidate']
18 Content-Type: [application/json; charset=utf-8]
19 ETag: [W/"84101c086e2de90051e934cbdab2e716"]
20 Transfer-Encoding: [chunked]
21 Vary: ['Accept-Encoding, Origin']
22 X-Content-Type-Options: [nosniff]
23 X-Frame-Options: [SAMEORIGIN]
24 X-Request-Id: [483429ff-4087-41cb-8737-b4fa059ceda6]
25 X-Runtime: ['0.158090']
26 X-XSS-Protection: [1; mode=block]
27 content-length: ['807']
28 status: {code: 200, message: OK}
29- request:
30 body: null
31 headers:
32 Accept: ['*/*']
33 Accept-Encoding: ['gzip, deflate']
34 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
35 Connection: [keep-alive]
36 User-Agent: [python-requests/2.9.1]
37 method: GET
38 uri: http://localhost:3000/api/v1/search?q=mastodonpy_test&resolve=False 11 uri: http://localhost:3000/api/v1/search?q=mastodonpy_test&resolve=False
39 response: 12 response:
40 body: {string: '{"hashtags":[],"accounts":[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 13 body: {string: '{"hashtags":[],"accounts":[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
41 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI 14 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
42 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":20}],"statuses":[]}'} 15 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":125}],"statuses":[]}'}
43 headers: 16 headers:
44 Cache-Control: ['max-age=0, private, must-revalidate'] 17 Cache-Control: ['max-age=0, private, must-revalidate']
45 Content-Type: [application/json; charset=utf-8] 18 Content-Type: [application/json; charset=utf-8]
46 ETag: [W/"01cfd3d97b4f72a6e2e21ba6126687ad"] 19 ETag: [W/"c8669fc89db92f82e97f3276ada99db2"]
47 Transfer-Encoding: [chunked] 20 Transfer-Encoding: [chunked]
48 Vary: ['Accept-Encoding, Origin'] 21 Vary: ['Accept-Encoding, Origin']
49 X-Content-Type-Options: [nosniff] 22 X-Content-Type-Options: [nosniff]
50 X-Frame-Options: [SAMEORIGIN] 23 X-Frame-Options: [SAMEORIGIN]
51 X-Request-Id: [2ccb3e39-2cd4-4809-ba5f-9b47434342d5] 24 X-Request-Id: [326b3bc9-1107-49b5-9b19-d15eec4694e1]
52 X-Runtime: ['0.077626'] 25 X-Runtime: ['0.081327']
53 X-XSS-Protection: [1; mode=block] 26 X-XSS-Protection: [1; mode=block]
54 content-length: ['807'] 27 content-length: ['808']
55 status: {code: 200, message: OK} 28 status: {code: 200, message: OK}
56version: 1 29version: 1
Powered by cgit v1.2.3 (git 2.41.0)