aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_polls.yaml')
-rw-r--r--tests/cassettes/test_polls.yaml80
1 files changed, 38 insertions, 42 deletions
diff --git a/tests/cassettes/test_polls.yaml b/tests/cassettes/test_polls.yaml
index 6132074..c4700a4 100644
--- a/tests/cassettes/test_polls.yaml
+++ b/tests/cassettes/test_polls.yaml
@@ -13,13 +13,12 @@ interactions:
13 method: POST 13 method: POST
14 uri: http://localhost:3000/api/v1/statuses 14 uri: http://localhost:3000/api/v1/statuses
15 response: 15 response:
16 body: {string: '{"id":"102005835265128615","created_at":"2019-04-28T21:05:23.464Z","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/102005835265128615","content":"\u003cp\u003enice\u003c/p\u003e","url":"http://localhost/@admin/102005835265128615","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 16 body: {string: '{"id":"102315367762013469","created_at":"2019-06-22T13:03:34.554Z","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/102315367762013469","url":"http://localhost/@admin/102315367762013469","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003enice\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py
17 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-04-27T18:52:42.626Z","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":0,"following_count":0,"statuses_count":25,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":{"id":"15","expires_at":"2019-04-28T21:10:23.457Z","expired":false,"multiple":true,"votes_count":0,"voted":true,"options":[{"title":"four 17 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":0,"following_count":0,"statuses_count":1,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":{"id":"1","expires_at":"2019-06-22T13:08:34.543Z","expired":false,"multiple":true,"votes_count":0,"voted":true,"options":[{"title":"four
18 twenty","votes_count":0},{"title":"sixty-nine","votes_count":0}],"emojis":[]}}'} 18 twenty","votes_count":0},{"title":"sixty-nine","votes_count":0}],"emojis":[]}}'}
19 headers: 19 headers:
20 Cache-Control: ['max-age=0, private, must-revalidate'] 20 Cache-Control: ['no-cache, no-store']
21 Content-Type: [application/json; charset=utf-8] 21 Content-Type: [application/json; charset=utf-8]
22 ETag: [W/"9b51d6b8d66f9e0eb1c833ed6f67df71"]
23 Referrer-Policy: [strict-origin-when-cross-origin] 22 Referrer-Policy: [strict-origin-when-cross-origin]
24 Transfer-Encoding: [chunked] 23 Transfer-Encoding: [chunked]
25 Vary: ['Accept-Encoding, Origin'] 24 Vary: ['Accept-Encoding, Origin']
@@ -27,10 +26,10 @@ interactions:
27 X-Download-Options: [noopen] 26 X-Download-Options: [noopen]
28 X-Frame-Options: [SAMEORIGIN] 27 X-Frame-Options: [SAMEORIGIN]
29 X-Permitted-Cross-Domain-Policies: [none] 28 X-Permitted-Cross-Domain-Policies: [none]
30 X-Request-Id: [f11d8fa0-461a-446e-a0f5-20b81af7f6cc] 29 X-Request-Id: [eff31aa8-bda7-408b-8260-bc592dc9bbd4]
31 X-Runtime: ['0.157309'] 30 X-Runtime: ['0.223254']
32 X-XSS-Protection: [1; mode=block] 31 X-XSS-Protection: [1; mode=block]
33 content-length: ['1382'] 32 content-length: ['1380']
34 status: {code: 200, message: OK} 33 status: {code: 200, message: OK}
35- request: 34- request:
36 body: choices%5B%5D=1 35 body: choices%5B%5D=1
@@ -43,14 +42,13 @@ interactions:
43 Content-Type: [application/x-www-form-urlencoded] 42 Content-Type: [application/x-www-form-urlencoded]
44 User-Agent: [python-requests/2.18.4] 43 User-Agent: [python-requests/2.18.4]
45 method: POST 44 method: POST
46 uri: http://localhost:3000/api/v1/polls/15/votes 45 uri: http://localhost:3000/api/v1/polls/1/votes
47 response: 46 response:
48 body: {string: '{"id":"15","expires_at":"2019-04-28T21:10:23.457Z","expired":false,"multiple":true,"votes_count":1,"voted":true,"options":[{"title":"four 47 body: {string: '{"id":"1","expires_at":"2019-06-22T13:08:34.543Z","expired":false,"multiple":true,"votes_count":1,"voted":true,"options":[{"title":"four
49 twenty","votes_count":0},{"title":"sixty-nine","votes_count":1}],"emojis":[]}'} 48 twenty","votes_count":0},{"title":"sixty-nine","votes_count":1}],"emojis":[]}'}
50 headers: 49 headers:
51 Cache-Control: ['max-age=0, private, must-revalidate'] 50 Cache-Control: ['no-cache, no-store']
52 Content-Type: [application/json; charset=utf-8] 51 Content-Type: [application/json; charset=utf-8]
53 ETag: [W/"5b2a849b672ccadf70a2620d4dc1cacb"]
54 Referrer-Policy: [strict-origin-when-cross-origin] 52 Referrer-Policy: [strict-origin-when-cross-origin]
55 Transfer-Encoding: [chunked] 53 Transfer-Encoding: [chunked]
56 Vary: ['Accept-Encoding, Origin'] 54 Vary: ['Accept-Encoding, Origin']
@@ -58,10 +56,10 @@ interactions:
58 X-Download-Options: [noopen] 56 X-Download-Options: [noopen]
59 X-Frame-Options: [SAMEORIGIN] 57 X-Frame-Options: [SAMEORIGIN]
60 X-Permitted-Cross-Domain-Policies: [none] 58 X-Permitted-Cross-Domain-Policies: [none]
61 X-Request-Id: [9bfef151-c9a3-44cc-94d4-6ed33e9e7c24] 59 X-Request-Id: [08c8efb8-8ee3-4087-b9f7-25ba1335b593]
62 X-Runtime: ['0.079564'] 60 X-Runtime: ['0.077040']
63 X-XSS-Protection: [1; mode=block] 61 X-XSS-Protection: [1; mode=block]
64 content-length: ['215'] 62 content-length: ['214']
65 status: {code: 200, message: OK} 63 status: {code: 200, message: OK}
66- request: 64- request:
67 body: null 65 body: null
@@ -72,14 +70,13 @@ interactions:
72 Connection: [keep-alive] 70 Connection: [keep-alive]
73 User-Agent: [python-requests/2.18.4] 71 User-Agent: [python-requests/2.18.4]
74 method: GET 72 method: GET
75 uri: http://localhost:3000/api/v1/polls/15 73 uri: http://localhost:3000/api/v1/polls/1
76 response: 74 response:
77 body: {string: '{"id":"15","expires_at":"2019-04-28T21:10:23.457Z","expired":false,"multiple":true,"votes_count":1,"voted":true,"options":[{"title":"four 75 body: {string: '{"id":"1","expires_at":"2019-06-22T13:08:34.543Z","expired":false,"multiple":true,"votes_count":1,"voted":true,"options":[{"title":"four
78 twenty","votes_count":0},{"title":"sixty-nine","votes_count":1}],"emojis":[]}'} 76 twenty","votes_count":0},{"title":"sixty-nine","votes_count":1}],"emojis":[]}'}
79 headers: 77 headers:
80 Cache-Control: ['max-age=0, private, must-revalidate'] 78 Cache-Control: ['no-cache, no-store']
81 Content-Type: [application/json; charset=utf-8] 79 Content-Type: [application/json; charset=utf-8]
82 ETag: [W/"5b2a849b672ccadf70a2620d4dc1cacb"]
83 Referrer-Policy: [strict-origin-when-cross-origin] 80 Referrer-Policy: [strict-origin-when-cross-origin]
84 Transfer-Encoding: [chunked] 81 Transfer-Encoding: [chunked]
85 Vary: ['Accept-Encoding, Origin'] 82 Vary: ['Accept-Encoding, Origin']
@@ -87,10 +84,10 @@ interactions:
87 X-Download-Options: [noopen] 84 X-Download-Options: [noopen]
88 X-Frame-Options: [SAMEORIGIN] 85 X-Frame-Options: [SAMEORIGIN]
89 X-Permitted-Cross-Domain-Policies: [none] 86 X-Permitted-Cross-Domain-Policies: [none]
90 X-Request-Id: [f6a54825-bd65-49b0-a83f-39ef5124a362] 87 X-Request-Id: [39703b78-72bb-4bda-8f3d-ecc0fa9a3645]
91 X-Runtime: ['0.043202'] 88 X-Runtime: ['0.035297']
92 X-XSS-Protection: [1; mode=block] 89 X-XSS-Protection: [1; mode=block]
93 content-length: ['215'] 90 content-length: ['214']
94 status: {code: 200, message: OK} 91 status: {code: 200, message: OK}
95- request: 92- request:
96 body: choices%5B%5D=0 93 body: choices%5B%5D=0
@@ -103,14 +100,13 @@ interactions:
103 Content-Type: [application/x-www-form-urlencoded] 100 Content-Type: [application/x-www-form-urlencoded]
104 User-Agent: [python-requests/2.18.4] 101 User-Agent: [python-requests/2.18.4]
105 method: POST 102 method: POST
106 uri: http://localhost:3000/api/v1/polls/15/votes 103 uri: http://localhost:3000/api/v1/polls/1/votes
107 response: 104 response:
108 body: {string: '{"id":"15","expires_at":"2019-04-28T21:10:23.457Z","expired":false,"multiple":true,"votes_count":2,"voted":true,"options":[{"title":"four 105 body: {string: '{"id":"1","expires_at":"2019-06-22T13:08:34.543Z","expired":false,"multiple":true,"votes_count":2,"voted":true,"options":[{"title":"four
109 twenty","votes_count":1},{"title":"sixty-nine","votes_count":1}],"emojis":[]}'} 106 twenty","votes_count":1},{"title":"sixty-nine","votes_count":1}],"emojis":[]}'}
110 headers: 107 headers:
111 Cache-Control: ['max-age=0, private, must-revalidate'] 108 Cache-Control: ['no-cache, no-store']
112 Content-Type: [application/json; charset=utf-8] 109 Content-Type: [application/json; charset=utf-8]
113 ETag: [W/"567f9562c02e1a5533bf95d1d4bbdede"]
114 Referrer-Policy: [strict-origin-when-cross-origin] 110 Referrer-Policy: [strict-origin-when-cross-origin]
115 Transfer-Encoding: [chunked] 111 Transfer-Encoding: [chunked]
116 Vary: ['Accept-Encoding, Origin'] 112 Vary: ['Accept-Encoding, Origin']
@@ -118,10 +114,10 @@ interactions:
118 X-Download-Options: [noopen] 114 X-Download-Options: [noopen]
119 X-Frame-Options: [SAMEORIGIN] 115 X-Frame-Options: [SAMEORIGIN]
120 X-Permitted-Cross-Domain-Policies: [none] 116 X-Permitted-Cross-Domain-Policies: [none]
121 X-Request-Id: [209f0950-c9c0-4ab8-978f-de3239546a97] 117 X-Request-Id: [da03e008-863c-4d49-8c64-37fb93d629a0]
122 X-Runtime: ['0.062952'] 118 X-Runtime: ['0.043669']
123 X-XSS-Protection: [1; mode=block] 119 X-XSS-Protection: [1; mode=block]
124 content-length: ['215'] 120 content-length: ['214']
125 status: {code: 200, message: OK} 121 status: {code: 200, message: OK}
126- request: 122- request:
127 body: null 123 body: null
@@ -132,14 +128,13 @@ interactions:
132 Connection: [keep-alive] 128 Connection: [keep-alive]
133 User-Agent: [python-requests/2.18.4] 129 User-Agent: [python-requests/2.18.4]
134 method: GET 130 method: GET
135 uri: http://localhost:3000/api/v1/polls/15 131 uri: http://localhost:3000/api/v1/polls/1
136 response: 132 response:
137 body: {string: '{"id":"15","expires_at":"2019-04-28T21:10:23.457Z","expired":false,"multiple":true,"votes_count":2,"voted":true,"options":[{"title":"four 133 body: {string: '{"id":"1","expires_at":"2019-06-22T13:08:34.543Z","expired":false,"multiple":true,"votes_count":2,"voted":true,"options":[{"title":"four
138 twenty","votes_count":1},{"title":"sixty-nine","votes_count":1}],"emojis":[]}'} 134 twenty","votes_count":1},{"title":"sixty-nine","votes_count":1}],"emojis":[]}'}
139 headers: 135 headers:
140 Cache-Control: ['max-age=0, private, must-revalidate'] 136 Cache-Control: ['no-cache, no-store']
141 Content-Type: [application/json; charset=utf-8] 137 Content-Type: [application/json; charset=utf-8]
142 ETag: [W/"567f9562c02e1a5533bf95d1d4bbdede"]
143 Referrer-Policy: [strict-origin-when-cross-origin] 138 Referrer-Policy: [strict-origin-when-cross-origin]
144 Transfer-Encoding: [chunked] 139 Transfer-Encoding: [chunked]
145 Vary: ['Accept-Encoding, Origin'] 140 Vary: ['Accept-Encoding, Origin']
@@ -147,10 +142,10 @@ interactions:
147 X-Download-Options: [noopen] 142 X-Download-Options: [noopen]
148 X-Frame-Options: [SAMEORIGIN] 143 X-Frame-Options: [SAMEORIGIN]
149 X-Permitted-Cross-Domain-Policies: [none] 144 X-Permitted-Cross-Domain-Policies: [none]
150 X-Request-Id: [7caa443c-5605-436f-bae1-f7088dc7db1d] 145 X-Request-Id: [ee710e5b-2403-45bd-97ca-0f2edcd70797]
151 X-Runtime: ['0.037629'] 146 X-Runtime: ['0.024792']
152 X-XSS-Protection: [1; mode=block] 147 X-XSS-Protection: [1; mode=block]
153 content-length: ['215'] 148 content-length: ['214']
154 status: {code: 200, message: OK} 149 status: {code: 200, message: OK}
155- request: 150- request:
156 body: null 151 body: null
@@ -162,13 +157,14 @@ interactions:
162 Content-Length: ['0'] 157 Content-Length: ['0']
163 User-Agent: [python-requests/2.18.4] 158 User-Agent: [python-requests/2.18.4]
164 method: DELETE 159 method: DELETE
165 uri: http://localhost:3000/api/v1/statuses/102005835265128615 160 uri: http://localhost:3000/api/v1/statuses/102315367762013469
166 response: 161 response:
167 body: {string: '{}'} 162 body: {string: '{"id":"102315367762013469","created_at":"2019-06-22T13:03:34.554Z","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/102315367762013469","url":"http://localhost/@admin/102315367762013469","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"text":"nice","reblog":null,"application":{"name":"Mastodon.py
163 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":0,"following_count":0,"statuses_count":1,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":{"id":"1","expires_at":"2019-06-22T13:08:34.543Z","expired":false,"multiple":true,"votes_count":2,"voted":true,"options":[{"title":"four
164 twenty","votes_count":1},{"title":"sixty-nine","votes_count":1}],"emojis":[]}}'}
168 headers: 165 headers:
169 Cache-Control: ['max-age=0, private, must-revalidate'] 166 Cache-Control: ['no-cache, no-store']
170 Content-Type: [application/json; charset=utf-8] 167 Content-Type: [application/json; charset=utf-8]
171 ETag: [W/"6e856267241253766a52970611e7487c"]
172 Referrer-Policy: [strict-origin-when-cross-origin] 168 Referrer-Policy: [strict-origin-when-cross-origin]
173 Transfer-Encoding: [chunked] 169 Transfer-Encoding: [chunked]
174 Vary: ['Accept-Encoding, Origin'] 170 Vary: ['Accept-Encoding, Origin']
@@ -176,9 +172,9 @@ interactions:
176 X-Download-Options: [noopen] 172 X-Download-Options: [noopen]
177 X-Frame-Options: [SAMEORIGIN] 173 X-Frame-Options: [SAMEORIGIN]
178 X-Permitted-Cross-Domain-Policies: [none] 174 X-Permitted-Cross-Domain-Policies: [none]
179 X-Request-Id: [9a5591f2-fbaa-4f0e-832f-86f5d1b8e6b1] 175 X-Request-Id: [f5f1d50a-0185-482f-bfde-6b9ab6d97dfa]
180 X-Runtime: ['0.044707'] 176 X-Runtime: ['0.084331']
181 X-XSS-Protection: [1; mode=block] 177 X-XSS-Protection: [1; mode=block]
182 content-length: ['2'] 178 content-length: ['1350']
183 status: {code: 200, message: OK} 179 status: {code: 200, message: OK}
184version: 1 180version: 1
Powered by cgit v1.2.3 (git 2.41.0)