diff options
Diffstat (limited to 'tests/cassettes/test_public_tl.yaml')
-rw-r--r-- | tests/cassettes/test_public_tl.yaml | 359 |
1 files changed, 245 insertions, 114 deletions
diff --git a/tests/cassettes/test_public_tl.yaml b/tests/cassettes/test_public_tl.yaml index 6e3b356..6c98f6b 100644 --- a/tests/cassettes/test_public_tl.yaml +++ b/tests/cassettes/test_public_tl.yaml | |||
@@ -2,142 +2,273 @@ interactions: | |||
2 | - request: | 2 | - request: |
3 | body: status=Toot%21 | 3 | body: status=Toot%21 |
4 | headers: | 4 | headers: |
5 | Accept: ['*/*'] | 5 | Accept: |
6 | Accept-Encoding: ['gzip, deflate'] | 6 | - '*/*' |
7 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 7 | Accept-Encoding: |
8 | Connection: [keep-alive] | 8 | - gzip, deflate |
9 | Content-Length: ['14'] | 9 | Authorization: |
10 | Content-Type: [application/x-www-form-urlencoded] | 10 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN |
11 | User-Agent: [python-requests/2.18.4] | 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 | ||
12 | method: POST | 19 | method: POST |
13 | uri: http://localhost:3000/api/v1/statuses | 20 | uri: http://localhost:3000/api/v1/statuses |
14 | response: | 21 | response: |
15 | body: {string: '{"id":"103704156977111216","created_at":"2020-02-22T19:30:56.228Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/103704156977111216","url":"http://localhost/@mastodonpy_test/103704156977111216","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py | 22 | body: |
16 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} | 23 | string: '{"id":"109304299631529215","created_at":"2022-11-07T20:00:51.703Z","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/109304299631529215","url":"http://localhost:3000/@mastodonpy_test/109304299631529215","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":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
25 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00: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/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2022-11-07","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}' | ||
17 | headers: | 27 | headers: |
18 | Cache-Control: ['no-cache, no-store'] | 28 | Cache-Control: |
19 | Content-Type: [application/json; charset=utf-8] | 29 | - no-store |
20 | Referrer-Policy: [strict-origin-when-cross-origin] | 30 | Content-Security-Policy: |
21 | Transfer-Encoding: [chunked] | 31 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
22 | Vary: ['Accept-Encoding, Origin'] | 32 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
23 | X-Content-Type-Options: [nosniff] | 33 | style-src ''self'' http://localhost:3000 ''nonce-CcfVPFMaNqMQyTeUydihIw==''; |
24 | X-Download-Options: [noopen] | 34 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
25 | X-Frame-Options: [SAMEORIGIN] | 35 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
26 | X-Permitted-Cross-Domain-Policies: [none] | 36 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
27 | X-Request-Id: [1dcdf2b1-1d7a-47f0-9376-fe9f96c9a923] | 37 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
28 | X-Runtime: ['0.178397'] | 38 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
29 | X-XSS-Protection: [1; mode=block] | 39 | worker-src ''self'' blob: http://localhost:3000' |
30 | content-length: ['1320'] | 40 | Content-Type: |
31 | status: {code: 200, message: OK} | 41 | - application/json; charset=utf-8 |
42 | ETag: | ||
43 | - W/"be5cdf69adbba873d1e35163f0ab6222" | ||
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 | - '198' | ||
62 | X-RateLimit-Reset: | ||
63 | - '2022-11-07T21:00:00.723133Z' | ||
64 | X-Request-Id: | ||
65 | - 804a7553-a476-486b-ac55-4e83290e9c75 | ||
66 | X-Runtime: | ||
67 | - '0.032945' | ||
68 | X-XSS-Protection: | ||
69 | - 1; mode=block | ||
70 | status: | ||
71 | code: 200 | ||
72 | message: OK | ||
32 | - request: | 73 | - request: |
33 | body: null | 74 | body: null |
34 | headers: | 75 | headers: |
35 | Accept: ['*/*'] | 76 | Accept: |
36 | Accept-Encoding: ['gzip, deflate'] | 77 | - '*/*' |
37 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 78 | Accept-Encoding: |
38 | Connection: [keep-alive] | 79 | - gzip, deflate |
39 | User-Agent: [python-requests/2.18.4] | 80 | Authorization: |
81 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
82 | Connection: | ||
83 | - keep-alive | ||
84 | User-Agent: | ||
85 | - tests/v311 | ||
40 | method: GET | 86 | method: GET |
41 | uri: http://localhost:3000/api/v1/timelines/public | 87 | uri: http://localhost:3000/api/v1/timelines/public |
42 | response: | 88 | response: |
43 | body: {string: '[{"id":"103704156977111216","created_at":"2020-02-22T19:30:56.228Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/103704156977111216","url":"http://localhost/@mastodonpy_test/103704156977111216","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py | 89 | body: |
44 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"103704154287057569","created_at":"2020-02-22T19:30:15.186Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/103704154287057569","url":"http://localhost/@mastodonpy_test/103704154287057569","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eit\u0026apos;s | 90 | string: '[{"id":"109304299631529215","created_at":"2022-11-07T20:00:51.703Z","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/109304299631529215","url":"http://localhost:3000/@mastodonpy_test/109304299631529215","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 |
45 | cool guy\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py test | 91 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
46 | suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"103704153009330401","created_at":"2020-02-22T19:29:55.713Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704153009330401","url":"http://localhost/@admin/103704153009330401","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003eon | 92 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI |
47 | the internet, nobody knows you\u0026apos;re a plane\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py | 93 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2022-11-07","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},{"id":"109304296993669505","created_at":"2022-11-07T20:00:11.452Z","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/109304296993669505","url":"http://localhost:3000/@mastodonpy_test/109304296993669505","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eit\u0026#39;s |
48 | test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"103704152979846395","created_at":"2020-02-22T19:29:55.300Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704152979846395","url":"http://localhost/@admin/103704152979846395","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan | 94 | cool guy\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py |
49 | class=\"h-card\"\u003e\u003ca href=\"http://localhost/@mastodonpy_test\" class=\"u-url | 95 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
50 | mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | 96 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI |
51 | beep beep I\u0026apos;m a jeep\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py | 97 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2022-11-07","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}]' |
52 | test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"103704150669322767","created_at":"2020-02-22T19:29:19.988Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704150669322767","url":"http://localhost/@admin/103704150669322767","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003enice\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py | ||
53 | test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":{"id":"2","expires_at":"2020-02-22T19:34:19.971Z","expired":false,"multiple":false,"votes_count":1,"voters_count":1,"voted":true,"own_votes":[1],"options":[{"title":"four | ||
54 | twenty","votes_count":0},{"title":"sixty-nine","votes_count":1}],"emojis":[]}}]'} | ||
55 | headers: | 98 | headers: |
56 | Cache-Control: ['no-cache, no-store'] | 99 | Cache-Control: |
57 | Content-Type: [application/json; charset=utf-8] | 100 | - no-store |
58 | Link: ['<http://localhost:3000/api/v1/timelines/public?max_id=103704150669322767>; | 101 | Content-Security-Policy: |
59 | rel="next", <http://localhost:3000/api/v1/timelines/public?min_id=103704156977111216>; | 102 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
60 | rel="prev"'] | 103 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
61 | Referrer-Policy: [strict-origin-when-cross-origin] | 104 | style-src ''self'' http://localhost:3000 ''nonce-athdz0W0d9ZiLlyQI0eJXQ==''; |
62 | Transfer-Encoding: [chunked] | 105 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
63 | Vary: ['Accept-Encoding, Origin'] | 106 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
64 | X-Content-Type-Options: [nosniff] | 107 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
65 | X-Download-Options: [noopen] | 108 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
66 | X-Frame-Options: [SAMEORIGIN] | 109 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
67 | X-Permitted-Cross-Domain-Policies: [none] | 110 | worker-src ''self'' blob: http://localhost:3000' |
68 | X-Request-Id: [40bb7183-0a40-4b46-b7ed-f73f2d85048d] | 111 | Content-Type: |
69 | X-Runtime: ['0.247981'] | 112 | - application/json; charset=utf-8 |
70 | X-XSS-Protection: [1; mode=block] | 113 | ETag: |
71 | content-length: ['7013'] | 114 | - W/"a5174f8f3eb6b0102902523b8c7cff47" |
72 | status: {code: 200, message: OK} | 115 | Link: |
116 | - <http://localhost:3000/api/v1/timelines/public?max_id=109304296993669505>; | ||
117 | rel="next", <http://localhost:3000/api/v1/timelines/public?min_id=109304299631529215>; | ||
118 | rel="prev" | ||
119 | Referrer-Policy: | ||
120 | - strict-origin-when-cross-origin | ||
121 | Transfer-Encoding: | ||
122 | - chunked | ||
123 | Vary: | ||
124 | - Accept, Origin | ||
125 | X-Content-Type-Options: | ||
126 | - nosniff | ||
127 | X-Download-Options: | ||
128 | - noopen | ||
129 | X-Frame-Options: | ||
130 | - SAMEORIGIN | ||
131 | X-Permitted-Cross-Domain-Policies: | ||
132 | - none | ||
133 | X-Request-Id: | ||
134 | - 08aa2281-28fe-470c-bf3c-6ea1086c898e | ||
135 | X-Runtime: | ||
136 | - '0.030218' | ||
137 | X-XSS-Protection: | ||
138 | - 1; mode=block | ||
139 | status: | ||
140 | code: 200 | ||
141 | message: OK | ||
73 | - request: | 142 | - request: |
74 | body: null | 143 | body: null |
75 | headers: | 144 | headers: |
76 | Accept: ['*/*'] | 145 | Accept: |
77 | Accept-Encoding: ['gzip, deflate'] | 146 | - '*/*' |
78 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 147 | Accept-Encoding: |
79 | Connection: [keep-alive] | 148 | - gzip, deflate |
80 | User-Agent: [python-requests/2.18.4] | 149 | Authorization: |
150 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
151 | Connection: | ||
152 | - keep-alive | ||
153 | User-Agent: | ||
154 | - tests/v311 | ||
81 | method: GET | 155 | method: GET |
82 | uri: http://localhost:3000/api/v1/timelines/public?local=1 | 156 | uri: http://localhost:3000/api/v1/timelines/public?local=1 |
83 | response: | 157 | response: |
84 | body: {string: '[{"id":"103704156977111216","created_at":"2020-02-22T19:30:56.228Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/103704156977111216","url":"http://localhost/@mastodonpy_test/103704156977111216","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py | 158 | body: |
85 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"103704154287057569","created_at":"2020-02-22T19:30:15.186Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/103704154287057569","url":"http://localhost/@mastodonpy_test/103704154287057569","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eit\u0026apos;s | 159 | string: '[{"id":"109304299631529215","created_at":"2022-11-07T20:00:51.703Z","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/109304299631529215","url":"http://localhost:3000/@mastodonpy_test/109304299631529215","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 |
86 | cool guy\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py test | 160 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
87 | suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"103704153009330401","created_at":"2020-02-22T19:29:55.713Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704153009330401","url":"http://localhost/@admin/103704153009330401","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003eon | 161 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI |
88 | the internet, nobody knows you\u0026apos;re a plane\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py | 162 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2022-11-07","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},{"id":"109304296993669505","created_at":"2022-11-07T20:00:11.452Z","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/109304296993669505","url":"http://localhost:3000/@mastodonpy_test/109304296993669505","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eit\u0026#39;s |
89 | test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"103704152979846395","created_at":"2020-02-22T19:29:55.300Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704152979846395","url":"http://localhost/@admin/103704152979846395","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan | 163 | cool guy\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py |
90 | class=\"h-card\"\u003e\u003ca href=\"http://localhost/@mastodonpy_test\" class=\"u-url | 164 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
91 | mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | 165 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI |
92 | beep beep I\u0026apos;m a jeep\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py | 166 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2022-11-07","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}]' |
93 | test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null},{"id":"103704150669322767","created_at":"2020-02-22T19:29:19.988Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/103704150669322767","url":"http://localhost/@admin/103704150669322767","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003enice\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py | ||
94 | test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":{"id":"2","expires_at":"2020-02-22T19:34:19.971Z","expired":false,"multiple":false,"votes_count":1,"voters_count":1,"voted":true,"own_votes":[1],"options":[{"title":"four | ||
95 | twenty","votes_count":0},{"title":"sixty-nine","votes_count":1}],"emojis":[]}}]'} | ||
96 | headers: | 167 | headers: |
97 | Cache-Control: ['no-cache, no-store'] | 168 | Cache-Control: |
98 | Content-Type: [application/json; charset=utf-8] | 169 | - no-store |
99 | Link: ['<http://localhost:3000/api/v1/timelines/public?local=1&max_id=103704150669322767>; | 170 | Content-Security-Policy: |
100 | rel="next", <http://localhost:3000/api/v1/timelines/public?local=1&min_id=103704156977111216>; | 171 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
101 | rel="prev"'] | 172 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
102 | Referrer-Policy: [strict-origin-when-cross-origin] | 173 | style-src ''self'' http://localhost:3000 ''nonce-EO1tDElyJOv+Xvv1VfEd4w==''; |
103 | Transfer-Encoding: [chunked] | 174 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
104 | Vary: ['Accept-Encoding, Origin'] | 175 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
105 | X-Content-Type-Options: [nosniff] | 176 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
106 | X-Download-Options: [noopen] | 177 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
107 | X-Frame-Options: [SAMEORIGIN] | 178 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
108 | X-Permitted-Cross-Domain-Policies: [none] | 179 | worker-src ''self'' blob: http://localhost:3000' |
109 | X-Request-Id: [5dee7495-1157-4562-87d7-d10472973c4e] | 180 | Content-Type: |
110 | X-Runtime: ['0.182263'] | 181 | - application/json; charset=utf-8 |
111 | X-XSS-Protection: [1; mode=block] | 182 | ETag: |
112 | content-length: ['7013'] | 183 | - W/"a5174f8f3eb6b0102902523b8c7cff47" |
113 | status: {code: 200, message: OK} | 184 | Link: |
185 | - <http://localhost:3000/api/v1/timelines/public?local=1&max_id=109304296993669505>; | ||
186 | rel="next", <http://localhost:3000/api/v1/timelines/public?local=1&min_id=109304299631529215>; | ||
187 | rel="prev" | ||
188 | Referrer-Policy: | ||
189 | - strict-origin-when-cross-origin | ||
190 | Transfer-Encoding: | ||
191 | - chunked | ||
192 | Vary: | ||
193 | - Accept, Origin | ||
194 | X-Content-Type-Options: | ||
195 | - nosniff | ||
196 | X-Download-Options: | ||
197 | - noopen | ||
198 | X-Frame-Options: | ||
199 | - SAMEORIGIN | ||
200 | X-Permitted-Cross-Domain-Policies: | ||
201 | - none | ||
202 | X-Request-Id: | ||
203 | - 752d4194-2fd4-4c93-8207-303991c84781 | ||
204 | X-Runtime: | ||
205 | - '0.029789' | ||
206 | X-XSS-Protection: | ||
207 | - 1; mode=block | ||
208 | status: | ||
209 | code: 200 | ||
210 | message: OK | ||
114 | - request: | 211 | - request: |
115 | body: null | 212 | body: null |
116 | headers: | 213 | headers: |
117 | Accept: ['*/*'] | 214 | Accept: |
118 | Accept-Encoding: ['gzip, deflate'] | 215 | - '*/*' |
119 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 216 | Accept-Encoding: |
120 | Connection: [keep-alive] | 217 | - gzip, deflate |
121 | Content-Length: ['0'] | 218 | Authorization: |
122 | User-Agent: [python-requests/2.18.4] | 219 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN |
220 | Connection: | ||
221 | - keep-alive | ||
222 | Content-Length: | ||
223 | - '0' | ||
224 | User-Agent: | ||
225 | - tests/v311 | ||
123 | method: DELETE | 226 | method: DELETE |
124 | uri: http://localhost:3000/api/v1/statuses/103704156977111216 | 227 | uri: http://localhost:3000/api/v1/statuses/109304299631529215 |
125 | response: | 228 | response: |
126 | body: {string: '{"id":"103704156977111216","created_at":"2020-02-22T19:30:56.228Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/103704156977111216","url":"http://localhost/@mastodonpy_test/103704156977111216","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","reblog":null,"application":{"name":"Mastodon.py | 229 | body: |
127 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} | 230 | string: '{"id":"109304299631529215","created_at":"2022-11-07T20:00:51.703Z","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/109304299631529215","url":"http://localhost:3000/@mastodonpy_test/109304299631529215","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 |
231 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
232 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI | ||
233 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2022-11-07","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}' | ||
128 | headers: | 234 | headers: |
129 | Cache-Control: ['no-cache, no-store'] | 235 | Cache-Control: |
130 | Content-Type: [application/json; charset=utf-8] | 236 | - no-store |
131 | Referrer-Policy: [strict-origin-when-cross-origin] | 237 | Content-Security-Policy: |
132 | Transfer-Encoding: [chunked] | 238 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
133 | Vary: ['Accept-Encoding, Origin'] | 239 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
134 | X-Content-Type-Options: [nosniff] | 240 | style-src ''self'' http://localhost:3000 ''nonce-nu3VQYw2qbJorxiDTY4dFg==''; |
135 | X-Download-Options: [noopen] | 241 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
136 | X-Frame-Options: [SAMEORIGIN] | 242 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
137 | X-Permitted-Cross-Domain-Policies: [none] | 243 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
138 | X-Request-Id: [dcb7dd95-0e30-4ff7-88d8-2ddc64ed9fab] | 244 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
139 | X-Runtime: ['0.132520'] | 245 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
140 | X-XSS-Protection: [1; mode=block] | 246 | worker-src ''self'' blob: http://localhost:3000' |
141 | content-length: ['1290'] | 247 | Content-Type: |
142 | status: {code: 200, message: OK} | 248 | - application/json; charset=utf-8 |
249 | ETag: | ||
250 | - W/"43366105fff8fab458535afd6a57f243" | ||
251 | Referrer-Policy: | ||
252 | - strict-origin-when-cross-origin | ||
253 | Transfer-Encoding: | ||
254 | - chunked | ||
255 | Vary: | ||
256 | - Accept, Origin | ||
257 | X-Content-Type-Options: | ||
258 | - nosniff | ||
259 | X-Download-Options: | ||
260 | - noopen | ||
261 | X-Frame-Options: | ||
262 | - SAMEORIGIN | ||
263 | X-Permitted-Cross-Domain-Policies: | ||
264 | - none | ||
265 | X-Request-Id: | ||
266 | - 073f87cf-07ed-4f92-807a-64264ab79d72 | ||
267 | X-Runtime: | ||
268 | - '0.024865' | ||
269 | X-XSS-Protection: | ||
270 | - 1; mode=block | ||
271 | status: | ||
272 | code: 200 | ||
273 | message: OK | ||
143 | version: 1 | 274 | version: 1 |