aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2019-06-22 15:28:27 +0200
committerLorenz Diener <[email protected]>2019-06-22 15:28:27 +0200
commit052b7f7cd319bd39f5c9db1b0322e9e4445a123e (patch)
treea4f02a2f738a477f2cde36e209bc29ab4df78ebc /tests/cassettes/test_status_reply.yaml
parent1a120f03939d36bc14bda0931819db0ab45908af (diff)
downloadmastodon.py-052b7f7cd319bd39f5c9db1b0322e9e4445a123e.tar.gz
Test fixups pre-2.9.1
Diffstat (limited to 'tests/cassettes/test_status_reply.yaml')
-rw-r--r--tests/cassettes/test_status_reply.yaml69
1 files changed, 34 insertions, 35 deletions
diff --git a/tests/cassettes/test_status_reply.yaml b/tests/cassettes/test_status_reply.yaml
index f268ec4..6a19179 100644
--- a/tests/cassettes/test_status_reply.yaml
+++ b/tests/cassettes/test_status_reply.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":"101999516810790838","created_at":"2019-04-27T18:18:31.505Z","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/101999516810790838","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost/@mastodonpy_test/101999516810790838","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":"102315368082869206","created_at":"2019-06-22T13:03:39.439Z","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/102315368082869206","url":"http://localhost/@mastodonpy_test/102315368082869206","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":63,"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/"b9e9d545500e45c8cde10a4d8b27a74e"]
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: [1762430f-e236-49f3-92f7-0803054c14c4] 29 X-Request-Id: [266c3499-7668-4c84-a800-69e3f545abfb]
31 X-Runtime: ['0.171317'] 30 X-Runtime: ['0.204094']
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
@@ -43,11 +42,10 @@ interactions:
43 method: GET 42 method: GET
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":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-04-27T17:58:11.427Z","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":0,"following_count":0,"statuses_count":4,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'} 45 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":0,"following_count":0,"statuses_count":1,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'}
47 headers: 46 headers:
48 Cache-Control: ['max-age=0, private, must-revalidate'] 47 Cache-Control: ['no-cache, no-store']
49 Content-Type: [application/json; charset=utf-8] 48 Content-Type: [application/json; charset=utf-8]
50 ETag: [W/"06a2d7eb514f2463091718affb56000a"]
51 Referrer-Policy: [strict-origin-when-cross-origin] 49 Referrer-Policy: [strict-origin-when-cross-origin]
52 Transfer-Encoding: [chunked] 50 Transfer-Encoding: [chunked]
53 Vary: ['Accept-Encoding, Origin'] 51 Vary: ['Accept-Encoding, Origin']
@@ -55,13 +53,13 @@ interactions:
55 X-Download-Options: [noopen] 53 X-Download-Options: [noopen]
56 X-Frame-Options: [SAMEORIGIN] 54 X-Frame-Options: [SAMEORIGIN]
57 X-Permitted-Cross-Domain-Policies: [none] 55 X-Permitted-Cross-Domain-Policies: [none]
58 X-Request-Id: [f10f7a0f-3f2a-47f5-97cc-ae827d2e17ab] 56 X-Request-Id: [df88a595-49ac-40c6-ad21-af29ef898a3c]
59 X-Runtime: ['0.067666'] 57 X-Runtime: ['0.050308']
60 X-XSS-Protection: [1; mode=block] 58 X-XSS-Protection: [1; mode=block]
61 content-length: ['609'] 59 content-length: ['609']
62 status: {code: 200, message: OK} 60 status: {code: 200, message: OK}
63- request: 61- request:
64 body: spoiler_text=&visibility=public&in_reply_to_id=101999516810790838&status=%40mastodonpy_test+same%21 62 body: spoiler_text=&visibility=public&in_reply_to_id=102315368082869206&status=%40mastodonpy_test+same%21
65 headers: 63 headers:
66 Accept: ['*/*'] 64 Accept: ['*/*']
67 Accept-Encoding: ['gzip, deflate'] 65 Accept-Encoding: ['gzip, deflate']
@@ -73,15 +71,14 @@ interactions:
73 method: POST 71 method: POST
74 uri: http://localhost:3000/api/v1/statuses 72 uri: http://localhost:3000/api/v1/statuses
75 response: 73 response:
76 body: {string: '{"id":"101999516827762539","created_at":"2019-04-27T18:18:31.759Z","in_reply_to_id":"101999516810790838","in_reply_to_account_id":"1234567890123456","sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/101999516827762539","content":"\u003cp\u003e\u003cspan 74 body: {string: '{"id":"102315368099679936","created_at":"2019-06-22T13:03:39.697Z","in_reply_to_id":"102315368082869206","in_reply_to_account_id":"1234567890123456","sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/102315368099679936","url":"http://localhost/@admin/102315368099679936","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003e\u003cspan
77 class=\"h-card\"\u003e\u003ca href=\"http://localhost/@mastodonpy_test\" class=\"u-url 75 class=\"h-card\"\u003e\u003ca href=\"http://localhost/@mastodonpy_test\" class=\"u-url
78 mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e 76 mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e
79 same!\u003c/p\u003e","url":"http://localhost/@admin/101999516827762539","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 77 same!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py test
80 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-04-27T17:58:11.427Z","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":0,"following_count":0,"statuses_count":5,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'} 78 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":0,"following_count":0,"statuses_count":2,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'}
81 headers: 79 headers:
82 Cache-Control: ['max-age=0, private, must-revalidate'] 80 Cache-Control: ['no-cache, no-store']
83 Content-Type: [application/json; charset=utf-8] 81 Content-Type: [application/json; charset=utf-8]
84 ETag: [W/"36394d8dd4a3c82df7ecf180583c3623"]
85 Referrer-Policy: [strict-origin-when-cross-origin] 82 Referrer-Policy: [strict-origin-when-cross-origin]
86 Transfer-Encoding: [chunked] 83 Transfer-Encoding: [chunked]
87 Vary: ['Accept-Encoding, Origin'] 84 Vary: ['Accept-Encoding, Origin']
@@ -89,8 +86,8 @@ interactions:
89 X-Download-Options: [noopen] 86 X-Download-Options: [noopen]
90 X-Frame-Options: [SAMEORIGIN] 87 X-Frame-Options: [SAMEORIGIN]
91 X-Permitted-Cross-Domain-Policies: [none] 88 X-Permitted-Cross-Domain-Policies: [none]
92 X-Request-Id: [0aa6f574-a2b5-4e1b-979e-500104fe9f5c] 89 X-Request-Id: [f6a5c545-4cc4-4f44-a512-ad7f846fba13]
93 X-Runtime: ['0.212809'] 90 X-Runtime: ['0.294790']
94 X-XSS-Protection: [1; mode=block] 91 X-XSS-Protection: [1; mode=block]
95 content-length: ['1516'] 92 content-length: ['1516']
96 status: {code: 200, message: OK} 93 status: {code: 200, message: OK}
@@ -104,13 +101,13 @@ interactions:
104 Content-Length: ['0'] 101 Content-Length: ['0']
105 User-Agent: [python-requests/2.18.4] 102 User-Agent: [python-requests/2.18.4]
106 method: DELETE 103 method: DELETE
107 uri: http://localhost:3000/api/v1/statuses/101999516827762539 104 uri: http://localhost:3000/api/v1/statuses/102315368099679936
108 response: 105 response:
109 body: {string: '{}'} 106 body: {string: '{"id":"102315368099679936","created_at":"2019-06-22T13:03:39.697Z","in_reply_to_id":"102315368082869206","in_reply_to_account_id":"1234567890123456","sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/admin/statuses/102315368099679936","url":"http://localhost/@admin/102315368099679936","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"text":"@mastodonpy_test
107 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":0,"following_count":0,"statuses_count":2,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'}
110 headers: 108 headers:
111 Cache-Control: ['max-age=0, private, must-revalidate'] 109 Cache-Control: ['no-cache, no-store']
112 Content-Type: [application/json; charset=utf-8] 110 Content-Type: [application/json; charset=utf-8]
113 ETag: [W/"03499d2396def7cd70f82639d27b509f"]
114 Referrer-Policy: [strict-origin-when-cross-origin] 111 Referrer-Policy: [strict-origin-when-cross-origin]
115 Transfer-Encoding: [chunked] 112 Transfer-Encoding: [chunked]
116 Vary: ['Accept-Encoding, Origin'] 113 Vary: ['Accept-Encoding, Origin']
@@ -118,10 +115,10 @@ interactions:
118 X-Download-Options: [noopen] 115 X-Download-Options: [noopen]
119 X-Frame-Options: [SAMEORIGIN] 116 X-Frame-Options: [SAMEORIGIN]
120 X-Permitted-Cross-Domain-Policies: [none] 117 X-Permitted-Cross-Domain-Policies: [none]
121 X-Request-Id: [f40cbb90-05dd-433c-90e3-389f1192dd54] 118 X-Request-Id: [13f8de28-57f3-46e1-ad93-b97e544baa0a]
122 X-Runtime: ['0.084676'] 119 X-Runtime: ['0.203312']
123 X-XSS-Protection: [1; mode=block] 120 X-XSS-Protection: [1; mode=block]
124 content-length: ['2'] 121 content-length: ['1309']
125 status: {code: 200, message: OK} 122 status: {code: 200, message: OK}
126- request: 123- request:
127 body: null 124 body: null
@@ -133,13 +130,15 @@ interactions:
133 Content-Length: ['0'] 130 Content-Length: ['0']
134 User-Agent: [python-requests/2.18.4] 131 User-Agent: [python-requests/2.18.4]
135 method: DELETE 132 method: DELETE
136 uri: http://localhost:3000/api/v1/statuses/101999516810790838 133 uri: http://localhost:3000/api/v1/statuses/102315368082869206
137 response: 134 response:
138 body: {string: '{}'} 135 body: {string: '{"id":"102315368082869206","created_at":"2019-06-22T13:03:39.439Z","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/102315368082869206","url":"http://localhost/@mastodonpy_test/102315368082869206","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
136 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
137 Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","note":"\u003cp\u003eI
138 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}'}
139 headers: 139 headers:
140 Cache-Control: ['max-age=0, private, must-revalidate'] 140 Cache-Control: ['no-cache, no-store']
141 Content-Type: [application/json; charset=utf-8] 141 Content-Type: [application/json; charset=utf-8]
142 ETag: [W/"03499d2396def7cd70f82639d27b509f"]
143 Referrer-Policy: [strict-origin-when-cross-origin] 142 Referrer-Policy: [strict-origin-when-cross-origin]
144 Transfer-Encoding: [chunked] 143 Transfer-Encoding: [chunked]
145 Vary: ['Accept-Encoding, Origin'] 144 Vary: ['Accept-Encoding, Origin']
@@ -147,9 +146,9 @@ interactions:
147 X-Download-Options: [noopen] 146 X-Download-Options: [noopen]
148 X-Frame-Options: [SAMEORIGIN] 147 X-Frame-Options: [SAMEORIGIN]
149 X-Permitted-Cross-Domain-Policies: [none] 148 X-Permitted-Cross-Domain-Policies: [none]
150 X-Request-Id: [c8de3f31-e56c-43df-8e50-637be2b03103] 149 X-Request-Id: [19a74944-a214-449e-9306-aaac33a5b3cf]
151 X-Runtime: ['0.107661'] 150 X-Runtime: ['0.098138']
152 X-XSS-Protection: [1; mode=block] 151 X-XSS-Protection: [1; mode=block]
153 content-length: ['2'] 152 content-length: ['1567']
154 status: {code: 200, message: OK} 153 status: {code: 200, message: OK}
155version: 1 154version: 1
Powered by cgit v1.2.3 (git 2.41.0)