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_reply.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_reply.yaml')
-rw-r--r-- | tests/cassettes/test_status_reply.yaml | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/tests/cassettes/test_status_reply.yaml b/tests/cassettes/test_status_reply.yaml index 83e5204..7d983ea 100644 --- a/tests/cassettes/test_status_reply.yaml +++ b/tests/cassettes/test_status_reply.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":"102317292583368525","created_at":"2019-06-22T21:13:04.989Z","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/102317292583368525","url":"http://localhost/@mastodonpy_test/102317292583368525","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":"102945951824755713","created_at":"2019-10-11T21:49:23.738Z","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/102945951824755713","url":"http://localhost/@mastodonpy_test/102945951824755713","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.745Z","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: [f39a6da2-bc56-469d-b6fd-1a0d81fe8f62] | 27 | X-Request-Id: [aba11bf1-e907-44a4-9874-9f35f66f3dc8] |
28 | X-Runtime: ['0.186361'] | 28 | X-Runtime: ['0.138089'] |
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 |
@@ -40,7 +40,7 @@ interactions: | |||
40 | method: GET | 40 | method: GET |
41 | uri: http://localhost:3000/api/v1/accounts/verify_credentials | 41 | uri: http://localhost:3000/api/v1/accounts/verify_credentials |
42 | response: | 42 | response: |
43 | body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","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":2,"following_count":1,"statuses_count":17,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'} | 43 | body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","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":2,"following_count":1,"statuses_count":28,"last_status_at":"2019-10-11T21:49:19.922Z","source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[]}'} |
44 | headers: | 44 | headers: |
45 | Cache-Control: ['no-cache, no-store'] | 45 | Cache-Control: ['no-cache, no-store'] |
46 | Content-Type: [application/json; charset=utf-8] | 46 | Content-Type: [application/json; charset=utf-8] |
@@ -51,13 +51,13 @@ interactions: | |||
51 | X-Download-Options: [noopen] | 51 | X-Download-Options: [noopen] |
52 | X-Frame-Options: [SAMEORIGIN] | 52 | X-Frame-Options: [SAMEORIGIN] |
53 | X-Permitted-Cross-Domain-Policies: [none] | 53 | X-Permitted-Cross-Domain-Policies: [none] |
54 | X-Request-Id: [93070f2d-b64c-4084-bf26-33c0b89adea4] | 54 | X-Request-Id: [6292aeb2-8b0f-4d17-9927-a5db1f9c73d1] |
55 | X-Runtime: ['0.050758'] | 55 | X-Runtime: ['0.062683'] |
56 | X-XSS-Protection: [1; mode=block] | 56 | X-XSS-Protection: [1; mode=block] |
57 | content-length: ['610'] | 57 | content-length: ['680'] |
58 | status: {code: 200, message: OK} | 58 | status: {code: 200, message: OK} |
59 | - request: | 59 | - request: |
60 | body: spoiler_text=&visibility=public&in_reply_to_id=102317292583368525&status=%40mastodonpy_test+same%21 | 60 | body: spoiler_text=&visibility=public&in_reply_to_id=102945951824755713&status=%40mastodonpy_test+same%21 |
61 | headers: | 61 | headers: |
62 | Accept: ['*/*'] | 62 | Accept: ['*/*'] |
63 | Accept-Encoding: ['gzip, deflate'] | 63 | Accept-Encoding: ['gzip, deflate'] |
@@ -69,11 +69,11 @@ interactions: | |||
69 | method: POST | 69 | method: POST |
70 | uri: http://localhost:3000/api/v1/statuses | 70 | uri: http://localhost:3000/api/v1/statuses |
71 | response: | 71 | response: |
72 | body: {string: '{"id":"102317292598128164","created_at":"2019-06-22T21:13:05.210Z","in_reply_to_id":"102317292583368525","in_reply_to_account_id":"1234567890123456","sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/102317292598128164","url":"http://localhost/@admin/102317292598128164","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003e\u003cspan | 72 | body: {string: '{"id":"102945951838879780","created_at":"2019-10-11T21:49:23.960Z","in_reply_to_id":"102945951824755713","in_reply_to_account_id":"1234567890123456","sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/102945951838879780","url":"http://localhost/@admin/102945951838879780","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003e\u003cspan |
73 | class=\"h-card\"\u003e\u003ca href=\"http://localhost/@mastodonpy_test\" class=\"u-url | 73 | class=\"h-card\"\u003e\u003ca href=\"http://localhost/@mastodonpy_test\" class=\"u-url |
74 | mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | 74 | mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e |
75 | same!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py test | 75 | same!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py test |
76 | suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","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":2,"following_count":1,"statuses_count":18,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'} | 76 | suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","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":2,"following_count":1,"statuses_count":29,"last_status_at":"2019-10-11T21:49:23.975Z","emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'} |
77 | headers: | 77 | headers: |
78 | Cache-Control: ['no-cache, no-store'] | 78 | Cache-Control: ['no-cache, no-store'] |
79 | Content-Type: [application/json; charset=utf-8] | 79 | Content-Type: [application/json; charset=utf-8] |
@@ -84,10 +84,10 @@ interactions: | |||
84 | X-Download-Options: [noopen] | 84 | X-Download-Options: [noopen] |
85 | X-Frame-Options: [SAMEORIGIN] | 85 | X-Frame-Options: [SAMEORIGIN] |
86 | X-Permitted-Cross-Domain-Policies: [none] | 86 | X-Permitted-Cross-Domain-Policies: [none] |
87 | X-Request-Id: [b2d6efda-8df7-4975-bc15-f14898faa0c7] | 87 | X-Request-Id: [873494cb-196b-4235-9cff-e21d6e45cc43] |
88 | X-Runtime: ['0.136837'] | 88 | X-Runtime: ['0.204737'] |
89 | X-XSS-Protection: [1; mode=block] | 89 | X-XSS-Protection: [1; mode=block] |
90 | content-length: ['1517'] | 90 | content-length: ['1561'] |
91 | status: {code: 200, message: OK} | 91 | status: {code: 200, message: OK} |
92 | - request: | 92 | - request: |
93 | body: null | 93 | body: null |
@@ -99,10 +99,10 @@ interactions: | |||
99 | Content-Length: ['0'] | 99 | Content-Length: ['0'] |
100 | User-Agent: [python-requests/2.18.4] | 100 | User-Agent: [python-requests/2.18.4] |
101 | method: DELETE | 101 | method: DELETE |
102 | uri: http://localhost:3000/api/v1/statuses/102317292598128164 | 102 | uri: http://localhost:3000/api/v1/statuses/102945951838879780 |
103 | response: | 103 | response: |
104 | body: {string: '{"id":"102317292598128164","created_at":"2019-06-22T21:13:05.210Z","in_reply_to_id":"102317292583368525","in_reply_to_account_id":"1234567890123456","sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/102317292598128164","url":"http://localhost/@admin/102317292598128164","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"text":"@mastodonpy_test | 104 | body: {string: '{"id":"102945951838879780","created_at":"2019-10-11T21:49:23.960Z","in_reply_to_id":"102945951824755713","in_reply_to_account_id":"1234567890123456","sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/102945951838879780","url":"http://localhost/@admin/102945951838879780","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"text":"@mastodonpy_test |
105 | same!","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","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":2,"following_count":1,"statuses_count":18,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'} | 105 | same!","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","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":2,"following_count":1,"statuses_count":29,"last_status_at":"2019-10-11T21:49:23.975Z","emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'} |
106 | headers: | 106 | headers: |
107 | Cache-Control: ['no-cache, no-store'] | 107 | Cache-Control: ['no-cache, no-store'] |
108 | Content-Type: [application/json; charset=utf-8] | 108 | Content-Type: [application/json; charset=utf-8] |
@@ -113,10 +113,10 @@ interactions: | |||
113 | X-Download-Options: [noopen] | 113 | X-Download-Options: [noopen] |
114 | X-Frame-Options: [SAMEORIGIN] | 114 | X-Frame-Options: [SAMEORIGIN] |
115 | X-Permitted-Cross-Domain-Policies: [none] | 115 | X-Permitted-Cross-Domain-Policies: [none] |
116 | X-Request-Id: [c3b3b1f5-12f9-427d-836c-ad218153204c] | 116 | X-Request-Id: [bfb4d90f-2dab-4861-8b32-d8ec90680efb] |
117 | X-Runtime: ['0.169179'] | 117 | X-Runtime: ['0.118654'] |
118 | X-XSS-Protection: [1; mode=block] | 118 | X-XSS-Protection: [1; mode=block] |
119 | content-length: ['1310'] | 119 | content-length: ['1354'] |
120 | status: {code: 200, message: OK} | 120 | status: {code: 200, message: OK} |
121 | - request: | 121 | - request: |
122 | body: null | 122 | body: null |
@@ -128,10 +128,10 @@ interactions: | |||
128 | Content-Length: ['0'] | 128 | Content-Length: ['0'] |
129 | User-Agent: [python-requests/2.18.4] | 129 | User-Agent: [python-requests/2.18.4] |
130 | method: DELETE | 130 | method: DELETE |
131 | uri: http://localhost:3000/api/v1/statuses/102317292583368525 | 131 | uri: http://localhost:3000/api/v1/statuses/102945951824755713 |
132 | response: | 132 | response: |
133 | body: {string: '{"id":"102317292583368525","created_at":"2019-06-22T21:13:04.989Z","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/102317292583368525","url":"http://localhost/@mastodonpy_test/102317292583368525","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 | 133 | body: {string: '{"id":"102945951824755713","created_at":"2019-10-11T21:49:23.738Z","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/102945951824755713","url":"http://localhost/@mastodonpy_test/102945951824755713","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 |
134 | 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}'} | 134 | 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.745Z","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} |
135 | headers: | 135 | headers: |
136 | Cache-Control: ['no-cache, no-store'] | 136 | Cache-Control: ['no-cache, no-store'] |
137 | Content-Type: [application/json; charset=utf-8] | 137 | Content-Type: [application/json; charset=utf-8] |
@@ -142,9 +142,9 @@ interactions: | |||
142 | X-Download-Options: [noopen] | 142 | X-Download-Options: [noopen] |
143 | X-Frame-Options: [SAMEORIGIN] | 143 | X-Frame-Options: [SAMEORIGIN] |
144 | X-Permitted-Cross-Domain-Policies: [none] | 144 | X-Permitted-Cross-Domain-Policies: [none] |
145 | X-Request-Id: [b25c1260-3d3b-45b3-acf4-f5c22662d15a] | 145 | X-Request-Id: [9b92d182-90a8-4e22-9d93-5ec86d7bdca6] |
146 | X-Runtime: ['0.130721'] | 146 | X-Runtime: ['0.115696'] |
147 | X-XSS-Protection: [1; mode=block] | 147 | X-XSS-Protection: [1; mode=block] |
148 | content-length: ['1206'] | 148 | content-length: ['1250'] |
149 | status: {code: 200, message: OK} | 149 | status: {code: 200, message: OK} |
150 | version: 1 | 150 | version: 1 |