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_toot.yaml
parentad6b8eeb044760adf4b420199164b245012350f4 (diff)
downloadmastodon.py-a15d28d9d60128fd5551f05eccd8999b46f70f5e.tar.gz
Testing updates, can now test streaming API
Diffstat (limited to 'tests/cassettes/test_toot.yaml')
-rw-r--r--tests/cassettes/test_toot.yaml76
1 files changed, 10 insertions, 66 deletions
diff --git a/tests/cassettes/test_toot.yaml b/tests/cassettes/test_toot.yaml
index 84f88da..0f57a5f 100644
--- a/tests/cassettes/test_toot.yaml
+++ b/tests/cassettes/test_toot.yaml
@@ -12,22 +12,22 @@ interactions:
12 method: POST 12 method: POST
13 uri: http://localhost:3000/api/v1/statuses 13 uri: http://localhost:3000/api/v1/statuses
14 response: 14 response:
15 body: {string: '{"id":"99882190398584514","created_at":"2018-04-18T19:54:34.424Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882190398584514","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882190398584514","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 15 body: {string: '{"id":"99979314890919670","created_at":"2018-05-05T23:34:36.558Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979314890919670","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979314890919670","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
16 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 16 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
17 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI 17 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
18 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":22},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 18 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":126},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
19 headers: 19 headers:
20 Cache-Control: ['max-age=0, private, must-revalidate'] 20 Cache-Control: ['max-age=0, private, must-revalidate']
21 Content-Type: [application/json; charset=utf-8] 21 Content-Type: [application/json; charset=utf-8]
22 ETag: [W/"1e787d90bf1b9250d2da105803b7b14a"] 22 ETag: [W/"45ad5ed1ae78d0de04c85ab5e14e241e"]
23 Transfer-Encoding: [chunked] 23 Transfer-Encoding: [chunked]
24 Vary: ['Accept-Encoding, Origin'] 24 Vary: ['Accept-Encoding, Origin']
25 X-Content-Type-Options: [nosniff] 25 X-Content-Type-Options: [nosniff]
26 X-Frame-Options: [SAMEORIGIN] 26 X-Frame-Options: [SAMEORIGIN]
27 X-Request-Id: [4932ef43-8a93-4dba-8a0a-06ba7fc3eb4e] 27 X-Request-Id: [f443dde5-6709-4885-be68-d17c03ae9081]
28 X-Runtime: ['0.353507'] 28 X-Runtime: ['0.282265']
29 X-XSS-Protection: [1; mode=block] 29 X-XSS-Protection: [1; mode=block]
30 content-length: ['1397'] 30 content-length: ['1398']
31 status: {code: 200, message: OK} 31 status: {code: 200, message: OK}
32- request: 32- request:
33 body: null 33 body: null
@@ -39,75 +39,19 @@ interactions:
39 Content-Length: ['0'] 39 Content-Length: ['0']
40 User-Agent: [python-requests/2.9.1] 40 User-Agent: [python-requests/2.9.1]
41 method: DELETE 41 method: DELETE
42 uri: http://localhost:3000/api/v1/statuses/99882190398584514 42 uri: http://localhost:3000/api/v1/statuses/99979314890919670
43 response: 43 response:
44 body: {string: '{}'} 44 body: {string: '{}'}
45 headers: 45 headers:
46 Cache-Control: ['max-age=0, private, must-revalidate'] 46 Cache-Control: ['max-age=0, private, must-revalidate']
47 Content-Type: [application/json; charset=utf-8] 47 Content-Type: [application/json; charset=utf-8]
48 ETag: [W/"806ece446887d6ca6cf63f1c2108aea6"] 48 ETag: [W/"6d7c1bd8ce441365adf355524275d06a"]
49 Transfer-Encoding: [chunked] 49 Transfer-Encoding: [chunked]
50 Vary: ['Accept-Encoding, Origin'] 50 Vary: ['Accept-Encoding, Origin']
51 X-Content-Type-Options: [nosniff] 51 X-Content-Type-Options: [nosniff]
52 X-Frame-Options: [SAMEORIGIN] 52 X-Frame-Options: [SAMEORIGIN]
53 X-Request-Id: [a086dae6-d9fc-4b9e-abdf-ba6b78406b2a] 53 X-Request-Id: [a7cb3d9e-9252-48ea-b645-8d5ae91a32af]
54 X-Runtime: ['0.037392'] 54 X-Runtime: ['0.113149']
55 X-XSS-Protection: [1; mode=block]
56 content-length: ['2']
57 status: {code: 200, message: OK}
58- request:
59 body: status=Toot%21
60 headers:
61 Accept: ['*/*']
62 Accept-Encoding: ['gzip, deflate']
63 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
64 Connection: [keep-alive]
65 Content-Length: ['14']
66 Content-Type: [application/x-www-form-urlencoded]
67 User-Agent: [python-requests/2.9.1]
68 method: POST
69 uri: http://localhost:3000/api/v1/statuses
70 response:
71 body: {string: '{"id":"99882235079148960","created_at":"2018-04-18T20:05:56.189Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882235079148960","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882235079148960","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
72 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
73 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
74 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":22},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
75 headers:
76 Cache-Control: ['max-age=0, private, must-revalidate']
77 Content-Type: [application/json; charset=utf-8]
78 ETag: [W/"6893770839db996acd9eb449ce81c0b4"]
79 Transfer-Encoding: [chunked]
80 Vary: ['Accept-Encoding, Origin']
81 X-Content-Type-Options: [nosniff]
82 X-Frame-Options: [SAMEORIGIN]
83 X-Request-Id: [2f597734-b28a-49ee-9f5c-320c3d15054a]
84 X-Runtime: ['0.346618']
85 X-XSS-Protection: [1; mode=block]
86 content-length: ['1397']
87 status: {code: 200, message: OK}
88- request:
89 body: null
90 headers:
91 Accept: ['*/*']
92 Accept-Encoding: ['gzip, deflate']
93 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
94 Connection: [keep-alive]
95 Content-Length: ['0']
96 User-Agent: [python-requests/2.9.1]
97 method: DELETE
98 uri: http://localhost:3000/api/v1/statuses/99882235079148960
99 response:
100 body: {string: '{}'}
101 headers:
102 Cache-Control: ['max-age=0, private, must-revalidate']
103 Content-Type: [application/json; charset=utf-8]
104 ETag: [W/"ac363e8ba9b8f5d842145244890da769"]
105 Transfer-Encoding: [chunked]
106 Vary: ['Accept-Encoding, Origin']
107 X-Content-Type-Options: [nosniff]
108 X-Frame-Options: [SAMEORIGIN]
109 X-Request-Id: [f65e05cc-bacc-4f81-94c0-ff105abed1e1]
110 X-Runtime: ['0.135058']
111 X-XSS-Protection: [1; mode=block] 55 X-XSS-Protection: [1; mode=block]
112 content-length: ['2'] 56 content-length: ['2']
113 status: {code: 200, message: OK} 57 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)