aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_hashtag_tl.yaml')
-rw-r--r--tests/cassettes/test_hashtag_tl.yaml258
1 files changed, 184 insertions, 74 deletions
diff --git a/tests/cassettes/test_hashtag_tl.yaml b/tests/cassettes/test_hashtag_tl.yaml
index 631e585..3a779fb 100644
--- a/tests/cassettes/test_hashtag_tl.yaml
+++ b/tests/cassettes/test_hashtag_tl.yaml
@@ -2,95 +2,205 @@ interactions:
2- request: 2- request:
3 body: status=%23hoot+%28hashtag+toot%29 3 body: status=%23hoot+%28hashtag+toot%29
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: ['33'] 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 - '33'
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":"103704157111789525","created_at":"2020-02-22T19:30:58.291Z","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/103704157111789525","url":"http://localhost/@mastodonpy_test/103704157111789525","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003e\u003ca 22 body:
16 href=\"http://localhost/tags/hoot\" class=\"mention hashtag\" rel=\"tag\"\u003e#\u003cspan\u003ehoot\u003c/span\u003e\u003c/a\u003e 23 string: '{"id":"109304299653261325","created_at":"2022-11-07T20:00:52.035Z","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/109304299653261325","url":"http://localhost:3000/@mastodonpy_test/109304299653261325","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003e\u003ca
17 (hashtag toot)\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py 24 href=\"http://localhost:3000/tags/hoot\" class=\"mention hashtag\" rel=\"tag\"\u003e#\u003cspan\u003ehoot\u003c/span\u003e\u003c/a\u003e
18 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":[{"name":"hoot","url":"http://localhost/tags/hoot"}],"emojis":[],"card":null,"poll":null}'} 25 (hashtag toot)\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
26 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
27 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI
28 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":[{"name":"hoot","url":"http://localhost:3000/tags/hoot"}],"emojis":[],"card":null,"poll":null}'
19 headers: 29 headers:
20 Cache-Control: ['no-cache, no-store'] 30 Cache-Control:
21 Content-Type: [application/json; charset=utf-8] 31 - no-store
22 Referrer-Policy: [strict-origin-when-cross-origin] 32 Content-Security-Policy:
23 Transfer-Encoding: [chunked] 33 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
24 Vary: ['Accept-Encoding, Origin'] 34 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
25 X-Content-Type-Options: [nosniff] 35 style-src ''self'' http://localhost:3000 ''nonce-Jt5eYSzXzAIVHixsi5I/+g=='';
26 X-Download-Options: [noopen] 36 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
27 X-Frame-Options: [SAMEORIGIN] 37 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
28 X-Permitted-Cross-Domain-Policies: [none] 38 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
29 X-Request-Id: [036605ed-aff5-4361-8667-9e32744fcd87] 39 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
30 X-Runtime: ['0.229064'] 40 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
31 X-XSS-Protection: [1; mode=block] 41 worker-src ''self'' blob: http://localhost:3000'
32 content-length: ['1519'] 42 Content-Type:
33 status: {code: 200, message: OK} 43 - application/json; charset=utf-8
44 ETag:
45 - W/"b8a4d8711ffb90c7fa149269be748096"
46 Referrer-Policy:
47 - strict-origin-when-cross-origin
48 Transfer-Encoding:
49 - chunked
50 Vary:
51 - Accept, Origin
52 X-Content-Type-Options:
53 - nosniff
54 X-Download-Options:
55 - noopen
56 X-Frame-Options:
57 - SAMEORIGIN
58 X-Permitted-Cross-Domain-Policies:
59 - none
60 X-RateLimit-Limit:
61 - '300'
62 X-RateLimit-Remaining:
63 - '195'
64 X-RateLimit-Reset:
65 - '2022-11-07T21:00:00.066256Z'
66 X-Request-Id:
67 - c7dcaa7e-48c3-4d82-b21c-cea6d4f418e2
68 X-Runtime:
69 - '0.044871'
70 X-XSS-Protection:
71 - 1; mode=block
72 status:
73 code: 200
74 message: OK
34- request: 75- request:
35 body: null 76 body: null
36 headers: 77 headers:
37 Accept: ['*/*'] 78 Accept:
38 Accept-Encoding: ['gzip, deflate'] 79 - '*/*'
39 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 80 Accept-Encoding:
40 Connection: [keep-alive] 81 - gzip, deflate
41 User-Agent: [python-requests/2.18.4] 82 Authorization:
83 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
84 Connection:
85 - keep-alive
86 User-Agent:
87 - tests/v311
42 method: GET 88 method: GET
43 uri: http://localhost:3000/api/v1/timelines/tag/hoot 89 uri: http://localhost:3000/api/v1/timelines/tag/hoot
44 response: 90 response:
45 body: {string: '[{"id":"103704157111789525","created_at":"2020-02-22T19:30:58.291Z","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/103704157111789525","url":"http://localhost/@mastodonpy_test/103704157111789525","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003e\u003ca 91 body:
46 href=\"http://localhost/tags/hoot\" class=\"mention hashtag\" rel=\"tag\"\u003e#\u003cspan\u003ehoot\u003c/span\u003e\u003c/a\u003e 92 string: '[{"id":"109304299653261325","created_at":"2022-11-07T20:00:52.035Z","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/109304299653261325","url":"http://localhost:3000/@mastodonpy_test/109304299653261325","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003e\u003ca
47 (hashtag toot)\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py 93 href=\"http://localhost:3000/tags/hoot\" class=\"mention hashtag\" rel=\"tag\"\u003e#\u003cspan\u003ehoot\u003c/span\u003e\u003c/a\u003e
48 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":[{"name":"hoot","url":"http://localhost/tags/hoot"}],"emojis":[],"card":null,"poll":null}]'} 94 (hashtag toot)\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
95 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
96 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI
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":[{"name":"hoot","url":"http://localhost:3000/tags/hoot"}],"emojis":[],"card":null,"poll":null}]'
49 headers: 98 headers:
50 Cache-Control: ['no-cache, no-store'] 99 Cache-Control:
51 Content-Type: [application/json; charset=utf-8] 100 - no-store
52 Link: ['<http://localhost:3000/api/v1/timelines/tag/hoot?max_id=103704157111789525>; 101 Content-Security-Policy:
53 rel="next", <http://localhost:3000/api/v1/timelines/tag/hoot?min_id=103704157111789525>; 102 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
54 rel="prev"'] 103 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
55 Referrer-Policy: [strict-origin-when-cross-origin] 104 style-src ''self'' http://localhost:3000 ''nonce-rkbc0fhBot/SlCPeyZgJUA=='';
56 Transfer-Encoding: [chunked] 105 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
57 Vary: ['Accept-Encoding, Origin'] 106 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
58 X-Content-Type-Options: [nosniff] 107 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
59 X-Download-Options: [noopen] 108 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
60 X-Frame-Options: [SAMEORIGIN] 109 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
61 X-Permitted-Cross-Domain-Policies: [none] 110 worker-src ''self'' blob: http://localhost:3000'
62 X-Request-Id: [e8539934-34ab-45d8-847a-75d240b9e24e] 111 Content-Type:
63 X-Runtime: ['0.199742'] 112 - application/json; charset=utf-8
64 X-XSS-Protection: [1; mode=block] 113 ETag:
65 content-length: ['1521'] 114 - W/"d1c65328711c16ad74537b66895d4dad"
66 status: {code: 200, message: OK} 115 Link:
116 - <http://localhost:3000/api/v1/timelines/tag/hoot?max_id=109304299653261325>;
117 rel="next", <http://localhost:3000/api/v1/timelines/tag/hoot?min_id=109304299653261325>;
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 - 6699ce3e-b0be-4636-912d-430e47342437
135 X-Runtime:
136 - '0.026214'
137 X-XSS-Protection:
138 - 1; mode=block
139 status:
140 code: 200
141 message: OK
67- request: 142- request:
68 body: null 143 body: null
69 headers: 144 headers:
70 Accept: ['*/*'] 145 Accept:
71 Accept-Encoding: ['gzip, deflate'] 146 - '*/*'
72 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 147 Accept-Encoding:
73 Connection: [keep-alive] 148 - gzip, deflate
74 Content-Length: ['0'] 149 Authorization:
75 User-Agent: [python-requests/2.18.4] 150 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
151 Connection:
152 - keep-alive
153 Content-Length:
154 - '0'
155 User-Agent:
156 - tests/v311
76 method: DELETE 157 method: DELETE
77 uri: http://localhost:3000/api/v1/statuses/103704157111789525 158 uri: http://localhost:3000/api/v1/statuses/109304299653261325
78 response: 159 response:
79 body: {string: '{"id":"103704157111789525","created_at":"2020-02-22T19:30:58.291Z","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/103704157111789525","url":"http://localhost/@mastodonpy_test/103704157111789525","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"#hoot 160 body:
80 (hashtag toot)","reblog":null,"application":{"name":"Mastodon.py 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":[{"name":"hoot","url":"http://localhost/tags/hoot"}],"emojis":[],"card":null,"poll":null}'} 161 string: '{"id":"109304299653261325","created_at":"2022-11-07T20:00:52.035Z","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/109304299653261325","url":"http://localhost:3000/@mastodonpy_test/109304299653261325","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"#hoot
162 (hashtag toot)","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
163 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
164 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI
165 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":[{"name":"hoot","url":"http://localhost:3000/tags/hoot"}],"emojis":[],"card":null,"poll":null}'
81 headers: 166 headers:
82 Cache-Control: ['no-cache, no-store'] 167 Cache-Control:
83 Content-Type: [application/json; charset=utf-8] 168 - no-store
84 Referrer-Policy: [strict-origin-when-cross-origin] 169 Content-Security-Policy:
85 Transfer-Encoding: [chunked] 170 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
86 Vary: ['Accept-Encoding, Origin'] 171 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
87 X-Content-Type-Options: [nosniff] 172 style-src ''self'' http://localhost:3000 ''nonce-8w/JUDNiZXVwpOmsfRonlw=='';
88 X-Download-Options: [noopen] 173 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
89 X-Frame-Options: [SAMEORIGIN] 174 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
90 X-Permitted-Cross-Domain-Policies: [none] 175 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
91 X-Request-Id: [f40f9471-1b2a-486d-b0a5-33eacd092f4c] 176 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
92 X-Runtime: ['0.132576'] 177 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
93 X-XSS-Protection: [1; mode=block] 178 worker-src ''self'' blob: http://localhost:3000'
94 content-length: ['1355'] 179 Content-Type:
95 status: {code: 200, message: OK} 180 - application/json; charset=utf-8
181 ETag:
182 - W/"f98372a49b0a3e66fd511e61abc11402"
183 Referrer-Policy:
184 - strict-origin-when-cross-origin
185 Transfer-Encoding:
186 - chunked
187 Vary:
188 - Accept, Origin
189 X-Content-Type-Options:
190 - nosniff
191 X-Download-Options:
192 - noopen
193 X-Frame-Options:
194 - SAMEORIGIN
195 X-Permitted-Cross-Domain-Policies:
196 - none
197 X-Request-Id:
198 - 4dd3c086-c7be-4056-b1d2-bd335542c1da
199 X-Runtime:
200 - '0.024247'
201 X-XSS-Protection:
202 - 1; mode=block
203 status:
204 code: 200
205 message: OK
96version: 1 206version: 1
Powered by cgit v1.2.3 (git 2.41.0)