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_unauthed_home_tl_throws.yaml | |
parent | 64ec9e20987072692227d8817d9fd99d497fea5e (diff) | |
download | mastodon.py-bc7b9defe8b72b6ab14ade6828a98f4d6e82b1de.tar.gz |
Attempt 2 at fixing the tests for travis
Diffstat (limited to 'tests/cassettes/test_unauthed_home_tl_throws.yaml')
-rw-r--r-- | tests/cassettes/test_unauthed_home_tl_throws.yaml | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/tests/cassettes/test_unauthed_home_tl_throws.yaml b/tests/cassettes/test_unauthed_home_tl_throws.yaml index f990d01..1f76e94 100644 --- a/tests/cassettes/test_unauthed_home_tl_throws.yaml +++ b/tests/cassettes/test_unauthed_home_tl_throws.yaml | |||
@@ -81,4 +81,86 @@ interactions: | |||
81 | X-XSS-Protection: [1; mode=block] | 81 | X-XSS-Protection: [1; mode=block] |
82 | content-length: ['2'] | 82 | content-length: ['2'] |
83 | status: {code: 200, message: OK} | 83 | status: {code: 200, message: OK} |
84 | - request: | ||
85 | body: status=Toot%21 | ||
86 | headers: | ||
87 | Accept: ['*/*'] | ||
88 | Accept-Encoding: ['gzip, deflate'] | ||
89 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
90 | Connection: [keep-alive] | ||
91 | Content-Length: ['14'] | ||
92 | Content-Type: [application/x-www-form-urlencoded] | ||
93 | User-Agent: [python-requests/2.9.1] | ||
94 | method: POST | ||
95 | uri: http://localhost:3000/api/v1/statuses | ||
96 | response: | ||
97 | body: {string: '{"id":"99882236086499731","created_at":"2018-04-18T20:06:11.584Z","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/99882236086499731","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882236086499731","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
98 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
99 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI | ||
100 | 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":[]}'} | ||
101 | headers: | ||
102 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
103 | Content-Type: [application/json; charset=utf-8] | ||
104 | ETag: [W/"d086a02b496c64243da4b6e9f0b9d345"] | ||
105 | Transfer-Encoding: [chunked] | ||
106 | Vary: ['Accept-Encoding, Origin'] | ||
107 | X-Content-Type-Options: [nosniff] | ||
108 | X-Frame-Options: [SAMEORIGIN] | ||
109 | X-Request-Id: [814f47c8-f21b-44eb-9166-e8f9f64612e2] | ||
110 | X-Runtime: ['0.590717'] | ||
111 | X-XSS-Protection: [1; mode=block] | ||
112 | content-length: ['1397'] | ||
113 | status: {code: 200, message: OK} | ||
114 | - request: | ||
115 | body: null | ||
116 | headers: | ||
117 | Accept: ['*/*'] | ||
118 | Accept-Encoding: ['gzip, deflate'] | ||
119 | Connection: [keep-alive] | ||
120 | User-Agent: [python-requests/2.9.1] | ||
121 | method: GET | ||
122 | uri: http://localhost:3000/api/v1/timelines/home | ||
123 | response: | ||
124 | body: {string: '{"error":"The access token is invalid"}'} | ||
125 | headers: | ||
126 | Cache-Control: [no-store] | ||
127 | Content-Type: [application/json; charset=utf-8] | ||
128 | Pragma: [no-cache] | ||
129 | Transfer-Encoding: [chunked] | ||
130 | Vary: ['Accept-Encoding, Origin'] | ||
131 | WWW-Authenticate: ['Bearer realm="Doorkeeper", error="invalid_token", error_description="The | ||
132 | access token is invalid"'] | ||
133 | X-Content-Type-Options: [nosniff] | ||
134 | X-Frame-Options: [SAMEORIGIN] | ||
135 | X-Request-Id: [9e4c224d-b14f-419a-a6a6-aff9e149e53d] | ||
136 | X-Runtime: ['0.045279'] | ||
137 | X-XSS-Protection: [1; mode=block] | ||
138 | content-length: ['39'] | ||
139 | status: {code: 401, message: Unauthorized} | ||
140 | - request: | ||
141 | body: null | ||
142 | headers: | ||
143 | Accept: ['*/*'] | ||
144 | Accept-Encoding: ['gzip, deflate'] | ||
145 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
146 | Connection: [keep-alive] | ||
147 | Content-Length: ['0'] | ||
148 | User-Agent: [python-requests/2.9.1] | ||
149 | method: DELETE | ||
150 | uri: http://localhost:3000/api/v1/statuses/99882236086499731 | ||
151 | response: | ||
152 | body: {string: '{}'} | ||
153 | headers: | ||
154 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
155 | Content-Type: [application/json; charset=utf-8] | ||
156 | ETag: [W/"31be3a5eb6592a5c3d47d9a40abd700e"] | ||
157 | Transfer-Encoding: [chunked] | ||
158 | Vary: ['Accept-Encoding, Origin'] | ||
159 | X-Content-Type-Options: [nosniff] | ||
160 | X-Frame-Options: [SAMEORIGIN] | ||
161 | X-Request-Id: [7a3fea66-f3d7-41c0-a99a-2bfa45e269ef] | ||
162 | X-Runtime: ['0.114865'] | ||
163 | X-XSS-Protection: [1; mode=block] | ||
164 | content-length: ['2'] | ||
165 | status: {code: 200, message: OK} | ||
84 | version: 1 | 166 | version: 1 |