aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_report.yaml')
-rw-r--r--tests/cassettes/test_report.yaml64
1 files changed, 32 insertions, 32 deletions
diff --git a/tests/cassettes/test_report.yaml b/tests/cassettes/test_report.yaml
index 68d2b45..014739f 100644
--- a/tests/cassettes/test_report.yaml
+++ b/tests/cassettes/test_report.yaml
@@ -8,18 +8,18 @@ interactions:
8 Connection: [keep-alive] 8 Connection: [keep-alive]
9 Content-Length: ['14'] 9 Content-Length: ['14']
10 Content-Type: [application/x-www-form-urlencoded] 10 Content-Type: [application/x-www-form-urlencoded]
11 User-Agent: [python-requests/2.9.1] 11 User-Agent: [python-requests/2.18.4]
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":"100154008844631744","created_at":"2018-06-05T20:01:34.731Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/100154008844631744","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100154008844631744","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 15 body: {string: '{"id":"100369509306314851","created_at":"2018-07-13T21:26:10.820Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/100369509306314851","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100369509306314851","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
16 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 16 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
17 Lennon","locked":true,"bot":false,"created_at":"2018-06-05T21:58:43.069Z","note":"\u003cp\u003eI 17 Lennon","locked":true,"bot":false,"created_at":"2018-07-13T23:02:25.260Z","note":"\u003cp\u003eI
18 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":1,"statuses_count":16,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 18 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":53,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
19 headers: 19 headers:
20 Cache-Control: ['max-age=0, private, must-revalidate'] 20 Cache-Control: ['max-age=0, private, must-revalidate']
21 Content-Type: [application/json; charset=utf-8] 21 Content-Type: [application/json; charset=utf-8]
22 ETag: [W/"04975c0df1ea21949dd040e2152795e4"] 22 ETag: [W/"b4e616a63313784279109c1423362352"]
23 Referrer-Policy: [strict-origin-when-cross-origin] 23 Referrer-Policy: [strict-origin-when-cross-origin]
24 Transfer-Encoding: [chunked] 24 Transfer-Encoding: [chunked]
25 Vary: ['Accept-Encoding, Origin'] 25 Vary: ['Accept-Encoding, Origin']
@@ -27,10 +27,10 @@ interactions:
27 X-Download-Options: [noopen] 27 X-Download-Options: [noopen]
28 X-Frame-Options: [SAMEORIGIN] 28 X-Frame-Options: [SAMEORIGIN]
29 X-Permitted-Cross-Domain-Policies: [none] 29 X-Permitted-Cross-Domain-Policies: [none]
30 X-Request-Id: [0593b9b0-1d81-413b-96ea-fafba9ba10b9] 30 X-Request-Id: [286ea191-9d93-4316-98b5-8c09f5e08b67]
31 X-Runtime: ['0.180147'] 31 X-Runtime: ['0.137278']
32 X-XSS-Protection: [1; mode=block] 32 X-XSS-Protection: [1; mode=block]
33 content-length: ['1505'] 33 content-length: ['1509']
34 status: {code: 200, message: OK} 34 status: {code: 200, message: OK}
35- request: 35- request:
36 body: null 36 body: null
@@ -39,18 +39,18 @@ interactions:
39 Accept-Encoding: ['gzip, deflate'] 39 Accept-Encoding: ['gzip, deflate']
40 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 40 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
41 Connection: [keep-alive] 41 Connection: [keep-alive]
42 User-Agent: [python-requests/2.9.1] 42 User-Agent: [python-requests/2.18.4]
43 method: GET 43 method: GET
44 uri: http://localhost:3000/api/v1/accounts/verify_credentials 44 uri: http://localhost:3000/api/v1/accounts/verify_credentials
45 response: 45 response:
46 body: {string: '{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 46 body: {string: '{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
47 Lennon","locked":true,"bot":false,"created_at":"2018-06-05T21:58:43.069Z","note":"\u003cp\u003eI 47 Lennon","locked":true,"bot":false,"created_at":"2018-07-13T23:02:25.260Z","note":"\u003cp\u003eI
48 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":1,"statuses_count":16,"source":{"privacy":"public","sensitive":false,"note":"I 48 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":53,"source":{"privacy":"public","sensitive":false,"language":null,"note":"I
49 walk funny","fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]}'} 49 walk funny","fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]}'}
50 headers: 50 headers:
51 Cache-Control: ['max-age=0, private, must-revalidate'] 51 Cache-Control: ['max-age=0, private, must-revalidate']
52 Content-Type: [application/json; charset=utf-8] 52 Content-Type: [application/json; charset=utf-8]
53 ETag: [W/"3a7cf3269c7488ce636d7d69b74888cc"] 53 ETag: [W/"123018aeae3d7187bf251816436c6fe3"]
54 Referrer-Policy: [strict-origin-when-cross-origin] 54 Referrer-Policy: [strict-origin-when-cross-origin]
55 Transfer-Encoding: [chunked] 55 Transfer-Encoding: [chunked]
56 Vary: ['Accept-Encoding, Origin'] 56 Vary: ['Accept-Encoding, Origin']
@@ -58,13 +58,13 @@ interactions:
58 X-Download-Options: [noopen] 58 X-Download-Options: [noopen]
59 X-Frame-Options: [SAMEORIGIN] 59 X-Frame-Options: [SAMEORIGIN]
60 X-Permitted-Cross-Domain-Policies: [none] 60 X-Permitted-Cross-Domain-Policies: [none]
61 X-Request-Id: [de49a73f-b30c-49dd-b695-7fd76fc79f78] 61 X-Request-Id: [1c5e965d-d680-4d45-9e18-f4b6ad04c00b]
62 X-Runtime: ['0.151819'] 62 X-Runtime: ['0.069239']
63 X-XSS-Protection: [1; mode=block] 63 X-XSS-Protection: [1; mode=block]
64 content-length: ['1020'] 64 content-length: ['1040']
65 status: {code: 200, message: OK} 65 status: {code: 200, message: OK}
66- request: 66- request:
67 body: comment=makes+the+bad+post&account_id=1234567890123456&status_ids%5B%5D=100154008844631744 67 body: comment=makes+the+bad+post&account_id=1234567890123456&status_ids%5B%5D=100369509306314851
68 headers: 68 headers:
69 Accept: ['*/*'] 69 Accept: ['*/*']
70 Accept-Encoding: ['gzip, deflate'] 70 Accept-Encoding: ['gzip, deflate']
@@ -72,15 +72,15 @@ interactions:
72 Connection: [keep-alive] 72 Connection: [keep-alive]
73 Content-Length: ['90'] 73 Content-Length: ['90']
74 Content-Type: [application/x-www-form-urlencoded] 74 Content-Type: [application/x-www-form-urlencoded]
75 User-Agent: [python-requests/2.9.1] 75 User-Agent: [python-requests/2.18.4]
76 method: POST 76 method: POST
77 uri: http://localhost:3000/api/v1/reports/ 77 uri: http://localhost:3000/api/v1/reports/
78 response: 78 response:
79 body: {string: '{"id":"1","action_taken":false}'} 79 body: {string: '{"id":"2","action_taken":false}'}
80 headers: 80 headers:
81 Cache-Control: ['max-age=0, private, must-revalidate'] 81 Cache-Control: ['max-age=0, private, must-revalidate']
82 Content-Type: [application/json; charset=utf-8] 82 Content-Type: [application/json; charset=utf-8]
83 ETag: [W/"e38c734f5b6cb6fa9de4ce87227c9697"] 83 ETag: [W/"910d76ad8965d59d2868143eb259f35f"]
84 Referrer-Policy: [strict-origin-when-cross-origin] 84 Referrer-Policy: [strict-origin-when-cross-origin]
85 Transfer-Encoding: [chunked] 85 Transfer-Encoding: [chunked]
86 Vary: ['Accept-Encoding, Origin'] 86 Vary: ['Accept-Encoding, Origin']
@@ -88,8 +88,8 @@ interactions:
88 X-Download-Options: [noopen] 88 X-Download-Options: [noopen]
89 X-Frame-Options: [SAMEORIGIN] 89 X-Frame-Options: [SAMEORIGIN]
90 X-Permitted-Cross-Domain-Policies: [none] 90 X-Permitted-Cross-Domain-Policies: [none]
91 X-Request-Id: [18c8def8-c3c7-4814-8c95-0aaf412d43b0] 91 X-Request-Id: [de034837-5b67-43cf-be43-562afc7123a5]
92 X-Runtime: ['0.173015'] 92 X-Runtime: ['0.083956']
93 X-XSS-Protection: [1; mode=block] 93 X-XSS-Protection: [1; mode=block]
94 content-length: ['31'] 94 content-length: ['31']
95 status: {code: 200, message: OK} 95 status: {code: 200, message: OK}
@@ -100,15 +100,15 @@ interactions:
100 Accept-Encoding: ['gzip, deflate'] 100 Accept-Encoding: ['gzip, deflate']
101 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 101 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
102 Connection: [keep-alive] 102 Connection: [keep-alive]
103 User-Agent: [python-requests/2.9.1] 103 User-Agent: [python-requests/2.18.4]
104 method: GET 104 method: GET
105 uri: http://localhost:3000/api/v1/reports 105 uri: http://localhost:3000/api/v1/reports
106 response: 106 response:
107 body: {string: '[{"id":"1","action_taken":false}]'} 107 body: {string: '[{"id":"1","action_taken":false},{"id":"2","action_taken":false}]'}
108 headers: 108 headers:
109 Cache-Control: ['max-age=0, private, must-revalidate'] 109 Cache-Control: ['max-age=0, private, must-revalidate']
110 Content-Type: [application/json; charset=utf-8] 110 Content-Type: [application/json; charset=utf-8]
111 ETag: [W/"4dcf81e1a955c4d5994366fa5c42d0e4"] 111 ETag: [W/"707b8c51a971ab4ce9216bd43fb1adc1"]
112 Referrer-Policy: [strict-origin-when-cross-origin] 112 Referrer-Policy: [strict-origin-when-cross-origin]
113 Transfer-Encoding: [chunked] 113 Transfer-Encoding: [chunked]
114 Vary: ['Accept-Encoding, Origin'] 114 Vary: ['Accept-Encoding, Origin']
@@ -116,10 +116,10 @@ interactions:
116 X-Download-Options: [noopen] 116 X-Download-Options: [noopen]
117 X-Frame-Options: [SAMEORIGIN] 117 X-Frame-Options: [SAMEORIGIN]
118 X-Permitted-Cross-Domain-Policies: [none] 118 X-Permitted-Cross-Domain-Policies: [none]
119 X-Request-Id: [47197939-8f8a-4554-ac85-d2691a1afd7d] 119 X-Request-Id: [d69f1c41-62e2-4923-ae53-0a0196c4205d]
120 X-Runtime: ['0.064369'] 120 X-Runtime: ['0.066534']
121 X-XSS-Protection: [1; mode=block] 121 X-XSS-Protection: [1; mode=block]
122 content-length: ['33'] 122 content-length: ['65']
123 status: {code: 200, message: OK} 123 status: {code: 200, message: OK}
124- request: 124- request:
125 body: null 125 body: null
@@ -129,15 +129,15 @@ interactions:
129 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 129 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
130 Connection: [keep-alive] 130 Connection: [keep-alive]
131 Content-Length: ['0'] 131 Content-Length: ['0']
132 User-Agent: [python-requests/2.9.1] 132 User-Agent: [python-requests/2.18.4]
133 method: DELETE 133 method: DELETE
134 uri: http://localhost:3000/api/v1/statuses/100154008844631744 134 uri: http://localhost:3000/api/v1/statuses/100369509306314851
135 response: 135 response:
136 body: {string: '{}'} 136 body: {string: '{}'}
137 headers: 137 headers:
138 Cache-Control: ['max-age=0, private, must-revalidate'] 138 Cache-Control: ['max-age=0, private, must-revalidate']
139 Content-Type: [application/json; charset=utf-8] 139 Content-Type: [application/json; charset=utf-8]
140 ETag: [W/"1dde9ec83c282a707c30a3c15019da0e"] 140 ETag: [W/"e0b5c01f0eaad3d893c8622d07af57ba"]
141 Referrer-Policy: [strict-origin-when-cross-origin] 141 Referrer-Policy: [strict-origin-when-cross-origin]
142 Transfer-Encoding: [chunked] 142 Transfer-Encoding: [chunked]
143 Vary: ['Accept-Encoding, Origin'] 143 Vary: ['Accept-Encoding, Origin']
@@ -145,8 +145,8 @@ interactions:
145 X-Download-Options: [noopen] 145 X-Download-Options: [noopen]
146 X-Frame-Options: [SAMEORIGIN] 146 X-Frame-Options: [SAMEORIGIN]
147 X-Permitted-Cross-Domain-Policies: [none] 147 X-Permitted-Cross-Domain-Policies: [none]
148 X-Request-Id: [eb30c0c0-1c07-43e6-bba8-7490aa221304] 148 X-Request-Id: [a9112de9-eed4-43df-b6a0-d73a66fa3616]
149 X-Runtime: ['0.069527'] 149 X-Runtime: ['0.061875']
150 X-XSS-Protection: [1; mode=block] 150 X-XSS-Protection: [1; mode=block]
151 content-length: ['2'] 151 content-length: ['2']
152 status: {code: 200, message: OK} 152 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)