diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-17 20:50:23 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-17 20:50:23 +0200 |
commit | ec0194c643d1a59cae8a6c8137f382db8fb4e0aa (patch) | |
tree | 166f8191c1746d74c10209d4cf3065da7e9992b7 /tests/cassettes/test_min_max_id_datetimes.yaml | |
parent | 3ed1cf73999ceef24ea3bf8395855bdde3876573 (diff) | |
download | mastodon.py-ec0194c643d1a59cae8a6c8137f382db8fb4e0aa.tar.gz |
Add additional date based tests
Diffstat (limited to 'tests/cassettes/test_min_max_id_datetimes.yaml')
-rw-r--r-- | tests/cassettes/test_min_max_id_datetimes.yaml | 258 |
1 files changed, 258 insertions, 0 deletions
diff --git a/tests/cassettes/test_min_max_id_datetimes.yaml b/tests/cassettes/test_min_max_id_datetimes.yaml new file mode 100644 index 0000000..51414f0 --- /dev/null +++ b/tests/cassettes/test_min_max_id_datetimes.yaml | |||
@@ -0,0 +1,258 @@ | |||
1 | interactions: | ||
2 | - request: | ||
3 | body: status=Toot%21 | ||
4 | headers: | ||
5 | Accept: | ||
6 | - '*/*' | ||
7 | Accept-Encoding: | ||
8 | - gzip, deflate | ||
9 | Authorization: | ||
10 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
11 | Connection: | ||
12 | - keep-alive | ||
13 | Content-Length: | ||
14 | - '14' | ||
15 | Content-Type: | ||
16 | - application/x-www-form-urlencoded | ||
17 | User-Agent: | ||
18 | - tests/v311 | ||
19 | method: POST | ||
20 | uri: http://localhost:3000/api/v1/statuses | ||
21 | response: | ||
22 | body: | ||
23 | string: '{"id":"109360644459818976","created_at":"2022-11-17T18:50:05.553Z","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/109360644459818976","url":"http://localhost:3000/@mastodonpy_test/109360644459818976","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | ||
24 | test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
25 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI | ||
26 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":5,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' | ||
27 | headers: | ||
28 | Cache-Control: | ||
29 | - no-store | ||
30 | Content-Security-Policy: | ||
31 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | ||
32 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | ||
33 | style-src ''self'' http://localhost:3000 ''nonce-GNnrTSvg1wDIabQ3kjtGyQ==''; | ||
34 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | ||
35 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | ||
36 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | ||
37 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' | ||
38 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; | ||
39 | worker-src ''self'' blob: http://localhost:3000' | ||
40 | Content-Type: | ||
41 | - application/json; charset=utf-8 | ||
42 | ETag: | ||
43 | - W/"58511b0f15d0c3ac192c75655d58aca2" | ||
44 | Referrer-Policy: | ||
45 | - strict-origin-when-cross-origin | ||
46 | Transfer-Encoding: | ||
47 | - chunked | ||
48 | Vary: | ||
49 | - Accept, Origin | ||
50 | X-Content-Type-Options: | ||
51 | - nosniff | ||
52 | X-Download-Options: | ||
53 | - noopen | ||
54 | X-Frame-Options: | ||
55 | - SAMEORIGIN | ||
56 | X-Permitted-Cross-Domain-Policies: | ||
57 | - none | ||
58 | X-RateLimit-Limit: | ||
59 | - '300' | ||
60 | X-RateLimit-Remaining: | ||
61 | - '294' | ||
62 | X-RateLimit-Reset: | ||
63 | - '2022-11-17T21:00:00.626208Z' | ||
64 | X-Request-Id: | ||
65 | - 07b95dd9-1b8c-403d-84d7-9086e3d1f875 | ||
66 | X-Runtime: | ||
67 | - '0.103956' | ||
68 | X-XSS-Protection: | ||
69 | - 1; mode=block | ||
70 | status: | ||
71 | code: 200 | ||
72 | message: OK | ||
73 | - request: | ||
74 | body: null | ||
75 | headers: | ||
76 | Accept: | ||
77 | - '*/*' | ||
78 | Accept-Encoding: | ||
79 | - gzip, deflate | ||
80 | Authorization: | ||
81 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
82 | Connection: | ||
83 | - keep-alive | ||
84 | User-Agent: | ||
85 | - tests/v311 | ||
86 | method: GET | ||
87 | uri: http://localhost:3000/api/v1/timelines/home?max_id=109360645734400000&min_id=109360643112960000 | ||
88 | response: | ||
89 | body: | ||
90 | string: '[{"id":"109360644459818976","created_at":"2022-11-17T18:50:05.553Z","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/109360644459818976","url":"http://localhost:3000/@mastodonpy_test/109360644459818976","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | ||
91 | test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
92 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI | ||
93 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":5,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}]' | ||
94 | headers: | ||
95 | Cache-Control: | ||
96 | - no-store | ||
97 | Content-Security-Policy: | ||
98 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | ||
99 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | ||
100 | style-src ''self'' http://localhost:3000 ''nonce-S6/DmjeVOHI/8no8CZqoEA==''; | ||
101 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | ||
102 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | ||
103 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | ||
104 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' | ||
105 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; | ||
106 | worker-src ''self'' blob: http://localhost:3000' | ||
107 | Content-Type: | ||
108 | - application/json; charset=utf-8 | ||
109 | ETag: | ||
110 | - W/"86a06105a5e70f233a95eea2721f69ee" | ||
111 | Link: | ||
112 | - <http://localhost:3000/api/v1/timelines/home?max_id=109360644459818976>; rel="next", | ||
113 | <http://localhost:3000/api/v1/timelines/home?min_id=109360644459818976>; rel="prev" | ||
114 | Referrer-Policy: | ||
115 | - strict-origin-when-cross-origin | ||
116 | Transfer-Encoding: | ||
117 | - chunked | ||
118 | Vary: | ||
119 | - Accept, Origin | ||
120 | X-Content-Type-Options: | ||
121 | - nosniff | ||
122 | X-Download-Options: | ||
123 | - noopen | ||
124 | X-Frame-Options: | ||
125 | - SAMEORIGIN | ||
126 | X-Permitted-Cross-Domain-Policies: | ||
127 | - none | ||
128 | X-Request-Id: | ||
129 | - 738b28f0-169a-49b8-89bf-97dfc60608c8 | ||
130 | X-Runtime: | ||
131 | - '0.029525' | ||
132 | X-XSS-Protection: | ||
133 | - 1; mode=block | ||
134 | status: | ||
135 | code: 200 | ||
136 | message: OK | ||
137 | - request: | ||
138 | body: null | ||
139 | headers: | ||
140 | Accept: | ||
141 | - '*/*' | ||
142 | Accept-Encoding: | ||
143 | - gzip, deflate | ||
144 | Authorization: | ||
145 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
146 | Connection: | ||
147 | - keep-alive | ||
148 | User-Agent: | ||
149 | - tests/v311 | ||
150 | method: GET | ||
151 | uri: http://localhost:3000/api/v1/timelines/home?max_id=109360647045120000&min_id=109360645734400000 | ||
152 | response: | ||
153 | body: | ||
154 | string: '[]' | ||
155 | headers: | ||
156 | Cache-Control: | ||
157 | - no-store | ||
158 | Content-Security-Policy: | ||
159 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | ||
160 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | ||
161 | style-src ''self'' http://localhost:3000 ''nonce-V/vKOm6+nPmC5SpFFwp80w==''; | ||
162 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | ||
163 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | ||
164 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | ||
165 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' | ||
166 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; | ||
167 | worker-src ''self'' blob: http://localhost:3000' | ||
168 | Content-Type: | ||
169 | - application/json; charset=utf-8 | ||
170 | ETag: | ||
171 | - W/"4f53cda18c2baa0c0354bb5f9a3ecbe5" | ||
172 | Referrer-Policy: | ||
173 | - strict-origin-when-cross-origin | ||
174 | Transfer-Encoding: | ||
175 | - chunked | ||
176 | Vary: | ||
177 | - Accept, Origin | ||
178 | X-Content-Type-Options: | ||
179 | - nosniff | ||
180 | X-Download-Options: | ||
181 | - noopen | ||
182 | X-Frame-Options: | ||
183 | - SAMEORIGIN | ||
184 | X-Permitted-Cross-Domain-Policies: | ||
185 | - none | ||
186 | X-Request-Id: | ||
187 | - e7c84272-bb28-42ca-a59e-cce7539844ad | ||
188 | X-Runtime: | ||
189 | - '0.009517' | ||
190 | X-XSS-Protection: | ||
191 | - 1; mode=block | ||
192 | status: | ||
193 | code: 200 | ||
194 | message: OK | ||
195 | - request: | ||
196 | body: null | ||
197 | headers: | ||
198 | Accept: | ||
199 | - '*/*' | ||
200 | Accept-Encoding: | ||
201 | - gzip, deflate | ||
202 | Authorization: | ||
203 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
204 | Connection: | ||
205 | - keep-alive | ||
206 | Content-Length: | ||
207 | - '0' | ||
208 | User-Agent: | ||
209 | - tests/v311 | ||
210 | method: DELETE | ||
211 | uri: http://localhost:3000/api/v1/statuses/109360644459818976 | ||
212 | response: | ||
213 | body: | ||
214 | string: '{"id":"109360644459818976","created_at":"2022-11-17T18:50:05.553Z","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/109360644459818976","url":"http://localhost:3000/@mastodonpy_test/109360644459818976","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | ||
215 | test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
216 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI | ||
217 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":4,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' | ||
218 | headers: | ||
219 | Cache-Control: | ||
220 | - no-store | ||
221 | Content-Security-Policy: | ||
222 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | ||
223 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | ||
224 | style-src ''self'' http://localhost:3000 ''nonce-+b0YxTzjfZxXGiiUjfZehw==''; | ||
225 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | ||
226 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | ||
227 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | ||
228 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' | ||
229 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; | ||
230 | worker-src ''self'' blob: http://localhost:3000' | ||
231 | Content-Type: | ||
232 | - application/json; charset=utf-8 | ||
233 | ETag: | ||
234 | - W/"02008e45c6ebce96f6e4e9ec2354008b" | ||
235 | Referrer-Policy: | ||
236 | - strict-origin-when-cross-origin | ||
237 | Transfer-Encoding: | ||
238 | - chunked | ||
239 | Vary: | ||
240 | - Accept, Origin | ||
241 | X-Content-Type-Options: | ||
242 | - nosniff | ||
243 | X-Download-Options: | ||
244 | - noopen | ||
245 | X-Frame-Options: | ||
246 | - SAMEORIGIN | ||
247 | X-Permitted-Cross-Domain-Policies: | ||
248 | - none | ||
249 | X-Request-Id: | ||
250 | - 0eed8861-4f33-4cbc-85c4-cc45f270a344 | ||
251 | X-Runtime: | ||
252 | - '0.036224' | ||
253 | X-XSS-Protection: | ||
254 | - 1; mode=block | ||
255 | status: | ||
256 | code: 200 | ||
257 | message: OK | ||
258 | version: 1 | ||