diff options
author | Lorenz Diener <[email protected]> | 2019-04-27 21:04:06 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-04-27 21:04:06 +0200 |
commit | e3936649745a627fa2c31fc7b8602793b7d6027b (patch) | |
tree | c478eb7f45acbfe63faec6151a23658dfc0da3e6 /tests/cassettes/test_report.yaml | |
parent | c1418e9f3f37319d5142e0fa058e2eab434c4e5d (diff) | |
download | mastodon.py-e3936649745a627fa2c31fc7b8602793b7d6027b.tar.gz |
Test fixups and small 2.8 fixes
Pagination backwards is broken presently.
Diffstat (limited to 'tests/cassettes/test_report.yaml')
-rw-r--r-- | tests/cassettes/test_report.yaml | 72 |
1 files changed, 22 insertions, 50 deletions
diff --git a/tests/cassettes/test_report.yaml b/tests/cassettes/test_report.yaml index 040950f..e07396a 100644 --- a/tests/cassettes/test_report.yaml +++ b/tests/cassettes/test_report.yaml | |||
@@ -12,14 +12,14 @@ 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":"100465731358243271","created_at":"2018-07-30T21:16:42.817Z","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/100465731358243271","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100465731358243271","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 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 |
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-07-13T23:02:25.260Z","note":"\u003cp\u003eI | 17 | Lennon","locked":true,"bot":false,"created_at":"2019-04-27T20:03:12.393Z","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":112,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | 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}'} |
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/"5c9add4a862ff468a04c10db6cfac728"] | 22 | ETag: [W/"939686c63c13d25dd228cfe9ee5877ef"] |
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: [fb31e9db-f68c-4cc2-8389-3e0b5490bc68] | 30 | X-Request-Id: [f9805fc4-6f54-4aad-973e-5658ef5c4fcb] |
31 | X-Runtime: ['0.186804'] | 31 | X-Runtime: ['0.125429'] |
32 | X-XSS-Protection: [1; mode=block] | 32 | X-XSS-Protection: [1; mode=block] |
33 | content-length: ['1510'] | 33 | content-length: ['1598'] |
34 | status: {code: 200, message: OK} | 34 | status: {code: 200, message: OK} |
35 | - request: | 35 | - request: |
36 | body: null | 36 | body: null |
@@ -44,13 +44,13 @@ interactions: | |||
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-07-13T23:02:25.260Z","note":"\u003cp\u003eI | 47 | Lennon","locked":true,"bot":false,"created_at":"2019-04-27T20:03:12.393Z","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_.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":112,"source":{"privacy":"public","sensitive":false,"language":null,"note":"I | 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 |
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.","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: | 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/"a27b02e96fd5a4c6a1ac5a829d81ef72"] | 53 | ETag: [W/"dc0b0d6abf42097a6dcc282e3148e256"] |
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: [25426de2-d633-49b1-b54e-5f757a422bb5] | 61 | X-Request-Id: [ce974d1d-4f1c-41d2-b40a-b17d540ae3e5] |
62 | X-Runtime: ['0.029904'] | 62 | X-Runtime: ['0.065290'] |
63 | X-XSS-Protection: [1; mode=block] | 63 | X-XSS-Protection: [1; mode=block] |
64 | content-length: ['1041'] | 64 | content-length: ['1135'] |
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=100465731358243271 | 67 | body: comment=makes+the+bad+post&account_id=1234567890123456&status_ids%5B%5D=101999516759302325 |
68 | headers: | 68 | headers: |
69 | Accept: ['*/*'] | 69 | Accept: ['*/*'] |
70 | Accept-Encoding: ['gzip, deflate'] | 70 | Accept-Encoding: ['gzip, deflate'] |
@@ -80,7 +80,7 @@ interactions: | |||
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/"f45c35c0fbdbe750ed4343820a0594bd"] | 83 | ETag: [W/"8e361134f5e46c52643d79ad4be8b2a0"] |
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: [b3b2756c-3821-4646-8e15-f9ad95844d1f] | 91 | X-Request-Id: [1ef58f57-6d40-4b21-bac2-ef20bf3bf43e] |
92 | X-Runtime: ['0.094842'] | 92 | X-Runtime: ['0.055404'] |
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,44 +100,16 @@ 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.18.4] | ||
104 | method: GET | ||
105 | uri: http://localhost:3000/api/v1/reports | ||
106 | response: | ||
107 | body: {string: '[{"id":"1","action_taken":false},{"id":"2","action_taken":false},{"id":"3","action_taken":false}]'} | ||
108 | headers: | ||
109 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
110 | Content-Type: [application/json; charset=utf-8] | ||
111 | ETag: [W/"23bd5b3a971985d3648c5cca2ad67e25"] | ||
112 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
113 | Transfer-Encoding: [chunked] | ||
114 | Vary: ['Accept-Encoding, Origin'] | ||
115 | X-Content-Type-Options: [nosniff] | ||
116 | X-Download-Options: [noopen] | ||
117 | X-Frame-Options: [SAMEORIGIN] | ||
118 | X-Permitted-Cross-Domain-Policies: [none] | ||
119 | X-Request-Id: [bba8319a-cf18-4a4d-b36f-f28d1fbb482b] | ||
120 | X-Runtime: ['0.064264'] | ||
121 | X-XSS-Protection: [1; mode=block] | ||
122 | content-length: ['97'] | ||
123 | status: {code: 200, message: OK} | ||
124 | - request: | ||
125 | body: null | ||
126 | headers: | ||
127 | Accept: ['*/*'] | ||
128 | Accept-Encoding: ['gzip, deflate'] | ||
129 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
130 | Connection: [keep-alive] | ||
131 | Content-Length: ['0'] | 103 | Content-Length: ['0'] |
132 | User-Agent: [python-requests/2.18.4] | 104 | User-Agent: [python-requests/2.18.4] |
133 | method: DELETE | 105 | method: DELETE |
134 | uri: http://localhost:3000/api/v1/statuses/100465731358243271 | 106 | uri: http://localhost:3000/api/v1/statuses/101999516759302325 |
135 | response: | 107 | response: |
136 | body: {string: '{}'} | 108 | body: {string: '{}'} |
137 | headers: | 109 | headers: |
138 | Cache-Control: ['max-age=0, private, must-revalidate'] | 110 | Cache-Control: ['max-age=0, private, must-revalidate'] |
139 | Content-Type: [application/json; charset=utf-8] | 111 | Content-Type: [application/json; charset=utf-8] |
140 | ETag: [W/"c312fd34f5c9cc8984e35d869b84713f"] | 112 | ETag: [W/"3984996bab8ee0ed3859819e7e795ba4"] |
141 | Referrer-Policy: [strict-origin-when-cross-origin] | 113 | Referrer-Policy: [strict-origin-when-cross-origin] |
142 | Transfer-Encoding: [chunked] | 114 | Transfer-Encoding: [chunked] |
143 | Vary: ['Accept-Encoding, Origin'] | 115 | Vary: ['Accept-Encoding, Origin'] |
@@ -145,8 +117,8 @@ interactions: | |||
145 | X-Download-Options: [noopen] | 117 | X-Download-Options: [noopen] |
146 | X-Frame-Options: [SAMEORIGIN] | 118 | X-Frame-Options: [SAMEORIGIN] |
147 | X-Permitted-Cross-Domain-Policies: [none] | 119 | X-Permitted-Cross-Domain-Policies: [none] |
148 | X-Request-Id: [6bb95a8b-ae15-4edd-997d-614b763e5059] | 120 | X-Request-Id: [73e0ffba-f782-4f15-8f30-40010266f0ba] |
149 | X-Runtime: ['0.087904'] | 121 | X-Runtime: ['0.024496'] |
150 | X-XSS-Protection: [1; mode=block] | 122 | X-XSS-Protection: [1; mode=block] |
151 | content-length: ['2'] | 123 | content-length: ['2'] |
152 | status: {code: 200, message: OK} | 124 | status: {code: 200, message: OK} |