diff options
Diffstat (limited to 'tests/cassettes/test_report.yaml')
-rw-r--r-- | tests/cassettes/test_report.yaml | 55 |
1 files changed, 27 insertions, 28 deletions
diff --git a/tests/cassettes/test_report.yaml b/tests/cassettes/test_report.yaml index e07396a..c360162 100644 --- a/tests/cassettes/test_report.yaml +++ b/tests/cassettes/test_report.yaml | |||
@@ -12,14 +12,13 @@ interactions: | |||
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":"101999516759302325","created_at":"2019-04-27T18:18:30.713Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/101999516759302325","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost/@mastodonpy_test/101999516759302325","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 15 | body: {string: '{"id":"102315367988549632","created_at":"2019-06-22T13:03:37.995Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/102315367988549632","url":"http://localhost/@mastodonpy_test/102315367988549632","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","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":"2019-04-27T20:03:12.393Z","note":"\u003cp\u003eI | 17 | Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","note":"\u003cp\u003eI |
18 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","followers_count":0,"following_count":0,"statuses_count":62,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} | 18 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","followers_count":0,"following_count":0,"statuses_count":1,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} |
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/"939686c63c13d25dd228cfe9ee5877ef"] | ||
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: [f9805fc4-6f54-4aad-973e-5658ef5c4fcb] | 29 | X-Request-Id: [1eb65c2e-58f3-4cc6-8ae5-fc0e2398a4f0] |
31 | X-Runtime: ['0.125429'] | 30 | X-Runtime: ['0.140193'] |
32 | X-XSS-Protection: [1; mode=block] | 31 | X-XSS-Protection: [1; mode=block] |
33 | content-length: ['1598'] | 32 | content-length: ['1597'] |
34 | status: {code: 200, message: OK} | 33 | status: {code: 200, message: OK} |
35 | - request: | 34 | - request: |
36 | body: null | 35 | body: null |
@@ -44,13 +43,12 @@ interactions: | |||
44 | uri: http://localhost:3000/api/v1/accounts/verify_credentials | 43 | uri: http://localhost:3000/api/v1/accounts/verify_credentials |
45 | response: | 44 | response: |
46 | body: {string: '{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 45 | body: {string: '{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
47 | Lennon","locked":true,"bot":false,"created_at":"2019-04-27T20:03:12.393Z","note":"\u003cp\u003eI | 46 | Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","note":"\u003cp\u003eI |
48 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","followers_count":0,"following_count":0,"statuses_count":62,"source":{"privacy":"public","sensitive":false,"language":null,"note":"I | 47 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","followers_count":0,"following_count":0,"statuses_count":1,"source":{"privacy":"public","sensitive":false,"language":null,"note":"I |
49 | walk funny","fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]}'} | 48 | walk funny","fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]}'} |
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/"dc0b0d6abf42097a6dcc282e3148e256"] | ||
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,13 +56,13 @@ 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: [ce974d1d-4f1c-41d2-b40a-b17d540ae3e5] | 59 | X-Request-Id: [f9fcd645-4998-41e3-a33a-6226a651ae14] |
62 | X-Runtime: ['0.065290'] | 60 | X-Runtime: ['0.073167'] |
63 | X-XSS-Protection: [1; mode=block] | 61 | X-XSS-Protection: [1; mode=block] |
64 | content-length: ['1135'] | 62 | content-length: ['1134'] |
65 | status: {code: 200, message: OK} | 63 | status: {code: 200, message: OK} |
66 | - request: | 64 | - request: |
67 | body: comment=makes+the+bad+post&account_id=1234567890123456&status_ids%5B%5D=101999516759302325 | 65 | body: comment=makes+the+bad+post&account_id=1234567890123456&status_ids%5B%5D=102315367988549632 |
68 | headers: | 66 | headers: |
69 | Accept: ['*/*'] | 67 | Accept: ['*/*'] |
70 | Accept-Encoding: ['gzip, deflate'] | 68 | Accept-Encoding: ['gzip, deflate'] |
@@ -76,11 +74,10 @@ interactions: | |||
76 | method: POST | 74 | method: POST |
77 | uri: http://localhost:3000/api/v1/reports/ | 75 | uri: http://localhost:3000/api/v1/reports/ |
78 | response: | 76 | response: |
79 | body: {string: '{"id":"3","action_taken":false}'} | 77 | body: {string: '{"id":"1","action_taken":false}'} |
80 | headers: | 78 | headers: |
81 | Cache-Control: ['max-age=0, private, must-revalidate'] | 79 | Cache-Control: ['no-cache, no-store'] |
82 | Content-Type: [application/json; charset=utf-8] | 80 | Content-Type: [application/json; charset=utf-8] |
83 | ETag: [W/"8e361134f5e46c52643d79ad4be8b2a0"] | ||
84 | Referrer-Policy: [strict-origin-when-cross-origin] | 81 | Referrer-Policy: [strict-origin-when-cross-origin] |
85 | Transfer-Encoding: [chunked] | 82 | Transfer-Encoding: [chunked] |
86 | Vary: ['Accept-Encoding, Origin'] | 83 | Vary: ['Accept-Encoding, Origin'] |
@@ -88,8 +85,8 @@ interactions: | |||
88 | X-Download-Options: [noopen] | 85 | X-Download-Options: [noopen] |
89 | X-Frame-Options: [SAMEORIGIN] | 86 | X-Frame-Options: [SAMEORIGIN] |
90 | X-Permitted-Cross-Domain-Policies: [none] | 87 | X-Permitted-Cross-Domain-Policies: [none] |
91 | X-Request-Id: [1ef58f57-6d40-4b21-bac2-ef20bf3bf43e] | 88 | X-Request-Id: [8582245c-8bf2-453c-ae3d-3b19d004980f] |
92 | X-Runtime: ['0.055404'] | 89 | X-Runtime: ['0.086724'] |
93 | X-XSS-Protection: [1; mode=block] | 90 | X-XSS-Protection: [1; mode=block] |
94 | content-length: ['31'] | 91 | content-length: ['31'] |
95 | status: {code: 200, message: OK} | 92 | status: {code: 200, message: OK} |
@@ -103,13 +100,15 @@ interactions: | |||
103 | Content-Length: ['0'] | 100 | Content-Length: ['0'] |
104 | User-Agent: [python-requests/2.18.4] | 101 | User-Agent: [python-requests/2.18.4] |
105 | method: DELETE | 102 | method: DELETE |
106 | uri: http://localhost:3000/api/v1/statuses/101999516759302325 | 103 | uri: http://localhost:3000/api/v1/statuses/102315367988549632 |
107 | response: | 104 | response: |
108 | body: {string: '{}'} | 105 | body: {string: '{"id":"102315367988549632","created_at":"2019-06-22T13:03:37.995Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/102315367988549632","url":"http://localhost/@mastodonpy_test/102315367988549632","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"text":"Toot!","reblog":null,"application":{"name":"Mastodon.py |
106 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
107 | Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","note":"\u003cp\u003eI | ||
108 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","followers_count":0,"following_count":0,"statuses_count":1,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} | ||
109 | headers: | 109 | headers: |
110 | Cache-Control: ['max-age=0, private, must-revalidate'] | 110 | Cache-Control: ['no-cache, no-store'] |
111 | Content-Type: [application/json; charset=utf-8] | 111 | Content-Type: [application/json; charset=utf-8] |
112 | ETag: [W/"3984996bab8ee0ed3859819e7e795ba4"] | ||
113 | Referrer-Policy: [strict-origin-when-cross-origin] | 112 | Referrer-Policy: [strict-origin-when-cross-origin] |
114 | Transfer-Encoding: [chunked] | 113 | Transfer-Encoding: [chunked] |
115 | Vary: ['Accept-Encoding, Origin'] | 114 | Vary: ['Accept-Encoding, Origin'] |
@@ -117,9 +116,9 @@ interactions: | |||
117 | X-Download-Options: [noopen] | 116 | X-Download-Options: [noopen] |
118 | X-Frame-Options: [SAMEORIGIN] | 117 | X-Frame-Options: [SAMEORIGIN] |
119 | X-Permitted-Cross-Domain-Policies: [none] | 118 | X-Permitted-Cross-Domain-Policies: [none] |
120 | X-Request-Id: [73e0ffba-f782-4f15-8f30-40010266f0ba] | 119 | X-Request-Id: [852aa280-95fc-4656-a2d5-078ae7835e84] |
121 | X-Runtime: ['0.024496'] | 120 | X-Runtime: ['0.166886'] |
122 | X-XSS-Protection: [1; mode=block] | 121 | X-XSS-Protection: [1; mode=block] |
123 | content-length: ['2'] | 122 | content-length: ['1567'] |
124 | status: {code: 200, message: OK} | 123 | status: {code: 200, message: OK} |
125 | version: 1 | 124 | version: 1 |