aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-07-30 23:19:51 +0200
committerLorenz Diener <[email protected]>2018-07-30 23:19:51 +0200
commitd0c71b1a8497a3047f630cd1926f803a5190d7aa (patch)
treef52a76a1160e768de4519e31548a5d1cb1c29c6f /tests/cassettes/test_status_reply.yaml
parent8b06b53ed50e41411857181e4881e54823ed661b (diff)
downloadmastodon.py-d0c71b1a8497a3047f630cd1926f803a5190d7aa.tar.gz
Fresh set of tests pre-release
Diffstat (limited to 'tests/cassettes/test_status_reply.yaml')
-rw-r--r--tests/cassettes/test_status_reply.yaml50
1 files changed, 25 insertions, 25 deletions
diff --git a/tests/cassettes/test_status_reply.yaml b/tests/cassettes/test_status_reply.yaml
index 52592c6..5d57415 100644
--- a/tests/cassettes/test_status_reply.yaml
+++ b/tests/cassettes/test_status_reply.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":"100465157432430306","created_at":"2018-07-30T18:50:45.399Z","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/100465157432430306","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100465157432430306","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 15 body: {string: '{"id":"100465731443639918","created_at":"2018-07-30T21:16:44.150Z","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/100465731443639918","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100465731443639918","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":"2018-07-13T23:02:25.260Z","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":91,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 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":113,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
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/"1570bf46ed753e1e9bb255d01a1cf40b"] 22 ETag: [W/"35b94cccb99b616d5e923f65944812c8"]
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: [13fe1446-a1f6-4149-92ed-199374ccfb4b] 30 X-Request-Id: [571591f3-dc13-4039-82e4-1b327d29a2e9]
31 X-Runtime: ['0.108650'] 31 X-Runtime: ['0.274064']
32 X-XSS-Protection: [1; mode=block] 32 X-XSS-Protection: [1; mode=block]
33 content-length: ['1509'] 33 content-length: ['1510']
34 status: {code: 200, message: OK} 34 status: {code: 200, message: OK}
35- request: 35- request:
36 body: null 36 body: null
@@ -43,11 +43,11 @@ interactions:
43 method: GET 43 method: GET
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":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":68,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'} 46 body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":84,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'}
47 headers: 47 headers:
48 Cache-Control: ['max-age=0, private, must-revalidate'] 48 Cache-Control: ['max-age=0, private, must-revalidate']
49 Content-Type: [application/json; charset=utf-8] 49 Content-Type: [application/json; charset=utf-8]
50 ETag: [W/"72353641191d7307875bcab1ace70d94"] 50 ETag: [W/"c428b68bac63d10881542917bc8ebc36"]
51 Referrer-Policy: [strict-origin-when-cross-origin] 51 Referrer-Policy: [strict-origin-when-cross-origin]
52 Transfer-Encoding: [chunked] 52 Transfer-Encoding: [chunked]
53 Vary: ['Accept-Encoding, Origin'] 53 Vary: ['Accept-Encoding, Origin']
@@ -55,13 +55,13 @@ interactions:
55 X-Download-Options: [noopen] 55 X-Download-Options: [noopen]
56 X-Frame-Options: [SAMEORIGIN] 56 X-Frame-Options: [SAMEORIGIN]
57 X-Permitted-Cross-Domain-Policies: [none] 57 X-Permitted-Cross-Domain-Policies: [none]
58 X-Request-Id: [b48ecf88-d134-4501-a66b-d0f71b342ab0] 58 X-Request-Id: [825b5a75-3efa-4052-9a6a-1869f28bd8b2]
59 X-Runtime: ['0.047875'] 59 X-Runtime: ['0.113849']
60 X-XSS-Protection: [1; mode=block] 60 X-XSS-Protection: [1; mode=block]
61 content-length: ['635'] 61 content-length: ['635']
62 status: {code: 200, message: OK} 62 status: {code: 200, message: OK}
63- request: 63- request:
64 body: spoiler_text=&visibility=public&in_reply_to_id=100465157432430306&status=%40mastodonpy_test+same%21 64 body: spoiler_text=&visibility=public&in_reply_to_id=100465731443639918&status=%40mastodonpy_test+same%21
65 headers: 65 headers:
66 Accept: ['*/*'] 66 Accept: ['*/*']
67 Accept-Encoding: ['gzip, deflate'] 67 Accept-Encoding: ['gzip, deflate']
@@ -73,15 +73,15 @@ interactions:
73 method: POST 73 method: POST
74 uri: http://localhost:3000/api/v1/statuses 74 uri: http://localhost:3000/api/v1/statuses
75 response: 75 response:
76 body: {string: '{"id":"100465157444820731","created_at":"2018-07-30T18:50:45.593Z","in_reply_to_id":"100465157432430306","in_reply_to_account_id":"1234567890123456","sensitive":false,"spoiler_text":"","visibility":"public","language":null,"uri":"http://localhost:3000/users/admin/statuses/100465157444820731","content":"\u003cp\u003e\u003cspan 76 body: {string: '{"id":"100465731471346615","created_at":"2018-07-30T21:16:44.561Z","in_reply_to_id":"100465731443639918","in_reply_to_account_id":"1234567890123456","sensitive":false,"spoiler_text":"","visibility":"public","language":null,"uri":"http://localhost:3000/users/admin/statuses/100465731471346615","content":"\u003cp\u003e\u003cspan
77 class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" 77 class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\"
78 class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e 78 class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e
79 same!\u003c/p\u003e","url":"http://localhost:3000/@admin/100465157444820731","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 79 same!\u003c/p\u003e","url":"http://localhost:3000/@admin/100465731471346615","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
80 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":69,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[]}'} 80 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":85,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[]}'}
81 headers: 81 headers:
82 Cache-Control: ['max-age=0, private, must-revalidate'] 82 Cache-Control: ['max-age=0, private, must-revalidate']
83 Content-Type: [application/json; charset=utf-8] 83 Content-Type: [application/json; charset=utf-8]
84 ETag: [W/"9e8f4486ac9a69d29df0aa9768acbf70"] 84 ETag: [W/"d413fd938903db33fee0dd2d50ddc1c2"]
85 Referrer-Policy: [strict-origin-when-cross-origin] 85 Referrer-Policy: [strict-origin-when-cross-origin]
86 Transfer-Encoding: [chunked] 86 Transfer-Encoding: [chunked]
87 Vary: ['Accept-Encoding, Origin'] 87 Vary: ['Accept-Encoding, Origin']
@@ -89,8 +89,8 @@ interactions:
89 X-Download-Options: [noopen] 89 X-Download-Options: [noopen]
90 X-Frame-Options: [SAMEORIGIN] 90 X-Frame-Options: [SAMEORIGIN]
91 X-Permitted-Cross-Domain-Policies: [none] 91 X-Permitted-Cross-Domain-Policies: [none]
92 X-Request-Id: [02fc8da4-fd42-4759-916a-fcc39f6769ef] 92 X-Request-Id: [606e572b-b485-4b25-ba4c-c9f84b788a4b]
93 X-Runtime: ['0.212302'] 93 X-Runtime: ['0.294533']
94 X-XSS-Protection: [1; mode=block] 94 X-XSS-Protection: [1; mode=block]
95 content-length: ['1520'] 95 content-length: ['1520']
96 status: {code: 200, message: OK} 96 status: {code: 200, message: OK}
@@ -104,13 +104,13 @@ interactions:
104 Content-Length: ['0'] 104 Content-Length: ['0']
105 User-Agent: [python-requests/2.18.4] 105 User-Agent: [python-requests/2.18.4]
106 method: DELETE 106 method: DELETE
107 uri: http://localhost:3000/api/v1/statuses/100465157444820731 107 uri: http://localhost:3000/api/v1/statuses/100465731471346615
108 response: 108 response:
109 body: {string: '{}'} 109 body: {string: '{}'}
110 headers: 110 headers:
111 Cache-Control: ['max-age=0, private, must-revalidate'] 111 Cache-Control: ['max-age=0, private, must-revalidate']
112 Content-Type: [application/json; charset=utf-8] 112 Content-Type: [application/json; charset=utf-8]
113 ETag: [W/"a37e07397123f3af7df5c25887ddf5c0"] 113 ETag: [W/"4d510ea9875b50cbdd745c3073e0c6a9"]
114 Referrer-Policy: [strict-origin-when-cross-origin] 114 Referrer-Policy: [strict-origin-when-cross-origin]
115 Transfer-Encoding: [chunked] 115 Transfer-Encoding: [chunked]
116 Vary: ['Accept-Encoding, Origin'] 116 Vary: ['Accept-Encoding, Origin']
@@ -118,8 +118,8 @@ interactions:
118 X-Download-Options: [noopen] 118 X-Download-Options: [noopen]
119 X-Frame-Options: [SAMEORIGIN] 119 X-Frame-Options: [SAMEORIGIN]
120 X-Permitted-Cross-Domain-Policies: [none] 120 X-Permitted-Cross-Domain-Policies: [none]
121 X-Request-Id: [e4c238eb-10b8-4673-9758-a4010b3e6606] 121 X-Request-Id: [aa3d4a6f-cdf3-4cda-bb71-b688d4298a7e]
122 X-Runtime: ['0.042563'] 122 X-Runtime: ['0.128996']
123 X-XSS-Protection: [1; mode=block] 123 X-XSS-Protection: [1; mode=block]
124 content-length: ['2'] 124 content-length: ['2']
125 status: {code: 200, message: OK} 125 status: {code: 200, message: OK}
@@ -133,13 +133,13 @@ interactions:
133 Content-Length: ['0'] 133 Content-Length: ['0']
134 User-Agent: [python-requests/2.18.4] 134 User-Agent: [python-requests/2.18.4]
135 method: DELETE 135 method: DELETE
136 uri: http://localhost:3000/api/v1/statuses/100465157432430306 136 uri: http://localhost:3000/api/v1/statuses/100465731443639918
137 response: 137 response:
138 body: {string: '{}'} 138 body: {string: '{}'}
139 headers: 139 headers:
140 Cache-Control: ['max-age=0, private, must-revalidate'] 140 Cache-Control: ['max-age=0, private, must-revalidate']
141 Content-Type: [application/json; charset=utf-8] 141 Content-Type: [application/json; charset=utf-8]
142 ETag: [W/"a37e07397123f3af7df5c25887ddf5c0"] 142 ETag: [W/"c94a435904ec3f882f8c14272bd581ac"]
143 Referrer-Policy: [strict-origin-when-cross-origin] 143 Referrer-Policy: [strict-origin-when-cross-origin]
144 Transfer-Encoding: [chunked] 144 Transfer-Encoding: [chunked]
145 Vary: ['Accept-Encoding, Origin'] 145 Vary: ['Accept-Encoding, Origin']
@@ -147,8 +147,8 @@ interactions:
147 X-Download-Options: [noopen] 147 X-Download-Options: [noopen]
148 X-Frame-Options: [SAMEORIGIN] 148 X-Frame-Options: [SAMEORIGIN]
149 X-Permitted-Cross-Domain-Policies: [none] 149 X-Permitted-Cross-Domain-Policies: [none]
150 X-Request-Id: [20adf9f8-6636-4bdc-94cc-be0df2f0bf92] 150 X-Request-Id: [98ec240b-4dd5-4901-96e0-88611ef52f69]
151 X-Runtime: ['0.046848'] 151 X-Runtime: ['0.152319']
152 X-XSS-Protection: [1; mode=block] 152 X-XSS-Protection: [1; mode=block]
153 content-length: ['2'] 153 content-length: ['2']
154 status: {code: 200, message: OK} 154 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)