aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes_pre_2_9_2')
-rw-r--r--tests/cassettes_pre_2_9_2/test_notifications_dismiss.yaml112
1 files changed, 49 insertions, 63 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
index 25c31e2..0a5cf03 100644
--- a/tests/cassettes_pre_2_9_2/test_notifications_dismiss.yaml
+++ b/tests/cassettes_pre_2_9_2/test_notifications_dismiss.yaml
@@ -1,36 +1,49 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: status=%40mastodonpy_test+hello%21 3 body: null
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]
8 Connection: [keep-alive] 8 Connection: [keep-alive]
9 Content-Length: ['34']
10 Content-Type: [application/x-www-form-urlencoded]
11 User-Agent: [python-requests/2.18.4] 9 User-Agent: [python-requests/2.18.4]
12 method: POST 10 method: GET
13 uri: http://localhost:3000/api/v1/statuses 11 uri: http://localhost:3000/api/v1/notifications
14 response: 12 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 13 body:
16 class=\"h-card\"\u003e\u003ca href=\"http://localhost/@mastodonpy_test\" class=\"u-url 14 string: !!binary |
17 mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e 15 H4sIACbooF0AA+xZS4/iOBD+K9mcgTjOi2Q10lz3sLc57fQImcSAZxzbih260Yr/vuU8SHhMQ49G
18 hello!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py test 16 q24pF4jLVbar/FXVF/j6r8sKN3P9ALsz1xwUhUFJhWFSgCCvKDG0WBEDYoz8dO6jue9/wSgLkixK
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}'} 17 Fkka/gN6JM9lLUCpXw5ktaaVIKVdkBQlE62aGQ0LphUnh1WnBRIu8x8UFtgQrunMXUtzer4+Corn
18 GH/xcRbiLEILlMb2KEIau9hTjVCQq+aLtgOvG9mzVRx0dsaozPNgU8J3Uhvv8+mge2JIdUulndGe
19 rNiWCcK9kmnNxHahxPZkuNKGGJb/gv2OkoLe3LiduWP4ysZ37DeSc/kMCqvuJnEvA51e5s9cuwHc
20 7KCGZi4t5Xem3ezrN7BhlBfN87FXHlCBcBpGcYLSIMCB7wfhIxCLk+ZemVhVVPHDysiVXU3UnJ9L
21 OxCOZjUVmhm2pycUaSUZhzgZ+mJayO2ZZmvGmTnAWNVrDuEDIBKxrcnWIomKBjDsVlAtxrXXoMbr
22 I+PddPNVxN02sY6xIdLIStZcbseSDdlLOJuhN4VDJrWW25GkrMfzuRSGWvNbiaMVEU7Oidafntzd
23 PCdV8eSOFYizq+jGTl75VxJtZCGFgiui2jy5p4XqOcTE6WpNv97nYcdWcGnfZvIw3wnI2WiYdnYU
24 MPzHVQFo49HjhCiIdE6aogdg7erR393WC3Vw7N6OriGmYPxM19o+NdbHqfpN1e9m9StpwQjcmCH5
25 zsK80+kQb0c9XnBgk3+ZovbpHD4XGfDK/V1rdpC7nDjCMQzZdgcaO2Bzu88KBQHoMH6cnXgCeitP
26 wJkfLOIwmXjClClv4gnhMkiWUYrihpvehViEo/+NJxSsorn5PTzh3M2HeMK5ycQTfgNPsMbOphbC
27 9voXA7yhui4HE2uYauHEGn6BNeARa2gUfo5N7Gf+MkPxIg2nnxamNHmcMgR+glMc4CSMwiQO7kAs
28 yJC/QMvgw/20cO3mXcpwbfIOKINg+dRgp8rxHhvsG/pcDy3bfemLgtcC/bOOBuUmaTpaqwdmpqqb
29 bOGGKT4Ukr0c5Zzfjk/aUg00wDBjzSAkdeWYZ3Dg4F6YI9uDez3NXsxhLpigl2r+8czT46h1+9Fj
30 L/zj0orjxRKnU/eecvBt3TtEKFomMUbpIxBL0Mf7Y+Dazce695nJO+jeH/+Ff02paj/+shIcEyX1
31 n6VDnO8gnJjJVBXfITP5OK/+3/4DAAD//wMAcL5C61ogAAA=
20 headers: 32 headers:
21 Cache-Control: ['no-cache, no-store'] 33 Cache-Control: ['no-cache, no-store']
34 Content-Encoding: [gzip]
22 Content-Type: [application/json; charset=utf-8] 35 Content-Type: [application/json; charset=utf-8]
36 Link: ['<http://localhost:3000/api/v1/notifications?max_id=115>; rel="next",
37 <http://localhost:3000/api/v1/notifications?min_id=132>; rel="prev"']
23 Referrer-Policy: [strict-origin-when-cross-origin] 38 Referrer-Policy: [strict-origin-when-cross-origin]
24 Transfer-Encoding: [chunked]
25 Vary: ['Accept-Encoding, Origin'] 39 Vary: ['Accept-Encoding, Origin']
26 X-Content-Type-Options: [nosniff] 40 X-Content-Type-Options: [nosniff]
27 X-Download-Options: [noopen] 41 X-Download-Options: [noopen]
28 X-Frame-Options: [SAMEORIGIN] 42 X-Frame-Options: [SAMEORIGIN]
29 X-Permitted-Cross-Domain-Policies: [none] 43 X-Permitted-Cross-Domain-Policies: [none]
30 X-Request-Id: [93a5beb9-f93d-4498-a0a6-c08258d72d95] 44 X-Request-Id: [c803dcde-b4b2-4c79-ad89-8bfd07ec57ae]
31 X-Runtime: ['0.229491'] 45 X-Runtime: ['0.150857']
32 X-XSS-Protection: [1; mode=block] 46 X-XSS-Protection: [1; mode=block]
33 content-length: ['1488']
34 status: {code: 200, message: OK} 47 status: {code: 200, message: OK}
35- request: 48- request:
36 body: null 49 body: null
@@ -41,32 +54,33 @@ interactions:
41 Connection: [keep-alive] 54 Connection: [keep-alive]
42 User-Agent: [python-requests/2.18.4] 55 User-Agent: [python-requests/2.18.4]
43 method: GET 56 method: GET
44 uri: http://localhost:3000/api/v1/notifications 57 uri: http://localhost:3000/api/v1/instance/
45 response: 58 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 59 body:
47 class=\"h-card\"\u003e\u003ca href=\"http://localhost/@mastodonpy_test\" class=\"u-url 60 string: !!binary |
48 mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e 61 H4sIACbooF0AA0yQXU7EMAyE7+Ln0vRnabe5AydAqDKJaQNpEiXO7sNq705KWcSb/WlGM/YNcjQg
49 hello!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py test 62 wXqFdvWJoQI2bKmwF0zstXcFaUoqmsCmbBIKoA2NPcYLxXTwrp7qtpAcbQJ5g8SRcDNumTHsIdck
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}}]'} 63 hfhLkqemaeBeFRnyjz4nirPy2THI/uA5PUDXlhq+xLoHaYqX17y9u6PLyhz+B4iA6iuJjbRBYTZc
64 KIkQ6WLo+jRhO+q++1Cncz9MdFZKT22D43M3NDSMuv4MS7nEolvybgT5CuTgrYJIiymH4f6Lgjlm
65 qkB5x6h4RvXbzWVr798AAAD//wMA7+lJTl0BAAA=
51 headers: 66 headers:
52 Cache-Control: ['no-cache, no-store'] 67 Cache-Control: ['max-age=300, public']
68 Content-Encoding: [gzip]
53 Content-Type: [application/json; charset=utf-8] 69 Content-Type: [application/json; charset=utf-8]
54 Link: ['<http://localhost:3000/api/v1/notifications?max_id=112>; rel="next", 70 Date: ['Fri, 11 Oct 2019 20:37:58 GMT']
55 <http://localhost:3000/api/v1/notifications?min_id=112>; rel="prev"'] 71 ETag: [W/"ad87f54668db431e5bc3f918c2e6980a"]
56 Referrer-Policy: [strict-origin-when-cross-origin] 72 Referrer-Policy: [strict-origin-when-cross-origin]
57 Transfer-Encoding: [chunked]
58 Vary: ['Accept-Encoding, Origin'] 73 Vary: ['Accept-Encoding, Origin']
59 X-Content-Type-Options: [nosniff] 74 X-Content-Type-Options: [nosniff]
60 X-Download-Options: [noopen] 75 X-Download-Options: [noopen]
61 X-Frame-Options: [SAMEORIGIN] 76 X-Frame-Options: [SAMEORIGIN]
62 X-Permitted-Cross-Domain-Policies: [none] 77 X-Permitted-Cross-Domain-Policies: [none]
63 X-Request-Id: [a381923e-e73f-479f-acea-eae201792ae7] 78 X-Request-Id: [c6e9a6fe-e6c0-4fb4-be3f-c946b3c7ab32]
64 X-Runtime: ['0.095464'] 79 X-Runtime: ['0.028744']
65 X-XSS-Protection: [1; mode=block] 80 X-XSS-Protection: [1; mode=block]
66 content-length: ['2089']
67 status: {code: 200, message: OK} 81 status: {code: 200, message: OK}
68- request: 82- request:
69 body: id=112 83 body: id=132
70 headers: 84 headers:
71 Accept: ['*/*'] 85 Accept: ['*/*']
72 Accept-Encoding: ['gzip, deflate'] 86 Accept-Encoding: ['gzip, deflate']
@@ -78,49 +92,21 @@ interactions:
78 method: POST 92 method: POST
79 uri: http://localhost:3000/api/v1/notifications/dismiss 93 uri: http://localhost:3000/api/v1/notifications/dismiss
80 response: 94 response:
81 body: {string: '{}'} 95 body:
82 headers: 96 string: !!binary |
83 Cache-Control: ['no-cache, no-store'] 97 H4sIACbooF0AA6quBQAAAP//AwBDv6ajAgAAAA==
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: 98 headers:
112 Cache-Control: ['no-cache, no-store'] 99 Cache-Control: ['no-cache, no-store']
100 Content-Encoding: [gzip]
113 Content-Type: [application/json; charset=utf-8] 101 Content-Type: [application/json; charset=utf-8]
114 Referrer-Policy: [strict-origin-when-cross-origin] 102 Referrer-Policy: [strict-origin-when-cross-origin]
115 Transfer-Encoding: [chunked]
116 Vary: ['Accept-Encoding, Origin'] 103 Vary: ['Accept-Encoding, Origin']
117 X-Content-Type-Options: [nosniff] 104 X-Content-Type-Options: [nosniff]
118 X-Download-Options: [noopen] 105 X-Download-Options: [noopen]
119 X-Frame-Options: [SAMEORIGIN] 106 X-Frame-Options: [SAMEORIGIN]
120 X-Permitted-Cross-Domain-Policies: [none] 107 X-Permitted-Cross-Domain-Policies: [none]
121 X-Request-Id: [d8419c44-3f0a-4c22-b486-fe69128ad00a] 108 X-Request-Id: [4a767314-d1c1-4872-a9e1-fc3186b4b2a1]
122 X-Runtime: ['0.137253'] 109 X-Runtime: ['0.031584']
123 X-XSS-Protection: [1; mode=block] 110 X-XSS-Protection: [1; mode=block]
124 content-length: ['1281']
125 status: {code: 200, message: OK} 111 status: {code: 200, message: OK}
126version: 1 112version: 1
Powered by cgit v1.2.3 (git 2.41.0)