aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_status_context.yaml')
-rw-r--r--tests/cassettes/test_status_context.yaml81
1 files changed, 81 insertions, 0 deletions
diff --git a/tests/cassettes/test_status_context.yaml b/tests/cassettes/test_status_context.yaml
index 5b6e7dc..055948b 100644
--- a/tests/cassettes/test_status_context.yaml
+++ b/tests/cassettes/test_status_context.yaml
@@ -80,4 +80,85 @@ interactions:
80 X-XSS-Protection: [1; mode=block] 80 X-XSS-Protection: [1; mode=block]
81 content-length: ['2'] 81 content-length: ['2']
82 status: {code: 200, message: OK} 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]
162 content-length: ['2']
163 status: {code: 200, message: OK}
83version: 1 164version: 1
Powered by cgit v1.2.3 (git 2.41.0)