diff options
author | Lorenz Diener <[email protected]> | 2019-10-11 23:59:24 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-10-11 23:59:24 +0200 |
commit | 437f68c29a18303de3c75962021bbe030b2cf85c (patch) | |
tree | 83b7ba151a3e52163fd7048f82672394bcbb3865 /tests/cassettes/test_status.yaml | |
parent | 2c2f55fd63e4096580f4d56279c261cedb1be1a9 (diff) | |
download | mastodon.py-437f68c29a18303de3c75962021bbe030b2cf85c.tar.gz |
Update tests for 3.0.1 and fix regressions
Diffstat (limited to 'tests/cassettes/test_status.yaml')
-rw-r--r-- | tests/cassettes/test_status.yaml | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/tests/cassettes/test_status.yaml b/tests/cassettes/test_status.yaml index f7b6701..f32ff9e 100644 --- a/tests/cassettes/test_status.yaml +++ b/tests/cassettes/test_status.yaml | |||
@@ -12,8 +12,8 @@ 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":"102317292556760997","created_at":"2019-06-22T21:13:04.575Z","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/102317292556760997","url":"http://localhost/@mastodonpy_test/102317292556760997","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 | 15 | body: {string: '{"id":"102945951796171874","created_at":"2019-10-11T21:49:23.302Z","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/102945951796171874","url":"http://localhost/@mastodonpy_test/102945951796171874","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":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","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":null}'} | 16 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","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":3,"last_status_at":"2019-10-11T21:49:23.310Z","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} |
17 | headers: | 17 | headers: |
18 | Cache-Control: ['no-cache, no-store'] | 18 | Cache-Control: ['no-cache, no-store'] |
19 | Content-Type: [application/json; charset=utf-8] | 19 | Content-Type: [application/json; charset=utf-8] |
@@ -24,10 +24,10 @@ interactions: | |||
24 | X-Download-Options: [noopen] | 24 | X-Download-Options: [noopen] |
25 | X-Frame-Options: [SAMEORIGIN] | 25 | X-Frame-Options: [SAMEORIGIN] |
26 | X-Permitted-Cross-Domain-Policies: [none] | 26 | X-Permitted-Cross-Domain-Policies: [none] |
27 | X-Request-Id: [6711ef7c-81ad-489c-a26e-c3bdcdc23f41] | 27 | X-Request-Id: [a8bdde0d-501f-453a-b18e-edaf7f2ca524] |
28 | X-Runtime: ['0.139874'] | 28 | X-Runtime: ['0.143778'] |
29 | X-XSS-Protection: [1; mode=block] | 29 | X-XSS-Protection: [1; mode=block] |
30 | content-length: ['1236'] | 30 | content-length: ['1280'] |
31 | status: {code: 200, message: OK} | 31 | status: {code: 200, message: OK} |
32 | - request: | 32 | - request: |
33 | body: null | 33 | body: null |
@@ -38,10 +38,10 @@ interactions: | |||
38 | Connection: [keep-alive] | 38 | Connection: [keep-alive] |
39 | User-Agent: [python-requests/2.18.4] | 39 | User-Agent: [python-requests/2.18.4] |
40 | method: GET | 40 | method: GET |
41 | uri: http://localhost:3000/api/v1/statuses/102317292556760997 | 41 | uri: http://localhost:3000/api/v1/statuses/102945951796171874 |
42 | response: | 42 | response: |
43 | body: {string: '{"id":"102317292556760997","created_at":"2019-06-22T21:13:04.575Z","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/102317292556760997","url":"http://localhost/@mastodonpy_test/102317292556760997","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 | 43 | body: {string: '{"id":"102945951796171874","created_at":"2019-10-11T21:49:23.302Z","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/102945951796171874","url":"http://localhost/@mastodonpy_test/102945951796171874","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 |
44 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","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":null}'} | 44 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","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":3,"last_status_at":"2019-10-11T21:49:23.310Z","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} |
45 | headers: | 45 | headers: |
46 | Cache-Control: ['no-cache, no-store'] | 46 | Cache-Control: ['no-cache, no-store'] |
47 | Content-Type: [application/json; charset=utf-8] | 47 | Content-Type: [application/json; charset=utf-8] |
@@ -52,10 +52,10 @@ interactions: | |||
52 | X-Download-Options: [noopen] | 52 | X-Download-Options: [noopen] |
53 | X-Frame-Options: [SAMEORIGIN] | 53 | X-Frame-Options: [SAMEORIGIN] |
54 | X-Permitted-Cross-Domain-Policies: [none] | 54 | X-Permitted-Cross-Domain-Policies: [none] |
55 | X-Request-Id: [430a6f89-a1b9-4370-be94-959d9abf35e8] | 55 | X-Request-Id: [366de387-7e9f-42e6-a528-d91080754810] |
56 | X-Runtime: ['0.086821'] | 56 | X-Runtime: ['0.122988'] |
57 | X-XSS-Protection: [1; mode=block] | 57 | X-XSS-Protection: [1; mode=block] |
58 | content-length: ['1236'] | 58 | content-length: ['1280'] |
59 | status: {code: 200, message: OK} | 59 | status: {code: 200, message: OK} |
60 | - request: | 60 | - request: |
61 | body: null | 61 | body: null |
@@ -67,10 +67,10 @@ interactions: | |||
67 | Content-Length: ['0'] | 67 | Content-Length: ['0'] |
68 | User-Agent: [python-requests/2.18.4] | 68 | User-Agent: [python-requests/2.18.4] |
69 | method: DELETE | 69 | method: DELETE |
70 | uri: http://localhost:3000/api/v1/statuses/102317292556760997 | 70 | uri: http://localhost:3000/api/v1/statuses/102945951796171874 |
71 | response: | 71 | response: |
72 | body: {string: '{"id":"102317292556760997","created_at":"2019-06-22T21:13:04.575Z","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/102317292556760997","url":"http://localhost/@mastodonpy_test/102317292556760997","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 | 72 | body: {string: '{"id":"102945951796171874","created_at":"2019-10-11T21:49:23.302Z","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/102945951796171874","url":"http://localhost/@mastodonpy_test/102945951796171874","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 |
73 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","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":null}'} | 73 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","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":3,"last_status_at":"2019-10-11T21:49:23.310Z","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} |
74 | headers: | 74 | headers: |
75 | Cache-Control: ['no-cache, no-store'] | 75 | Cache-Control: ['no-cache, no-store'] |
76 | Content-Type: [application/json; charset=utf-8] | 76 | Content-Type: [application/json; charset=utf-8] |
@@ -81,9 +81,9 @@ interactions: | |||
81 | X-Download-Options: [noopen] | 81 | X-Download-Options: [noopen] |
82 | X-Frame-Options: [SAMEORIGIN] | 82 | X-Frame-Options: [SAMEORIGIN] |
83 | X-Permitted-Cross-Domain-Policies: [none] | 83 | X-Permitted-Cross-Domain-Policies: [none] |
84 | X-Request-Id: [fdc52468-81b6-4fe2-97ff-8f0ceb3130c4] | 84 | X-Request-Id: [c4e8225e-bfea-4676-9697-a958ae9d0334] |
85 | X-Runtime: ['0.087903'] | 85 | X-Runtime: ['0.104909'] |
86 | X-XSS-Protection: [1; mode=block] | 86 | X-XSS-Protection: [1; mode=block] |
87 | content-length: ['1206'] | 87 | content-length: ['1250'] |
88 | status: {code: 200, message: OK} | 88 | status: {code: 200, message: OK} |
89 | version: 1 | 89 | version: 1 |