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_status_context.yaml
parentad6b8eeb044760adf4b420199164b245012350f4 (diff)
downloadmastodon.py-a15d28d9d60128fd5551f05eccd8999b46f70f5e.tar.gz
Testing updates, can now test streaming API
Diffstat (limited to 'tests/cassettes/test_status_context.yaml')
-rw-r--r--tests/cassettes/test_status_context.yaml109
1 files changed, 14 insertions, 95 deletions
diff --git a/tests/cassettes/test_status_context.yaml b/tests/cassettes/test_status_context.yaml
index 055948b..6496588 100644
--- a/tests/cassettes/test_status_context.yaml
+++ b/tests/cassettes/test_status_context.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":"99882190211344513","created_at":"2018-04-18T19:54:31.583Z","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/99882190211344513","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882190211344513","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 15 body: {string: '{"id":"99979314757071830","created_at":"2018-05-05T23:34:34.511Z","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/99979314757071830","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979314757071830","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":127},"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/"a5576c824a708b8233c3eeb183244186"] 22 ETag: [W/"b3d278d27543626d9868877ede514970"]
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: [0a6d48d9-37d8-4eba-a9f5-703f4b8fccf3] 27 X-Request-Id: [689c526f-fbac-467e-8c35-d170c14897c4]
28 X-Runtime: ['0.410629'] 28 X-Runtime: ['0.265907']
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
@@ -38,19 +38,19 @@ interactions:
38 Connection: [keep-alive] 38 Connection: [keep-alive]
39 User-Agent: [python-requests/2.9.1] 39 User-Agent: [python-requests/2.9.1]
40 method: GET 40 method: GET
41 uri: http://localhost:3000/api/v1/statuses/99882190211344513/context 41 uri: http://localhost:3000/api/v1/statuses/99979314757071830/context
42 response: 42 response:
43 body: {string: '{"ancestors":[],"descendants":[]}'} 43 body: {string: '{"ancestors":[],"descendants":[]}'}
44 headers: 44 headers:
45 Cache-Control: ['max-age=0, private, must-revalidate'] 45 Cache-Control: ['max-age=0, private, must-revalidate']
46 Content-Type: [application/json; charset=utf-8] 46 Content-Type: [application/json; charset=utf-8]
47 ETag: [W/"9826c5850d078c7317212d81bb9dfcbf"] 47 ETag: [W/"618544de119d463484f3fd58948d8138"]
48 Transfer-Encoding: [chunked] 48 Transfer-Encoding: [chunked]
49 Vary: ['Accept-Encoding, Origin'] 49 Vary: ['Accept-Encoding, Origin']
50 X-Content-Type-Options: [nosniff] 50 X-Content-Type-Options: [nosniff]
51 X-Frame-Options: [SAMEORIGIN] 51 X-Frame-Options: [SAMEORIGIN]
52 X-Request-Id: [b889030f-d5f1-4c63-9172-02f13fb2dbd1] 52 X-Request-Id: [13a9afa2-7c18-41a9-8833-03fb2a9f5e6c]
53 X-Runtime: ['0.112523'] 53 X-Runtime: ['0.158826']
54 X-XSS-Protection: [1; mode=block] 54 X-XSS-Protection: [1; mode=block]
55 content-length: ['33'] 55 content-length: ['33']
56 status: {code: 200, message: OK} 56 status: {code: 200, message: OK}
@@ -64,100 +64,19 @@ interactions:
64 Content-Length: ['0'] 64 Content-Length: ['0']
65 User-Agent: [python-requests/2.9.1] 65 User-Agent: [python-requests/2.9.1]
66 method: DELETE 66 method: DELETE
67 uri: http://localhost:3000/api/v1/statuses/99882190211344513 67 uri: http://localhost:3000/api/v1/statuses/99979314757071830
68 response: 68 response:
69 body: {string: '{}'} 69 body: {string: '{}'}
70 headers: 70 headers:
71 Cache-Control: ['max-age=0, private, must-revalidate'] 71 Cache-Control: ['max-age=0, private, must-revalidate']
72 Content-Type: [application/json; charset=utf-8] 72 Content-Type: [application/json; charset=utf-8]
73 ETag: [W/"720b81f68dc6bc053bc6e5afe73b3567"] 73 ETag: [W/"26794a6479efb449e5cffad071c16385"]
74 Transfer-Encoding: [chunked] 74 Transfer-Encoding: [chunked]
75 Vary: ['Accept-Encoding, Origin'] 75 Vary: ['Accept-Encoding, Origin']
76 X-Content-Type-Options: [nosniff] 76 X-Content-Type-Options: [nosniff]
77 X-Frame-Options: [SAMEORIGIN] 77 X-Frame-Options: [SAMEORIGIN]
78 X-Request-Id: [e2cfc04d-af23-4f70-bfe9-5821415dfeeb] 78 X-Request-Id: [68411dcf-ccd2-4d4c-99db-9d5fc6f57088]
79 X-Runtime: ['0.042213'] 79 X-Runtime: ['0.026501']
80 X-XSS-Protection: [1; mode=block]
81 content-length: ['2']
82 status: {code: 200, message: OK}
83- request:
84 body: status=Toot%21
85 headers:
86 Accept: ['*/*']
87 Accept-Encoding: ['gzip, deflate']
88 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
89 Connection: [keep-alive]
90 Content-Length: ['14']
91 Content-Type: [application/x-www-form-urlencoded]
92 User-Agent: [python-requests/2.9.1]
93 method: POST
94 uri: http://localhost:3000/api/v1/statuses
95 response:
96 body: {string: '{"id":"99882234950248807","created_at":"2018-04-18T20:05:54.223Z","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/99882234950248807","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882234950248807","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
97 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
98 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
99 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":[]}'}
100 headers:
101 Cache-Control: ['max-age=0, private, must-revalidate']
102 Content-Type: [application/json; charset=utf-8]
103 ETag: [W/"aaaa98bbd07e9e43bf77e00d63fb188c"]
104 Transfer-Encoding: [chunked]
105 Vary: ['Accept-Encoding, Origin']
106 X-Content-Type-Options: [nosniff]
107 X-Frame-Options: [SAMEORIGIN]
108 X-Request-Id: [10a1f38a-1dbf-4a42-899a-ddb2b33f3ca5]
109 X-Runtime: ['0.322457']
110 X-XSS-Protection: [1; mode=block]
111 content-length: ['1397']
112 status: {code: 200, message: OK}
113- request:
114 body: null
115 headers:
116 Accept: ['*/*']
117 Accept-Encoding: ['gzip, deflate']
118 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
119 Connection: [keep-alive]
120 User-Agent: [python-requests/2.9.1]
121 method: GET
122 uri: http://localhost:3000/api/v1/statuses/99882234950248807/context
123 response:
124 body: {string: '{"ancestors":[],"descendants":[]}'}
125 headers:
126 Cache-Control: ['max-age=0, private, must-revalidate']
127 Content-Type: [application/json; charset=utf-8]
128 ETag: [W/"873f4cb09a4ce74bc805a3accd92d56b"]
129 Transfer-Encoding: [chunked]
130 Vary: ['Accept-Encoding, Origin']
131 X-Content-Type-Options: [nosniff]
132 X-Frame-Options: [SAMEORIGIN]
133 X-Request-Id: [c8f7af13-a473-4d84-af16-4fd2057dce07]
134 X-Runtime: ['0.046880']
135 X-XSS-Protection: [1; mode=block]
136 content-length: ['33']
137 status: {code: 200, message: OK}
138- request:
139 body: null
140 headers:
141 Accept: ['*/*']
142 Accept-Encoding: ['gzip, deflate']
143 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
144 Connection: [keep-alive]
145 Content-Length: ['0']
146 User-Agent: [python-requests/2.9.1]
147 method: DELETE
148 uri: http://localhost:3000/api/v1/statuses/99882234950248807
149 response:
150 body: {string: '{}'}
151 headers:
152 Cache-Control: ['max-age=0, private, must-revalidate']
153 Content-Type: [application/json; charset=utf-8]
154 ETag: [W/"77ec19fce2addb8562645e76ed4cfea9"]
155 Transfer-Encoding: [chunked]
156 Vary: ['Accept-Encoding, Origin']
157 X-Content-Type-Options: [nosniff]
158 X-Frame-Options: [SAMEORIGIN]
159 X-Request-Id: [68860ded-cd4a-457c-b4a1-75db9a82f06e]
160 X-Runtime: ['0.055338']
161 X-XSS-Protection: [1; mode=block] 80 X-XSS-Protection: [1; mode=block]
162 content-length: ['2'] 81 content-length: ['2']
163 status: {code: 200, message: OK} 82 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)