aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_report.yaml')
-rw-r--r--tests/cassettes/test_report.yaml138
1 files changed, 138 insertions, 0 deletions
diff --git a/tests/cassettes/test_report.yaml b/tests/cassettes/test_report.yaml
new file mode 100644
index 0000000..1d479ad
--- /dev/null
+++ b/tests/cassettes/test_report.yaml
@@ -0,0 +1,138 @@
1interactions:
2- request:
3 body: status=Toot%21
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
8 Connection: [keep-alive]
9 Content-Length: ['14']
10 Content-Type: [application/x-www-form-urlencoded]
11 User-Agent: [python-requests/2.9.1]
12 method: POST
13 uri: http://localhost:3000/api/v1/statuses
14 response:
15 body: {string: '{"id":"99979651434402465","created_at":"2018-05-06T01:00:11.798Z","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/99979651434402465","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979651434402465","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
17 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","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_.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":129},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
19 headers:
20 Cache-Control: ['max-age=0, private, must-revalidate']
21 Content-Type: [application/json; charset=utf-8]
22 ETag: [W/"a333616218c1aa87d78f3ba4be326c38"]
23 Transfer-Encoding: [chunked]
24 Vary: ['Accept-Encoding, Origin']
25 X-Content-Type-Options: [nosniff]
26 X-Frame-Options: [SAMEORIGIN]
27 X-Request-Id: [2c2bc656-8659-414a-bbf2-9b7a4de1a2ac]
28 X-Runtime: ['0.232866']
29 X-XSS-Protection: [1; mode=block]
30 content-length: ['1402']
31 status: {code: 200, message: OK}
32- request:
33 body: null
34 headers:
35 Accept: ['*/*']
36 Accept-Encoding: ['gzip, deflate']
37 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
38 Connection: [keep-alive]
39 User-Agent: [python-requests/2.9.1]
40 method: GET
41 uri: http://localhost:3000/api/v1/accounts/verify_credentials
42 response:
43 body: {string: '{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
44 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
45 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":129,"source":{"privacy":"public","sensitive":false,"note":"I
46 walk funny"}}'}
47 headers:
48 Cache-Control: ['max-age=0, private, must-revalidate']
49 Content-Type: [application/json; charset=utf-8]
50 ETag: [W/"229545a3713c8eba4e2f283dc649830e"]
51 Transfer-Encoding: [chunked]
52 Vary: ['Accept-Encoding, Origin']
53 X-Content-Type-Options: [nosniff]
54 X-Frame-Options: [SAMEORIGIN]
55 X-Request-Id: [6ff34ed1-22c9-41e9-8fe1-ba6f59ac681f]
56 X-Runtime: ['0.063157']
57 X-XSS-Protection: [1; mode=block]
58 content-length: ['839']
59 status: {code: 200, message: OK}
60- request:
61 body: account_id=1234567890123456&comment=makes+the+bad+post&status_ids%5B%5D=99979651434402465
62 headers:
63 Accept: ['*/*']
64 Accept-Encoding: ['gzip, deflate']
65 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
66 Connection: [keep-alive]
67 Content-Length: ['89']
68 Content-Type: [application/x-www-form-urlencoded]
69 User-Agent: [python-requests/2.9.1]
70 method: POST
71 uri: http://localhost:3000/api/v1/reports/
72 response:
73 body: {string: '{"id":"4","action_taken":false}'}
74 headers:
75 Cache-Control: ['max-age=0, private, must-revalidate']
76 Content-Type: [application/json; charset=utf-8]
77 ETag: [W/"0b4d4cc77c3f0b6f52f7dbd3f095a453"]
78 Transfer-Encoding: [chunked]
79 Vary: ['Accept-Encoding, Origin']
80 X-Content-Type-Options: [nosniff]
81 X-Frame-Options: [SAMEORIGIN]
82 X-Request-Id: [cd1bd0e9-3e1e-4069-85c1-e6fb2594a920]
83 X-Runtime: ['0.075600']
84 X-XSS-Protection: [1; mode=block]
85 content-length: ['31']
86 status: {code: 200, message: OK}
87- request:
88 body: null
89 headers:
90 Accept: ['*/*']
91 Accept-Encoding: ['gzip, deflate']
92 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
93 Connection: [keep-alive]
94 User-Agent: [python-requests/2.9.1]
95 method: GET
96 uri: http://localhost:3000/api/v1/reports
97 response:
98 body: {string: '[{"id":"1","action_taken":false},{"id":"2","action_taken":false},{"id":"3","action_taken":false},{"id":"4","action_taken":false}]'}
99 headers:
100 Cache-Control: ['max-age=0, private, must-revalidate']
101 Content-Type: [application/json; charset=utf-8]
102 ETag: [W/"da6ce2cf2cdd22d7f9a1c3d3d3805141"]
103 Transfer-Encoding: [chunked]
104 Vary: ['Accept-Encoding, Origin']
105 X-Content-Type-Options: [nosniff]
106 X-Frame-Options: [SAMEORIGIN]
107 X-Request-Id: [30e530f5-96b1-4efe-9212-ce2002db0d91]
108 X-Runtime: ['0.057671']
109 X-XSS-Protection: [1; mode=block]
110 content-length: ['129']
111 status: {code: 200, message: OK}
112- request:
113 body: null
114 headers:
115 Accept: ['*/*']
116 Accept-Encoding: ['gzip, deflate']
117 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
118 Connection: [keep-alive]
119 Content-Length: ['0']
120 User-Agent: [python-requests/2.9.1]
121 method: DELETE
122 uri: http://localhost:3000/api/v1/statuses/99979651434402465
123 response:
124 body: {string: '{}'}
125 headers:
126 Cache-Control: ['max-age=0, private, must-revalidate']
127 Content-Type: [application/json; charset=utf-8]
128 ETag: [W/"7a878b5976100524af8d59d1beb21fc0"]
129 Transfer-Encoding: [chunked]
130 Vary: ['Accept-Encoding, Origin']
131 X-Content-Type-Options: [nosniff]
132 X-Frame-Options: [SAMEORIGIN]
133 X-Request-Id: [771d9f48-150c-4a65-84cd-f7f692167cdc]
134 X-Runtime: ['0.060494']
135 X-XSS-Protection: [1; mode=block]
136 content-length: ['2']
137 status: {code: 200, message: OK}
138version: 1
Powered by cgit v1.2.3 (git 2.41.0)