diff options
author | Lorenz Diener <[email protected]> | 2018-04-18 22:07:03 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-04-18 22:07:03 +0200 |
commit | bc7b9defe8b72b6ab14ade6828a98f4d6e82b1de (patch) | |
tree | 6cd17b03100aa61c1d0a224771577601a1851f59 /tests/cassettes/test_status_card.yaml | |
parent | 64ec9e20987072692227d8817d9fd99d497fea5e (diff) | |
download | mastodon.py-bc7b9defe8b72b6ab14ade6828a98f4d6e82b1de.tar.gz |
Attempt 2 at fixing the tests for travis
Diffstat (limited to 'tests/cassettes/test_status_card.yaml')
-rw-r--r-- | tests/cassettes/test_status_card.yaml | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/tests/cassettes/test_status_card.yaml b/tests/cassettes/test_status_card.yaml index fe9c863..5c58ab4 100644 --- a/tests/cassettes/test_status_card.yaml +++ b/tests/cassettes/test_status_card.yaml | |||
@@ -83,4 +83,88 @@ interactions: | |||
83 | X-XSS-Protection: [1; mode=block] | 83 | X-XSS-Protection: [1; mode=block] |
84 | content-length: ['2'] | 84 | content-length: ['2'] |
85 | status: {code: 200, message: OK} | 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] | ||
168 | content-length: ['2'] | ||
169 | status: {code: 200, message: OK} | ||
86 | version: 1 | 170 | version: 1 |