diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-24 01:53:34 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-24 01:53:34 +0200 |
commit | f81978a39c7ad2124951806cd66fcbadffc16d59 (patch) | |
tree | d55551512f179b15f8a96e114d537663a322b7a3 /tests/cassettes/test_notifications_types.yaml | |
parent | 066d543109496c732f6c05bfbe3418d30b648f42 (diff) | |
download | mastodon.py-f81978a39c7ad2124951806cd66fcbadffc16d59.tar.gz |
Add notification tests
Diffstat (limited to 'tests/cassettes/test_notifications_types.yaml')
-rw-r--r-- | tests/cassettes/test_notifications_types.yaml | 354 |
1 files changed, 354 insertions, 0 deletions
diff --git a/tests/cassettes/test_notifications_types.yaml b/tests/cassettes/test_notifications_types.yaml new file mode 100644 index 0000000..39c4756 --- /dev/null +++ b/tests/cassettes/test_notifications_types.yaml | |||
@@ -0,0 +1,354 @@ | |||
1 | interactions: | ||
2 | - request: | ||
3 | body: status=%40mastodonpy_test+hello%21 | ||
4 | headers: | ||
5 | Accept: | ||
6 | - '*/*' | ||
7 | Accept-Encoding: | ||
8 | - gzip, deflate | ||
9 | Authorization: | ||
10 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2 | ||
11 | Connection: | ||
12 | - keep-alive | ||
13 | Content-Length: | ||
14 | - '34' | ||
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":"109395782916477342","created_at":"2022-11-23T23:46:15.851Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/109395782916477342","url":"http://localhost:3000/@admin/109395782916477342","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\u003cspan | ||
24 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | ||
25 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
26 | hello!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | ||
27 | test suite","website":null},"account":{"id":"109384259794974437","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":9,"last_status_at":"2022-11-23","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109384260022953307","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}' | ||
28 | headers: | ||
29 | Cache-Control: | ||
30 | - no-store | ||
31 | Content-Security-Policy: | ||
32 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | ||
33 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | ||
34 | style-src ''self'' http://localhost:3000 ''nonce-6pIPZ9iNIQpFIJrYbQlzSw==''; | ||
35 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | ||
36 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | ||
37 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | ||
38 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' | ||
39 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; | ||
40 | worker-src ''self'' blob: http://localhost:3000' | ||
41 | Content-Type: | ||
42 | - application/json; charset=utf-8 | ||
43 | ETag: | ||
44 | - W/"dd86c47271062350b14b7a5e21e7fc0b" | ||
45 | Referrer-Policy: | ||
46 | - strict-origin-when-cross-origin | ||
47 | Transfer-Encoding: | ||
48 | - chunked | ||
49 | Vary: | ||
50 | - Accept, Origin | ||
51 | X-Content-Type-Options: | ||
52 | - nosniff | ||
53 | X-Download-Options: | ||
54 | - noopen | ||
55 | X-Frame-Options: | ||
56 | - SAMEORIGIN | ||
57 | X-Permitted-Cross-Domain-Policies: | ||
58 | - none | ||
59 | X-RateLimit-Limit: | ||
60 | - '300' | ||
61 | X-RateLimit-Remaining: | ||
62 | - '297' | ||
63 | X-RateLimit-Reset: | ||
64 | - '2022-11-24T00:00:00.885045Z' | ||
65 | X-Request-Id: | ||
66 | - c8389421-cbd4-46d2-8b1e-b16a9e420921 | ||
67 | X-Runtime: | ||
68 | - '0.049957' | ||
69 | X-XSS-Protection: | ||
70 | - 1; mode=block | ||
71 | status: | ||
72 | code: 200 | ||
73 | message: OK | ||
74 | - request: | ||
75 | body: null | ||
76 | headers: | ||
77 | Accept: | ||
78 | - '*/*' | ||
79 | Accept-Encoding: | ||
80 | - gzip, deflate | ||
81 | Authorization: | ||
82 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
83 | Connection: | ||
84 | - keep-alive | ||
85 | User-Agent: | ||
86 | - tests/v311 | ||
87 | method: GET | ||
88 | uri: http://localhost:3000/api/v1/notifications?types%5B%5D=follow_request | ||
89 | response: | ||
90 | body: | ||
91 | string: '[]' | ||
92 | headers: | ||
93 | Cache-Control: | ||
94 | - no-store | ||
95 | Content-Security-Policy: | ||
96 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | ||
97 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | ||
98 | style-src ''self'' http://localhost:3000 ''nonce-V+Wx5mTLwXyUvR89Co7d3g==''; | ||
99 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | ||
100 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | ||
101 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | ||
102 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' | ||
103 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; | ||
104 | worker-src ''self'' blob: http://localhost:3000' | ||
105 | Content-Type: | ||
106 | - application/json; charset=utf-8 | ||
107 | ETag: | ||
108 | - W/"4f53cda18c2baa0c0354bb5f9a3ecbe5" | ||
109 | Referrer-Policy: | ||
110 | - strict-origin-when-cross-origin | ||
111 | Transfer-Encoding: | ||
112 | - chunked | ||
113 | Vary: | ||
114 | - Accept, Origin | ||
115 | X-Content-Type-Options: | ||
116 | - nosniff | ||
117 | X-Download-Options: | ||
118 | - noopen | ||
119 | X-Frame-Options: | ||
120 | - SAMEORIGIN | ||
121 | X-Permitted-Cross-Domain-Policies: | ||
122 | - none | ||
123 | X-Request-Id: | ||
124 | - 5993e374-2667-4eb7-9a14-82a681d177a9 | ||
125 | X-Runtime: | ||
126 | - '0.070559' | ||
127 | X-XSS-Protection: | ||
128 | - 1; mode=block | ||
129 | status: | ||
130 | code: 200 | ||
131 | message: OK | ||
132 | - request: | ||
133 | body: null | ||
134 | headers: | ||
135 | Accept: | ||
136 | - '*/*' | ||
137 | Accept-Encoding: | ||
138 | - gzip, deflate | ||
139 | Authorization: | ||
140 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
141 | Connection: | ||
142 | - keep-alive | ||
143 | User-Agent: | ||
144 | - tests/v311 | ||
145 | method: GET | ||
146 | uri: http://localhost:3000/api/v1/notifications?types%5B%5D=follow&types%5B%5D=mention | ||
147 | response: | ||
148 | body: | ||
149 | string: '[{"id":"20","type":"mention","created_at":"2022-11-23T23:46:15.955Z","account":{"id":"109384259794974437","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":9,"last_status_at":"2022-11-23","noindex":false,"emojis":[],"fields":[]},"status":{"id":"109395782916477342","created_at":"2022-11-23T23:46:15.851Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/109395782916477342","url":"http://localhost:3000/@admin/109395782916477342","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan | ||
150 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | ||
151 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
152 | hello!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | ||
153 | test suite","website":null},"account":{"id":"109384259794974437","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":9,"last_status_at":"2022-11-23","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109384260022953307","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}},{"id":"17","type":"mention","created_at":"2022-11-21T23:06:21.025Z","account":{"id":"109384260135049902","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test_2","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]},"status":{"id":"109384301340129379","created_at":"2022-11-21T23:06:20.898Z","in_reply_to_id":"109384301270458447","in_reply_to_account_id":"109384260022953307","sensitive":false,"spoiler_text":"","visibility":"direct","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test_2/statuses/109384301340129379","url":"http://localhost:3000/@mastodonpy_test_2/109384301340129379","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan | ||
154 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | ||
155 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
156 | pssssst!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | ||
157 | test suite","website":null},"account":{"id":"109384260135049902","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test_2","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109384260022953307","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}},{"id":"15","type":"mention","created_at":"2022-11-21T23:06:20.086Z","account":{"id":"109384259794974437","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":9,"last_status_at":"2022-11-23","noindex":false,"emojis":[],"fields":[]},"status":{"id":"109384301260589758","created_at":"2022-11-21T23:06:19.685Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/109384301260589758","url":"http://localhost:3000/@admin/109384301260589758","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan | ||
158 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | ||
159 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
160 | beep beep I\u0026#39;m a jeep\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | ||
161 | test suite","website":null},"account":{"id":"109384259794974437","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":9,"last_status_at":"2022-11-23","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109384260022953307","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}},{"id":"14","type":"mention","created_at":"2022-11-21T23:01:30.098Z","account":{"id":"109384260135049902","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test_2","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]},"status":{"id":"109384282227323431","created_at":"2022-11-21T23:01:29.260Z","in_reply_to_id":"109384282224216103","in_reply_to_account_id":"109384260022953307","sensitive":false,"spoiler_text":"","visibility":"direct","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test_2/statuses/109384282227323431","url":"http://localhost:3000/@mastodonpy_test_2/109384282227323431","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan | ||
162 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | ||
163 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
164 | pssssst!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | ||
165 | test suite","website":null},"account":{"id":"109384260135049902","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test_2","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109384260022953307","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}},{"id":"12","type":"mention","created_at":"2022-11-21T23:01:29.815Z","account":{"id":"109384259794974437","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":9,"last_status_at":"2022-11-23","noindex":false,"emojis":[],"fields":[]},"status":{"id":"109384282218092087","created_at":"2022-11-21T23:01:29.120Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/109384282218092087","url":"http://localhost:3000/@admin/109384282218092087","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":"2022-11-21T23:01:31.316Z","favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan | ||
166 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | ||
167 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
168 | beep beep I\u0026#39;m a giraffe\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | ||
169 | test suite","website":null},"account":{"id":"109384259794974437","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":9,"last_status_at":"2022-11-23","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109384260022953307","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}},{"id":"11","type":"mention","created_at":"2022-11-21T22:58:20.111Z","account":{"id":"109384260135049902","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test_2","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]},"status":{"id":"109384269774042068","created_at":"2022-11-21T22:58:19.239Z","in_reply_to_id":"109384269771231130","in_reply_to_account_id":"109384260022953307","sensitive":false,"spoiler_text":"","visibility":"direct","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test_2/statuses/109384269774042068","url":"http://localhost:3000/@mastodonpy_test_2/109384269774042068","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan | ||
170 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | ||
171 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
172 | pssssst!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | ||
173 | test suite","website":null},"account":{"id":"109384260135049902","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test_2","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109384260022953307","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}},{"id":"9","type":"mention","created_at":"2022-11-21T22:58:19.933Z","account":{"id":"109384259794974437","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":9,"last_status_at":"2022-11-23","noindex":false,"emojis":[],"fields":[]},"status":{"id":"109384269765215700","created_at":"2022-11-21T22:58:19.105Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/109384269765215700","url":"http://localhost:3000/@admin/109384269765215700","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":"2022-11-21T22:58:24.292Z","favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan | ||
174 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | ||
175 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
176 | beep beep I\u0026#39;m a giraffe\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | ||
177 | test suite","website":null},"account":{"id":"109384259794974437","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":9,"last_status_at":"2022-11-23","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109384260022953307","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}},{"id":"8","type":"mention","created_at":"2022-11-21T22:56:17.313Z","account":{"id":"109384260135049902","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test_2","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]},"status":{"id":"109384261733170175","created_at":"2022-11-21T22:56:16.544Z","in_reply_to_id":"109384261729433703","in_reply_to_account_id":"109384260022953307","sensitive":false,"spoiler_text":"","visibility":"direct","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test_2/statuses/109384261733170175","url":"http://localhost:3000/@mastodonpy_test_2/109384261733170175","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan | ||
178 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | ||
179 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
180 | pssssst!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | ||
181 | test suite","website":null},"account":{"id":"109384260135049902","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test_2","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109384260022953307","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}},{"id":"6","type":"mention","created_at":"2022-11-21T22:56:17.126Z","account":{"id":"109384259794974437","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":9,"last_status_at":"2022-11-23","noindex":false,"emojis":[],"fields":[]},"status":{"id":"109384261718850765","created_at":"2022-11-21T22:56:16.349Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/109384261718850765","url":"http://localhost:3000/@admin/109384261718850765","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":"2022-11-21T22:56:21.618Z","favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan | ||
182 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | ||
183 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
184 | beep beep I\u0026#39;m a giraffe\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | ||
185 | test suite","website":null},"account":{"id":"109384259794974437","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":9,"last_status_at":"2022-11-23","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109384260022953307","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}}]' | ||
186 | headers: | ||
187 | Cache-Control: | ||
188 | - no-store | ||
189 | Content-Security-Policy: | ||
190 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | ||
191 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | ||
192 | style-src ''self'' http://localhost:3000 ''nonce-wYrwHk5UigmCcNPC9VGxRQ==''; | ||
193 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | ||
194 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | ||
195 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | ||
196 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' | ||
197 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; | ||
198 | worker-src ''self'' blob: http://localhost:3000' | ||
199 | Content-Type: | ||
200 | - application/json; charset=utf-8 | ||
201 | ETag: | ||
202 | - W/"cdf647c6954e469aba5008a91f7d4dc9" | ||
203 | Link: | ||
204 | - <http://localhost:3000/api/v1/notifications?max_id=6&types%5B%5D=follow&types%5B%5D=mention>; | ||
205 | rel="next", <http://localhost:3000/api/v1/notifications?min_id=20&types%5B%5D=follow&types%5B%5D=mention>; | ||
206 | rel="prev" | ||
207 | Referrer-Policy: | ||
208 | - strict-origin-when-cross-origin | ||
209 | Transfer-Encoding: | ||
210 | - chunked | ||
211 | Vary: | ||
212 | - Accept, Origin | ||
213 | X-Content-Type-Options: | ||
214 | - nosniff | ||
215 | X-Download-Options: | ||
216 | - noopen | ||
217 | X-Frame-Options: | ||
218 | - SAMEORIGIN | ||
219 | X-Permitted-Cross-Domain-Policies: | ||
220 | - none | ||
221 | X-Request-Id: | ||
222 | - 400df499-161b-4d51-b363-cc007659ae22 | ||
223 | X-Runtime: | ||
224 | - '0.133966' | ||
225 | X-XSS-Protection: | ||
226 | - 1; mode=block | ||
227 | status: | ||
228 | code: 200 | ||
229 | message: OK | ||
230 | - request: | ||
231 | body: null | ||
232 | headers: | ||
233 | Accept: | ||
234 | - '*/*' | ||
235 | Accept-Encoding: | ||
236 | - gzip, deflate | ||
237 | Authorization: | ||
238 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
239 | Connection: | ||
240 | - keep-alive | ||
241 | User-Agent: | ||
242 | - tests/v311 | ||
243 | method: GET | ||
244 | uri: http://localhost:3000/api/v1/notifications/20 | ||
245 | response: | ||
246 | body: | ||
247 | string: '{"id":"20","type":"mention","created_at":"2022-11-23T23:46:15.955Z","account":{"id":"109384259794974437","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":9,"last_status_at":"2022-11-23","noindex":false,"emojis":[],"fields":[]},"status":{"id":"109395782916477342","created_at":"2022-11-23T23:46:15.851Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/109395782916477342","url":"http://localhost:3000/@admin/109395782916477342","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan | ||
248 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | ||
249 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
250 | hello!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | ||
251 | test suite","website":null},"account":{"id":"109384259794974437","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":9,"last_status_at":"2022-11-23","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109384260022953307","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}}' | ||
252 | headers: | ||
253 | Cache-Control: | ||
254 | - no-store | ||
255 | Content-Security-Policy: | ||
256 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | ||
257 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | ||
258 | style-src ''self'' http://localhost:3000 ''nonce-SLq1J0ShZHfval6+63A85Q==''; | ||
259 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | ||
260 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | ||
261 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | ||
262 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' | ||
263 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; | ||
264 | worker-src ''self'' blob: http://localhost:3000' | ||
265 | Content-Type: | ||
266 | - application/json; charset=utf-8 | ||
267 | ETag: | ||
268 | - W/"ec21df09d130a8b00bef5d7bf1194f0c" | ||
269 | Referrer-Policy: | ||
270 | - strict-origin-when-cross-origin | ||
271 | Transfer-Encoding: | ||
272 | - chunked | ||
273 | Vary: | ||
274 | - Accept, Origin | ||
275 | X-Content-Type-Options: | ||
276 | - nosniff | ||
277 | X-Download-Options: | ||
278 | - noopen | ||
279 | X-Frame-Options: | ||
280 | - SAMEORIGIN | ||
281 | X-Permitted-Cross-Domain-Policies: | ||
282 | - none | ||
283 | X-Request-Id: | ||
284 | - f4f1a2e1-9470-4f9c-9ad1-ea114686c661 | ||
285 | X-Runtime: | ||
286 | - '0.032645' | ||
287 | X-XSS-Protection: | ||
288 | - 1; mode=block | ||
289 | status: | ||
290 | code: 200 | ||
291 | message: OK | ||
292 | - request: | ||
293 | body: null | ||
294 | headers: | ||
295 | Accept: | ||
296 | - '*/*' | ||
297 | Accept-Encoding: | ||
298 | - gzip, deflate | ||
299 | Authorization: | ||
300 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2 | ||
301 | Connection: | ||
302 | - keep-alive | ||
303 | Content-Length: | ||
304 | - '0' | ||
305 | User-Agent: | ||
306 | - tests/v311 | ||
307 | method: DELETE | ||
308 | uri: http://localhost:3000/api/v1/statuses/109395782916477342 | ||
309 | response: | ||
310 | body: | ||
311 | string: '{"id":"109395782916477342","created_at":"2022-11-23T23:46:15.851Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/109395782916477342","url":"http://localhost:3000/@admin/109395782916477342","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"@mastodonpy_test | ||
312 | hello!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py test | ||
313 | suite","website":null},"account":{"id":"109384259794974437","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":8,"last_status_at":"2022-11-23","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109384260022953307","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}' | ||
314 | headers: | ||
315 | Cache-Control: | ||
316 | - no-store | ||
317 | Content-Security-Policy: | ||
318 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | ||
319 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | ||
320 | style-src ''self'' http://localhost:3000 ''nonce-/s83JUB1dihDZNNF69hu8Q==''; | ||
321 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | ||
322 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | ||
323 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | ||
324 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' | ||
325 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; | ||
326 | worker-src ''self'' blob: http://localhost:3000' | ||
327 | Content-Type: | ||
328 | - application/json; charset=utf-8 | ||
329 | ETag: | ||
330 | - W/"69038886de73588df13fc758b5551ab6" | ||
331 | Referrer-Policy: | ||
332 | - strict-origin-when-cross-origin | ||
333 | Transfer-Encoding: | ||
334 | - chunked | ||
335 | Vary: | ||
336 | - Accept, Origin | ||
337 | X-Content-Type-Options: | ||
338 | - nosniff | ||
339 | X-Download-Options: | ||
340 | - noopen | ||
341 | X-Frame-Options: | ||
342 | - SAMEORIGIN | ||
343 | X-Permitted-Cross-Domain-Policies: | ||
344 | - none | ||
345 | X-Request-Id: | ||
346 | - 6d564086-bd9e-43a4-bbd6-a7a98c621b54 | ||
347 | X-Runtime: | ||
348 | - '0.051763' | ||
349 | X-XSS-Protection: | ||
350 | - 1; mode=block | ||
351 | status: | ||
352 | code: 200 | ||
353 | message: OK | ||
354 | version: 1 | ||