aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2019-10-11 22:07:08 +0200
committerLorenz Diener <[email protected]>2019-10-11 22:07:08 +0200
commit17013f1d356f13004c66aed4181041f71c568b9e (patch)
tree7adbae71ae9615bef1c82935d277d65ac78c3a84 /tests
parent30eb63261ca5964222f5a2c5f03d6bd537fac987 (diff)
downloadmastodon.py-17013f1d356f13004c66aed4181041f71c568b9e.tar.gz
Add missing casette for dismiss test
Diffstat (limited to 'tests')
-rw-r--r--tests/cassettes_pre_2_9_2/test_notifications_dismiss.yaml126
1 files changed, 126 insertions, 0 deletions
diff --git a/tests/cassettes_pre_2_9_2/test_notifications_dismiss.yaml b/tests/cassettes_pre_2_9_2/test_notifications_dismiss.yaml
new file mode 100644
index 0000000..25c31e2
--- /dev/null
+++ b/tests/cassettes_pre_2_9_2/test_notifications_dismiss.yaml
@@ -0,0 +1,126 @@
1interactions:
2- request:
3 body: status=%40mastodonpy_test+hello%21
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
8 Connection: [keep-alive]
9 Content-Length: ['34']
10 Content-Type: [application/x-www-form-urlencoded]
11 User-Agent: [python-requests/2.18.4]
12 method: POST
13 uri: http://localhost:3000/api/v1/statuses
14 response:
15 body: {string: '{"id":"102317291057725861","created_at":"2019-06-22T21:12:41.706Z","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/102317291057725861","url":"http://localhost/@admin/102317291057725861","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003e\u003cspan
16 class=\"h-card\"\u003e\u003ca href=\"http://localhost/@mastodonpy_test\" class=\"u-url
17 mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e
18 hello!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py test
19 suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","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":2,"following_count":1,"statuses_count":17,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'}
20 headers:
21 Cache-Control: ['no-cache, no-store']
22 Content-Type: [application/json; charset=utf-8]
23 Referrer-Policy: [strict-origin-when-cross-origin]
24 Transfer-Encoding: [chunked]
25 Vary: ['Accept-Encoding, Origin']
26 X-Content-Type-Options: [nosniff]
27 X-Download-Options: [noopen]
28 X-Frame-Options: [SAMEORIGIN]
29 X-Permitted-Cross-Domain-Policies: [none]
30 X-Request-Id: [93a5beb9-f93d-4498-a0a6-c08258d72d95]
31 X-Runtime: ['0.229491']
32 X-XSS-Protection: [1; mode=block]
33 content-length: ['1488']
34 status: {code: 200, message: OK}
35- request:
36 body: null
37 headers:
38 Accept: ['*/*']
39 Accept-Encoding: ['gzip, deflate']
40 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
41 Connection: [keep-alive]
42 User-Agent: [python-requests/2.18.4]
43 method: GET
44 uri: http://localhost:3000/api/v1/notifications
45 response:
46 body: {string: '[{"id":"112","type":"mention","created_at":"2019-06-22T21:12:41.829Z","account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","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":2,"following_count":1,"statuses_count":17,"emojis":[],"fields":[]},"status":{"id":"102317291057725861","created_at":"2019-06-22T21:12:41.706Z","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/102317291057725861","url":"http://localhost/@admin/102317291057725861","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"content":"\u003cp\u003e\u003cspan
47 class=\"h-card\"\u003e\u003ca href=\"http://localhost/@mastodonpy_test\" class=\"u-url
48 mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e
49 hello!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py test
50 suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","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":2,"following_count":1,"statuses_count":17,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}}]'}
51 headers:
52 Cache-Control: ['no-cache, no-store']
53 Content-Type: [application/json; charset=utf-8]
54 Link: ['<http://localhost:3000/api/v1/notifications?max_id=112>; rel="next",
55 <http://localhost:3000/api/v1/notifications?min_id=112>; rel="prev"']
56 Referrer-Policy: [strict-origin-when-cross-origin]
57 Transfer-Encoding: [chunked]
58 Vary: ['Accept-Encoding, Origin']
59 X-Content-Type-Options: [nosniff]
60 X-Download-Options: [noopen]
61 X-Frame-Options: [SAMEORIGIN]
62 X-Permitted-Cross-Domain-Policies: [none]
63 X-Request-Id: [a381923e-e73f-479f-acea-eae201792ae7]
64 X-Runtime: ['0.095464']
65 X-XSS-Protection: [1; mode=block]
66 content-length: ['2089']
67 status: {code: 200, message: OK}
68- request:
69 body: id=112
70 headers:
71 Accept: ['*/*']
72 Accept-Encoding: ['gzip, deflate']
73 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
74 Connection: [keep-alive]
75 Content-Length: ['6']
76 Content-Type: [application/x-www-form-urlencoded]
77 User-Agent: [python-requests/2.18.4]
78 method: POST
79 uri: http://localhost:3000/api/v1/notifications/dismiss
80 response:
81 body: {string: '{}'}
82 headers:
83 Cache-Control: ['no-cache, no-store']
84 Content-Type: [application/json; charset=utf-8]
85 Referrer-Policy: [strict-origin-when-cross-origin]
86 Transfer-Encoding: [chunked]
87 Vary: ['Accept-Encoding, Origin']
88 X-Content-Type-Options: [nosniff]
89 X-Download-Options: [noopen]
90 X-Frame-Options: [SAMEORIGIN]
91 X-Permitted-Cross-Domain-Policies: [none]
92 X-Request-Id: [6d7d73d4-f824-4b47-805f-1552bc92f7d8]
93 X-Runtime: ['0.041361']
94 X-XSS-Protection: [1; mode=block]
95 content-length: ['2']
96 status: {code: 200, message: OK}
97- request:
98 body: null
99 headers:
100 Accept: ['*/*']
101 Accept-Encoding: ['gzip, deflate']
102 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
103 Connection: [keep-alive]
104 Content-Length: ['0']
105 User-Agent: [python-requests/2.18.4]
106 method: DELETE
107 uri: http://localhost:3000/api/v1/statuses/102317291057725861
108 response:
109 body: {string: '{"id":"102317291057725861","created_at":"2019-06-22T21:12:41.706Z","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/102317291057725861","url":"http://localhost/@admin/102317291057725861","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"text":"@mastodonpy_test
110 hello!","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","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":2,"following_count":1,"statuses_count":17,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'}
111 headers:
112 Cache-Control: ['no-cache, no-store']
113 Content-Type: [application/json; charset=utf-8]
114 Referrer-Policy: [strict-origin-when-cross-origin]
115 Transfer-Encoding: [chunked]
116 Vary: ['Accept-Encoding, Origin']
117 X-Content-Type-Options: [nosniff]
118 X-Download-Options: [noopen]
119 X-Frame-Options: [SAMEORIGIN]
120 X-Permitted-Cross-Domain-Policies: [none]
121 X-Request-Id: [d8419c44-3f0a-4c22-b486-fe69128ad00a]
122 X-Runtime: ['0.137253']
123 X-XSS-Protection: [1; mode=block]
124 content-length: ['1281']
125 status: {code: 200, message: OK}
126version: 1
Powered by cgit v1.2.3 (git 2.41.0)