aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_notifications_dismiss.yaml')
-rw-r--r--tests/cassettes/test_notifications_dismiss.yaml69
1 files changed, 30 insertions, 39 deletions
diff --git a/tests/cassettes/test_notifications_dismiss.yaml b/tests/cassettes/test_notifications_dismiss.yaml
index e5f8f34..d46c9d3 100644
--- a/tests/cassettes/test_notifications_dismiss.yaml
+++ b/tests/cassettes/test_notifications_dismiss.yaml
@@ -1,35 +1,34 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: visibility=&status=%40mastodonpy_test+hello%21 3 body: status=%40mastodonpy_test+hello%21
4 headers: 4 headers:
5 Accept: ['*/*'] 5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate'] 6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] 7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
8 Connection: [keep-alive] 8 Connection: [keep-alive]
9 Content-Length: ['46'] 9 Content-Length: ['34']
10 Content-Type: [application/x-www-form-urlencoded] 10 Content-Type: [application/x-www-form-urlencoded]
11 User-Agent: [python-requests/2.18.4] 11 User-Agent: [python-requests/2.9.1]
12 method: POST 12 method: POST
13 uri: http://localhost:3000/api/v1/statuses 13 uri: http://localhost:3000/api/v1/statuses
14 response: 14 response:
15 body: {string: '{"id":"99090810070829091","created_at":"2017-11-30T01:36:08.913Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"sr","uri":"http://localhost:3000/users/admin/statuses/99090810070829091","content":"\u003cp\u003e\u003cspan 15 body: {string: '{"id":"99882188337720107","created_at":"2018-04-18T19:54:03.011Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"sr","uri":"http://localhost:3000/users/admin/statuses/99882188337720107","content":"\u003cp\u003e\u003cspan
16 class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" 16 class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\"
17 class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e 17 class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e
18 hello!\u003c/p\u003e","url":"http://localhost:3000/@admin/99090810070829091","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 18 hello!\u003c/p\u003e","url":"http://localhost:3000/@admin/99882188337720107","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
19 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"codltest","locked":false,"created_at":"2017-07-01T17:09:15.621Z","note":"\u003cp\u003ehello 19 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-04-17T21:40:55.626Z","note":"\u003cp\u003e\u003c/p\u003e","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":22},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[]}'}
20 :)\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","avatar_static":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":52},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[]}'}
21 headers: 20 headers:
22 Cache-Control: ['max-age=0, private, must-revalidate'] 21 Cache-Control: ['max-age=0, private, must-revalidate']
23 Content-Type: [application/json; charset=utf-8] 22 Content-Type: [application/json; charset=utf-8]
24 ETag: [W/"1a3ec3316c2518ab5afcc7202dd1497e"] 23 ETag: [W/"6ae5a5d2e75cace93233d85468d41d3e"]
25 Transfer-Encoding: [chunked] 24 Transfer-Encoding: [chunked]
26 Vary: ['Accept-Encoding, Origin'] 25 Vary: ['Accept-Encoding, Origin']
27 X-Content-Type-Options: [nosniff] 26 X-Content-Type-Options: [nosniff]
28 X-Frame-Options: [SAMEORIGIN] 27 X-Frame-Options: [SAMEORIGIN]
29 X-Request-Id: [a31a0e74-98bd-43b3-9592-2d62286b2ccb] 28 X-Request-Id: [d6c26a9c-bb68-4c28-8641-48ce977078ca]
30 X-Runtime: ['0.119704'] 29 X-Runtime: ['0.466669']
31 X-XSS-Protection: [1; mode=block] 30 X-XSS-Protection: [1; mode=block]
32 content-length: ['1542'] 31 content-length: ['1452']
33 status: {code: 200, message: OK} 32 status: {code: 200, message: OK}
34- request: 33- request:
35 body: null 34 body: null
@@ -38,40 +37,32 @@ interactions:
38 Accept-Encoding: ['gzip, deflate'] 37 Accept-Encoding: ['gzip, deflate']
39 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 38 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
40 Connection: [keep-alive] 39 Connection: [keep-alive]
41 User-Agent: [python-requests/2.18.4] 40 User-Agent: [python-requests/2.9.1]
42 method: GET 41 method: GET
43 uri: http://localhost:3000/api/v1/notifications 42 uri: http://localhost:3000/api/v1/notifications
44 response: 43 response:
45 body: {string: '[{"id":"17","type":"mention","created_at":"2017-11-30T01:36:08.959Z","account":{"id":"1","username":"admin","acct":"admin","display_name":"codltest","locked":false,"created_at":"2017-07-01T17:09:15.621Z","note":"\u003cp\u003ehello 44 body: {string: '[{"id":"73","type":"mention","created_at":"2018-04-18T19:54:03.170Z","account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-04-17T21:40:55.626Z","note":"\u003cp\u003e\u003c/p\u003e","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":21},"status":{"id":"99882188337720107","created_at":"2018-04-18T19:54:03.011Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"sr","uri":"http://localhost:3000/users/admin/statuses/99882188337720107","content":"\u003cp\u003e\u003cspan
46 :)\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","avatar_static":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":52},"status":{"id":"99090810070829091","created_at":"2017-11-30T01:36:08.913Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"sr","uri":"http://localhost:3000/users/admin/statuses/99090810070829091","content":"\u003cp\u003e\u003cspan
47 class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" 45 class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\"
48 class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e 46 class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e
49 hello!\u003c/p\u003e","url":"http://localhost:3000/@admin/99090810070829091","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"reblog":null,"application":{"name":"Mastodon.py 47 hello!\u003c/p\u003e","url":"http://localhost:3000/@admin/99882188337720107","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"reblog":null,"application":{"name":"Mastodon.py
50 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"codltest","locked":false,"created_at":"2017-07-01T17:09:15.621Z","note":"\u003cp\u003ehello 48 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-04-17T21:40:55.626Z","note":"\u003cp\u003e\u003c/p\u003e","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":21},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[]}}]'}
51 :)\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","avatar_static":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":52},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[]}},{"id":"15","type":"mention","created_at":"2017-11-30T01:31:26.680Z","account":{"id":"1","username":"admin","acct":"admin","display_name":"codltest","locked":false,"created_at":"2017-07-01T17:09:15.621Z","note":"\u003cp\u003ehello
52 :)\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","avatar_static":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":52},"status":{"id":"99090791570808347","created_at":"2017-11-30T01:31:26.630Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"sr","uri":"http://localhost:3000/users/admin/statuses/99090791570808347","content":"\u003cp\u003e\u003cspan
53 class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\"
54 class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e
55 hello!\u003c/p\u003e","url":"http://localhost:3000/@admin/99090791570808347","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"reblog":null,"application":{"name":"Mastodon.py
56 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"codltest","locked":false,"created_at":"2017-07-01T17:09:15.621Z","note":"\u003cp\u003ehello
57 :)\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","avatar_static":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":52},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[]}}]'}
58 headers: 49 headers:
59 Cache-Control: ['max-age=0, private, must-revalidate'] 50 Cache-Control: ['max-age=0, private, must-revalidate']
60 Content-Type: [application/json; charset=utf-8] 51 Content-Type: [application/json; charset=utf-8]
61 ETag: [W/"064e96244d5856cc227a2fa7d846513e"] 52 ETag: [W/"4251d238c4de65f0218b0ef9d48755ed"]
62 Link: ['<http://localhost:3000/api/v1/notifications?max_id=15>; rel="next", 53 Link: ['<http://localhost:3000/api/v1/notifications?max_id=73>; rel="next",
63 <http://localhost:3000/api/v1/notifications?since_id=17>; rel="prev"'] 54 <http://localhost:3000/api/v1/notifications?since_id=73>; rel="prev"']
64 Transfer-Encoding: [chunked] 55 Transfer-Encoding: [chunked]
65 Vary: ['Accept-Encoding, Origin'] 56 Vary: ['Accept-Encoding, Origin']
66 X-Content-Type-Options: [nosniff] 57 X-Content-Type-Options: [nosniff]
67 X-Frame-Options: [SAMEORIGIN] 58 X-Frame-Options: [SAMEORIGIN]
68 X-Request-Id: [2347ae7b-0002-4aab-baba-e62a7eb3b716] 59 X-Request-Id: [1e422ab9-17ff-41e9-b5a4-ff3f45d3efdf]
69 X-Runtime: ['0.136302'] 60 X-Runtime: ['0.112069']
70 X-XSS-Protection: [1; mode=block] 61 X-XSS-Protection: [1; mode=block]
71 content-length: ['4441'] 62 content-length: ['2041']
72 status: {code: 200, message: OK} 63 status: {code: 200, message: OK}
73- request: 64- request:
74 body: id=17 65 body: id=73
75 headers: 66 headers:
76 Accept: ['*/*'] 67 Accept: ['*/*']
77 Accept-Encoding: ['gzip, deflate'] 68 Accept-Encoding: ['gzip, deflate']
@@ -79,7 +70,7 @@ interactions:
79 Connection: [keep-alive] 70 Connection: [keep-alive]
80 Content-Length: ['5'] 71 Content-Length: ['5']
81 Content-Type: [application/x-www-form-urlencoded] 72 Content-Type: [application/x-www-form-urlencoded]
82 User-Agent: [python-requests/2.18.4] 73 User-Agent: [python-requests/2.9.1]
83 method: POST 74 method: POST
84 uri: http://localhost:3000/api/v1/notifications/dismiss 75 uri: http://localhost:3000/api/v1/notifications/dismiss
85 response: 76 response:
@@ -87,13 +78,13 @@ interactions:
87 headers: 78 headers:
88 Cache-Control: ['max-age=0, private, must-revalidate'] 79 Cache-Control: ['max-age=0, private, must-revalidate']
89 Content-Type: [application/json; charset=utf-8] 80 Content-Type: [application/json; charset=utf-8]
90 ETag: [W/"35ef2e1d7c4d5273d1cb56508dccd187"] 81 ETag: [W/"d4da38b737b637a10ab07923eab9d3ae"]
91 Transfer-Encoding: [chunked] 82 Transfer-Encoding: [chunked]
92 Vary: ['Accept-Encoding, Origin'] 83 Vary: ['Accept-Encoding, Origin']
93 X-Content-Type-Options: [nosniff] 84 X-Content-Type-Options: [nosniff]
94 X-Frame-Options: [SAMEORIGIN] 85 X-Frame-Options: [SAMEORIGIN]
95 X-Request-Id: [24688740-1fd8-4cb3-9def-075a707c5d6c] 86 X-Request-Id: [75e44bd4-e566-4f3c-8dff-7c7e65035927]
96 X-Runtime: ['0.024190'] 87 X-Runtime: ['0.041532']
97 X-XSS-Protection: [1; mode=block] 88 X-XSS-Protection: [1; mode=block]
98 content-length: ['2'] 89 content-length: ['2']
99 status: {code: 200, message: OK} 90 status: {code: 200, message: OK}
@@ -105,21 +96,21 @@ interactions:
105 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] 96 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
106 Connection: [keep-alive] 97 Connection: [keep-alive]
107 Content-Length: ['0'] 98 Content-Length: ['0']
108 User-Agent: [python-requests/2.18.4] 99 User-Agent: [python-requests/2.9.1]
109 method: DELETE 100 method: DELETE
110 uri: http://localhost:3000/api/v1/statuses/99090810070829091 101 uri: http://localhost:3000/api/v1/statuses/99882188337720107
111 response: 102 response:
112 body: {string: '{}'} 103 body: {string: '{}'}
113 headers: 104 headers:
114 Cache-Control: ['max-age=0, private, must-revalidate'] 105 Cache-Control: ['max-age=0, private, must-revalidate']
115 Content-Type: [application/json; charset=utf-8] 106 Content-Type: [application/json; charset=utf-8]
116 ETag: [W/"35ef2e1d7c4d5273d1cb56508dccd187"] 107 ETag: [W/"d4da38b737b637a10ab07923eab9d3ae"]
117 Transfer-Encoding: [chunked] 108 Transfer-Encoding: [chunked]
118 Vary: ['Accept-Encoding, Origin'] 109 Vary: ['Accept-Encoding, Origin']
119 X-Content-Type-Options: [nosniff] 110 X-Content-Type-Options: [nosniff]
120 X-Frame-Options: [SAMEORIGIN] 111 X-Frame-Options: [SAMEORIGIN]
121 X-Request-Id: [8ae15858-4ac7-49cd-ad68-47567b42a93f] 112 X-Request-Id: [4d7d98b7-78ef-4734-9d54-b69d048abddc]
122 X-Runtime: ['0.029080'] 113 X-Runtime: ['0.035931']
123 X-XSS-Protection: [1; mode=block] 114 X-XSS-Protection: [1; mode=block]
124 content-length: ['2'] 115 content-length: ['2']
125 status: {code: 200, message: OK} 116 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)