diff options
author | Lorenz Diener <[email protected]> | 2018-05-06 01:37:13 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-05-06 01:37:13 +0200 |
commit | a15d28d9d60128fd5551f05eccd8999b46f70f5e (patch) | |
tree | 84c2e92799983594138a9a4fc4ec7dab429e52bf /tests/cassettes/test_unauthed_home_tl_throws.yaml | |
parent | ad6b8eeb044760adf4b420199164b245012350f4 (diff) | |
download | mastodon.py-a15d28d9d60128fd5551f05eccd8999b46f70f5e.tar.gz |
Testing updates, can now test streaming API
Diffstat (limited to 'tests/cassettes/test_unauthed_home_tl_throws.yaml')
-rw-r--r-- | tests/cassettes/test_unauthed_home_tl_throws.yaml | 106 |
1 files changed, 12 insertions, 94 deletions
diff --git a/tests/cassettes/test_unauthed_home_tl_throws.yaml b/tests/cassettes/test_unauthed_home_tl_throws.yaml index 1f76e94..5c754be 100644 --- a/tests/cassettes/test_unauthed_home_tl_throws.yaml +++ b/tests/cassettes/test_unauthed_home_tl_throws.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":"99882191147562266","created_at":"2018-04-18T19:54:45.865Z","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/99882191147562266","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882191147562266","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 15 | body: {string: '{"id":"99979317326985634","created_at":"2018-05-05T23:35:13.725Z","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/99979317326985634","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979317326985634","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/"7bcc64b6b6adda537951d86019008b83"] | 22 | ETag: [W/"b77843ada71578948ae4db91667c6be6"] |
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: [cd6de85f-337e-4ae5-8df7-e80fcdc3e306] | 27 | X-Request-Id: [e19dffdb-1512-4d45-ad1c-406894cabfb4] |
28 | X-Runtime: ['0.307556'] | 28 | X-Runtime: ['0.344094'] |
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 |
@@ -50,8 +50,8 @@ interactions: | |||
50 | access token is invalid"'] | 50 | access token is invalid"'] |
51 | X-Content-Type-Options: [nosniff] | 51 | X-Content-Type-Options: [nosniff] |
52 | X-Frame-Options: [SAMEORIGIN] | 52 | X-Frame-Options: [SAMEORIGIN] |
53 | X-Request-Id: [a5d6032b-51fa-4e80-9ae9-34b3a637410d] | 53 | X-Request-Id: [20355c9c-7672-4cac-b776-caa7a078e9e9] |
54 | X-Runtime: ['0.033747'] | 54 | X-Runtime: ['0.124826'] |
55 | X-XSS-Protection: [1; mode=block] | 55 | X-XSS-Protection: [1; mode=block] |
56 | content-length: ['39'] | 56 | content-length: ['39'] |
57 | status: {code: 401, message: Unauthorized} | 57 | status: {code: 401, message: Unauthorized} |
@@ -65,101 +65,19 @@ interactions: | |||
65 | Content-Length: ['0'] | 65 | Content-Length: ['0'] |
66 | User-Agent: [python-requests/2.9.1] | 66 | User-Agent: [python-requests/2.9.1] |
67 | method: DELETE | 67 | method: DELETE |
68 | uri: http://localhost:3000/api/v1/statuses/99882191147562266 | 68 | uri: http://localhost:3000/api/v1/statuses/99979317326985634 |
69 | response: | 69 | response: |
70 | body: {string: '{}'} | 70 | body: {string: '{}'} |
71 | headers: | 71 | headers: |
72 | Cache-Control: ['max-age=0, private, must-revalidate'] | 72 | Cache-Control: ['max-age=0, private, must-revalidate'] |
73 | Content-Type: [application/json; charset=utf-8] | 73 | Content-Type: [application/json; charset=utf-8] |
74 | ETag: [W/"0b1198f552bdd28fc5027660e64ecefd"] | 74 | ETag: [W/"0f4a2283d332a8ecf485beb1e2f25195"] |
75 | Transfer-Encoding: [chunked] | 75 | Transfer-Encoding: [chunked] |
76 | Vary: ['Accept-Encoding, Origin'] | 76 | Vary: ['Accept-Encoding, Origin'] |
77 | X-Content-Type-Options: [nosniff] | 77 | X-Content-Type-Options: [nosniff] |
78 | X-Frame-Options: [SAMEORIGIN] | 78 | X-Frame-Options: [SAMEORIGIN] |
79 | X-Request-Id: [c31c7abc-8d62-4640-99ee-0593416f7d64] | 79 | X-Request-Id: [30b73663-c899-4fa7-8e87-0a07d4a031bd] |
80 | X-Runtime: ['0.039456'] | 80 | X-Runtime: ['0.026732'] |
81 | X-XSS-Protection: [1; mode=block] | ||
82 | content-length: ['2'] | ||
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] | 81 | X-XSS-Protection: [1; mode=block] |
164 | content-length: ['2'] | 82 | content-length: ['2'] |
165 | status: {code: 200, message: OK} | 83 | status: {code: 200, message: OK} |