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_card.yaml
parentad6b8eeb044760adf4b420199164b245012350f4 (diff)
downloadmastodon.py-a15d28d9d60128fd5551f05eccd8999b46f70f5e.tar.gz
Testing updates, can now test streaming API
Diffstat (limited to 'tests/cassettes/test_status_card.yaml')
-rw-r--r--tests/cassettes/test_status_card.yaml114
1 files changed, 15 insertions, 99 deletions
diff --git a/tests/cassettes/test_status_card.yaml b/tests/cassettes/test_status_card.yaml
index 5c58ab4..2c0c3fb 100644
--- a/tests/cassettes/test_status_card.yaml
+++ b/tests/cassettes/test_status_card.yaml
@@ -12,25 +12,25 @@ 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":"99882189848195232","created_at":"2018-04-18T19:54:26.044Z","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/99882189848195232","content":"\u003cp\u003e\u003ca 15 body: {string: '{"id":"99979314393332835","created_at":"2018-05-05T23:34:28.961Z","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/99979314393332835","content":"\u003cp\u003e\u003ca
16 href=\"http://example.org/\" rel=\"nofollow noopener\" target=\"_blank\"\u003e\u003cspan 16 href=\"http://example.org/\" rel=\"nofollow noopener\" target=\"_blank\"\u003e\u003cspan
17 class=\"invisible\"\u003ehttp://\u003c/span\u003e\u003cspan class=\"\"\u003eexample.org/\u003c/span\u003e\u003cspan 17 class=\"invisible\"\u003ehttp://\u003c/span\u003e\u003cspan class=\"\"\u003eexample.org/\u003c/span\u003e\u003cspan
18 class=\"invisible\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882189848195232","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 18 class=\"invisible\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979314393332835","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
19 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 19 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
20 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI 20 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
21 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":21},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 21 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":[]}'}
22 headers: 22 headers:
23 Cache-Control: ['max-age=0, private, must-revalidate'] 23 Cache-Control: ['max-age=0, private, must-revalidate']
24 Content-Type: [application/json; charset=utf-8] 24 Content-Type: [application/json; charset=utf-8]
25 ETag: [W/"253153c1717af3b3acd11df6d285ae9b"] 25 ETag: [W/"9eabf976d9036c167325c4f02e8c53d9"]
26 Transfer-Encoding: [chunked] 26 Transfer-Encoding: [chunked]
27 Vary: ['Accept-Encoding, Origin'] 27 Vary: ['Accept-Encoding, Origin']
28 X-Content-Type-Options: [nosniff] 28 X-Content-Type-Options: [nosniff]
29 X-Frame-Options: [SAMEORIGIN] 29 X-Frame-Options: [SAMEORIGIN]
30 X-Request-Id: [bf08abbf-c6e0-4476-8da0-5576e7280172] 30 X-Request-Id: [e56e1a05-8c00-4cfe-a2b9-92d40d2d04c2]
31 X-Runtime: ['0.253183'] 31 X-Runtime: ['0.219044']
32 X-XSS-Protection: [1; mode=block] 32 X-XSS-Protection: [1; mode=block]
33 content-length: ['1661'] 33 content-length: ['1662']
34 status: {code: 200, message: OK} 34 status: {code: 200, message: OK}
35- request: 35- request:
36 body: null 36 body: null
@@ -41,19 +41,19 @@ interactions:
41 Connection: [keep-alive] 41 Connection: [keep-alive]
42 User-Agent: [python-requests/2.9.1] 42 User-Agent: [python-requests/2.9.1]
43 method: GET 43 method: GET
44 uri: http://localhost:3000/api/v1/statuses/99882189848195232/card 44 uri: http://localhost:3000/api/v1/statuses/99979314393332835/card
45 response: 45 response:
46 body: {string: '{"url":"http://example.org/","title":"Example Domain","description":"","type":"link","author_name":"","author_url":"","provider_name":"","provider_url":"","html":"","width":0,"height":0,"image":null,"embed_url":""}'} 46 body: {string: '{"url":"http://example.org/","title":"Example Domain","description":"","type":"link","author_name":"","author_url":"","provider_name":"","provider_url":"","html":"","width":0,"height":0,"image":null,"embed_url":""}'}
47 headers: 47 headers:
48 Cache-Control: ['max-age=0, private, must-revalidate'] 48 Cache-Control: ['max-age=0, private, must-revalidate']
49 Content-Type: [application/json; charset=utf-8] 49 Content-Type: [application/json; charset=utf-8]
50 ETag: [W/"10bcdbc7fcdb1911122a58df5db01705"] 50 ETag: [W/"4f7368e0a66e823463714620923a890d"]
51 Transfer-Encoding: [chunked] 51 Transfer-Encoding: [chunked]
52 Vary: ['Accept-Encoding, Origin'] 52 Vary: ['Accept-Encoding, Origin']
53 X-Content-Type-Options: [nosniff] 53 X-Content-Type-Options: [nosniff]
54 X-Frame-Options: [SAMEORIGIN] 54 X-Frame-Options: [SAMEORIGIN]
55 X-Request-Id: [c5b10069-4462-405c-8234-c37ada09dd09] 55 X-Request-Id: [0deed838-1c95-4458-9b1e-061c3f797dda]
56 X-Runtime: ['0.045802'] 56 X-Runtime: ['0.067286']
57 X-XSS-Protection: [1; mode=block] 57 X-XSS-Protection: [1; mode=block]
58 content-length: ['214'] 58 content-length: ['214']
59 status: {code: 200, message: OK} 59 status: {code: 200, message: OK}
@@ -67,103 +67,19 @@ interactions:
67 Content-Length: ['0'] 67 Content-Length: ['0']
68 User-Agent: [python-requests/2.9.1] 68 User-Agent: [python-requests/2.9.1]
69 method: DELETE 69 method: DELETE
70 uri: http://localhost:3000/api/v1/statuses/99882189848195232 70 uri: http://localhost:3000/api/v1/statuses/99979314393332835
71 response: 71 response:
72 body: {string: '{}'} 72 body: {string: '{}'}
73 headers: 73 headers:
74 Cache-Control: ['max-age=0, private, must-revalidate'] 74 Cache-Control: ['max-age=0, private, must-revalidate']
75 Content-Type: [application/json; charset=utf-8] 75 Content-Type: [application/json; charset=utf-8]
76 ETag: [W/"10fae6062cee5b66a8a919b681eeb41f"] 76 ETag: [W/"26794a6479efb449e5cffad071c16385"]
77 Transfer-Encoding: [chunked] 77 Transfer-Encoding: [chunked]
78 Vary: ['Accept-Encoding, Origin'] 78 Vary: ['Accept-Encoding, Origin']
79 X-Content-Type-Options: [nosniff] 79 X-Content-Type-Options: [nosniff]
80 X-Frame-Options: [SAMEORIGIN] 80 X-Frame-Options: [SAMEORIGIN]
81 X-Request-Id: [570be2af-98ec-4579-8ead-f016bc67fa03] 81 X-Request-Id: [0dc2da09-6c6c-4e85-a843-35eb1b8298bf]
82 X-Runtime: ['0.056046'] 82 X-Runtime: ['0.024208']
83 X-XSS-Protection: [1; mode=block]
84 content-length: ['2']
85 status: {code: 200, message: OK}
86- request:
87 body: status=http%3A%2F%2Fexample.org%2F
88 headers:
89 Accept: ['*/*']
90 Accept-Encoding: ['gzip, deflate']
91 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
92 Connection: [keep-alive]
93 Content-Length: ['34']
94 Content-Type: [application/x-www-form-urlencoded]
95 User-Agent: [python-requests/2.9.1]
96 method: POST
97 uri: http://localhost:3000/api/v1/statuses
98 response:
99 body: {string: '{"id":"99882234588104257","created_at":"2018-04-18T20:05:48.724Z","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/99882234588104257","content":"\u003cp\u003e\u003ca
100 href=\"http://example.org/\" rel=\"nofollow noopener\" target=\"_blank\"\u003e\u003cspan
101 class=\"invisible\"\u003ehttp://\u003c/span\u003e\u003cspan class=\"\"\u003eexample.org/\u003c/span\u003e\u003cspan
102 class=\"invisible\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882234588104257","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
103 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
104 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
105 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":21},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
106 headers:
107 Cache-Control: ['max-age=0, private, must-revalidate']
108 Content-Type: [application/json; charset=utf-8]
109 ETag: [W/"08b2da67f8428128f88ba11314af854e"]
110 Transfer-Encoding: [chunked]
111 Vary: ['Accept-Encoding, Origin']
112 X-Content-Type-Options: [nosniff]
113 X-Frame-Options: [SAMEORIGIN]
114 X-Request-Id: [19f7b501-0809-4166-99a3-81624080840d]
115 X-Runtime: ['0.275347']
116 X-XSS-Protection: [1; mode=block]
117 content-length: ['1661']
118 status: {code: 200, message: OK}
119- request:
120 body: null
121 headers:
122 Accept: ['*/*']
123 Accept-Encoding: ['gzip, deflate']
124 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
125 Connection: [keep-alive]
126 User-Agent: [python-requests/2.9.1]
127 method: GET
128 uri: http://localhost:3000/api/v1/statuses/99882234588104257/card
129 response:
130 body: {string: '{"url":"http://example.org/","title":"Example Domain","description":"","type":"link","author_name":"","author_url":"","provider_name":"","provider_url":"","html":"","width":0,"height":0,"image":null,"embed_url":""}'}
131 headers:
132 Cache-Control: ['max-age=0, private, must-revalidate']
133 Content-Type: [application/json; charset=utf-8]
134 ETag: [W/"f58afcf1bb4d6dca630dada1dbcdd7e0"]
135 Transfer-Encoding: [chunked]
136 Vary: ['Accept-Encoding, Origin']
137 X-Content-Type-Options: [nosniff]
138 X-Frame-Options: [SAMEORIGIN]
139 X-Request-Id: [7545b5e0-beaf-4660-a336-37fd3267ff9e]
140 X-Runtime: ['0.041132']
141 X-XSS-Protection: [1; mode=block]
142 content-length: ['214']
143 status: {code: 200, message: OK}
144- request:
145 body: null
146 headers:
147 Accept: ['*/*']
148 Accept-Encoding: ['gzip, deflate']
149 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
150 Connection: [keep-alive]
151 Content-Length: ['0']
152 User-Agent: [python-requests/2.9.1]
153 method: DELETE
154 uri: http://localhost:3000/api/v1/statuses/99882234588104257
155 response:
156 body: {string: '{}'}
157 headers:
158 Cache-Control: ['max-age=0, private, must-revalidate']
159 Content-Type: [application/json; charset=utf-8]
160 ETag: [W/"77ec19fce2addb8562645e76ed4cfea9"]
161 Transfer-Encoding: [chunked]
162 Vary: ['Accept-Encoding, Origin']
163 X-Content-Type-Options: [nosniff]
164 X-Frame-Options: [SAMEORIGIN]
165 X-Request-Id: [a347c160-48d8-47c3-9a3b-f4e6bb6943e6]
166 X-Runtime: ['0.043616']
167 X-XSS-Protection: [1; mode=block] 83 X-XSS-Protection: [1; mode=block]
168 content-length: ['2'] 84 content-length: ['2']
169 status: {code: 200, message: OK} 85 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)