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_exclude_types.yaml | |
parent | 066d543109496c732f6c05bfbe3418d30b648f42 (diff) | |
download | mastodon.py-f81978a39c7ad2124951806cd66fcbadffc16d59.tar.gz |
Add notification tests
Diffstat (limited to 'tests/cassettes/test_notifications_exclude_types.yaml')
-rw-r--r-- | tests/cassettes/test_notifications_exclude_types.yaml | 194 |
1 files changed, 194 insertions, 0 deletions
diff --git a/tests/cassettes/test_notifications_exclude_types.yaml b/tests/cassettes/test_notifications_exclude_types.yaml new file mode 100644 index 0000000..191681d --- /dev/null +++ b/tests/cassettes/test_notifications_exclude_types.yaml | |||
@@ -0,0 +1,194 @@ | |||
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":"109395782710280813","created_at":"2022-11-23T23:46:12.705Z","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/109395782710280813","url":"http://localhost:3000/@admin/109395782710280813","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-RxDFidMVBP749+Clx1+8aw==''; | ||
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/"64e75b24178056323c06993045dbe4c7" | ||
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 | - '298' | ||
63 | X-RateLimit-Reset: | ||
64 | - '2022-11-24T00:00:00.737245Z' | ||
65 | X-Request-Id: | ||
66 | - 848e2c0a-9d55-44ac-8913-99c3b3e9fd31 | ||
67 | X-Runtime: | ||
68 | - '0.048887' | ||
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?exclude_types%5B%5D=mention | ||
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-1WM1ilFhpA5lRxjqJ3bdvQ==''; | ||
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 | - 0c34535c-f56a-4d32-a9b1-9b04cb5da005 | ||
125 | X-Runtime: | ||
126 | - '0.039520' | ||
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_2 | ||
141 | Connection: | ||
142 | - keep-alive | ||
143 | Content-Length: | ||
144 | - '0' | ||
145 | User-Agent: | ||
146 | - tests/v311 | ||
147 | method: DELETE | ||
148 | uri: http://localhost:3000/api/v1/statuses/109395782710280813 | ||
149 | response: | ||
150 | body: | ||
151 | string: '{"id":"109395782710280813","created_at":"2022-11-23T23:46:12.705Z","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/109395782710280813","url":"http://localhost:3000/@admin/109395782710280813","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 | ||
152 | hello!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py test | ||
153 | 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}' | ||
154 | headers: | ||
155 | Cache-Control: | ||
156 | - no-store | ||
157 | Content-Security-Policy: | ||
158 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | ||
159 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | ||
160 | style-src ''self'' http://localhost:3000 ''nonce-FSqEPJy0kerEUKSRr+JJOg==''; | ||
161 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | ||
162 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | ||
163 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | ||
164 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' | ||
165 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; | ||
166 | worker-src ''self'' blob: http://localhost:3000' | ||
167 | Content-Type: | ||
168 | - application/json; charset=utf-8 | ||
169 | ETag: | ||
170 | - W/"2eb049040b906f60fd6a4140220c3a7d" | ||
171 | Referrer-Policy: | ||
172 | - strict-origin-when-cross-origin | ||
173 | Transfer-Encoding: | ||
174 | - chunked | ||
175 | Vary: | ||
176 | - Accept, Origin | ||
177 | X-Content-Type-Options: | ||
178 | - nosniff | ||
179 | X-Download-Options: | ||
180 | - noopen | ||
181 | X-Frame-Options: | ||
182 | - SAMEORIGIN | ||
183 | X-Permitted-Cross-Domain-Policies: | ||
184 | - none | ||
185 | X-Request-Id: | ||
186 | - edee00c4-33ce-41c7-a3ce-40c112bb1aae | ||
187 | X-Runtime: | ||
188 | - '0.033217' | ||
189 | X-XSS-Protection: | ||
190 | - 1; mode=block | ||
191 | status: | ||
192 | code: 200 | ||
193 | message: OK | ||
194 | version: 1 | ||