aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-06-05 22:10:31 +0200
committerLorenz Diener <[email protected]>2018-06-05 22:10:31 +0200
commit18c6b3b90ff8bd607df18af86d092ac1205ffbf7 (patch)
tree203729696d2639d5bf221168ad6c76a150130ab0 /tests/cassettes/test_unauthed_home_tl_throws.yaml
parent36194fd60c8e5c6d30134134e32dd24981aee324 (diff)
downloadmastodon.py-18c6b3b90ff8bd607df18af86d092ac1205ffbf7.tar.gz
New casettes, small fixes
Diffstat (limited to 'tests/cassettes/test_unauthed_home_tl_throws.yaml')
-rw-r--r--tests/cassettes/test_unauthed_home_tl_throws.yaml37
1 files changed, 23 insertions, 14 deletions
diff --git a/tests/cassettes/test_unauthed_home_tl_throws.yaml b/tests/cassettes/test_unauthed_home_tl_throws.yaml
index 88959a1..6ce4a23 100644
--- a/tests/cassettes/test_unauthed_home_tl_throws.yaml
+++ b/tests/cassettes/test_unauthed_home_tl_throws.yaml
@@ -12,22 +12,25 @@ 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":"99984778569376432","created_at":"2018-05-06T22:44:05.707Z","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/99984778569376432","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984778569376432","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 15 body: {string: '{"id":"100154014266622548","created_at":"2018-06-05T20:02:57.491Z","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/100154014266622548","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100154014266622548","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,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI 17 Lennon","locked":true,"bot":false,"created_at":"2018-06-05T21:58:43.069Z","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":1,"statuses_count":4},"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_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":1,"statuses_count":24,"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/"a5cf2bfa60de4071e60aaf6b9e2eefad"] 22 ETag: [W/"49ad53dc9cf7569e155f6cf5ada733f2"]
23 Referrer-Policy: [strict-origin-when-cross-origin]
23 Transfer-Encoding: [chunked] 24 Transfer-Encoding: [chunked]
24 Vary: ['Accept-Encoding, Origin'] 25 Vary: ['Accept-Encoding, Origin']
25 X-Content-Type-Options: [nosniff] 26 X-Content-Type-Options: [nosniff]
27 X-Download-Options: [noopen]
26 X-Frame-Options: [SAMEORIGIN] 28 X-Frame-Options: [SAMEORIGIN]
27 X-Request-Id: [0bd1fffe-c8d6-4a4b-b751-e6d1ada6fc59] 29 X-Permitted-Cross-Domain-Policies: [none]
28 X-Runtime: ['0.271367'] 30 X-Request-Id: [15092df1-e3e3-4bd9-905a-baf66fe184b0]
31 X-Runtime: ['0.348031']
29 X-XSS-Protection: [1; mode=block] 32 X-XSS-Protection: [1; mode=block]
30 content-length: ['1400'] 33 content-length: ['1505']
31 status: {code: 200, message: OK} 34 status: {code: 200, message: OK}
32- request: 35- request:
33 body: null 36 body: null
@@ -41,17 +44,20 @@ interactions:
41 response: 44 response:
42 body: {string: '{"error":"The access token is invalid"}'} 45 body: {string: '{"error":"The access token is invalid"}'}
43 headers: 46 headers:
44 Cache-Control: [no-store] 47 Cache-Control: ['private, no-store']
45 Content-Type: [application/json; charset=utf-8] 48 Content-Type: [application/json; charset=utf-8]
46 Pragma: [no-cache] 49 Pragma: [no-cache]
50 Referrer-Policy: [strict-origin-when-cross-origin]
47 Transfer-Encoding: [chunked] 51 Transfer-Encoding: [chunked]
48 Vary: ['Accept-Encoding, Origin'] 52 Vary: ['Accept-Encoding, Origin']
49 WWW-Authenticate: ['Bearer realm="Doorkeeper", error="invalid_token", error_description="The 53 WWW-Authenticate: ['Bearer realm="Doorkeeper", error="invalid_token", error_description="The
50 access token is invalid"'] 54 access token is invalid"']
51 X-Content-Type-Options: [nosniff] 55 X-Content-Type-Options: [nosniff]
56 X-Download-Options: [noopen]
52 X-Frame-Options: [SAMEORIGIN] 57 X-Frame-Options: [SAMEORIGIN]
53 X-Request-Id: [da0c8bc2-d786-405d-ae19-43b4d961eb32] 58 X-Permitted-Cross-Domain-Policies: [none]
54 X-Runtime: ['0.060663'] 59 X-Request-Id: [a7f0d81e-0a78-4681-8595-ac479f4cdc1d]
60 X-Runtime: ['0.147048']
55 X-XSS-Protection: [1; mode=block] 61 X-XSS-Protection: [1; mode=block]
56 content-length: ['39'] 62 content-length: ['39']
57 status: {code: 401, message: Unauthorized} 63 status: {code: 401, message: Unauthorized}
@@ -65,19 +71,22 @@ interactions:
65 Content-Length: ['0'] 71 Content-Length: ['0']
66 User-Agent: [python-requests/2.9.1] 72 User-Agent: [python-requests/2.9.1]
67 method: DELETE 73 method: DELETE
68 uri: http://localhost:3000/api/v1/statuses/99984778569376432 74 uri: http://localhost:3000/api/v1/statuses/100154014266622548
69 response: 75 response:
70 body: {string: '{}'} 76 body: {string: '{}'}
71 headers: 77 headers:
72 Cache-Control: ['max-age=0, private, must-revalidate'] 78 Cache-Control: ['max-age=0, private, must-revalidate']
73 Content-Type: [application/json; charset=utf-8] 79 Content-Type: [application/json; charset=utf-8]
74 ETag: [W/"7afafd2d11419f13c5e9f73b222e2254"] 80 ETag: [W/"e2f69ff1fb19e5c6a4b1b02f0930c139"]
81 Referrer-Policy: [strict-origin-when-cross-origin]
75 Transfer-Encoding: [chunked] 82 Transfer-Encoding: [chunked]
76 Vary: ['Accept-Encoding, Origin'] 83 Vary: ['Accept-Encoding, Origin']
77 X-Content-Type-Options: [nosniff] 84 X-Content-Type-Options: [nosniff]
85 X-Download-Options: [noopen]
78 X-Frame-Options: [SAMEORIGIN] 86 X-Frame-Options: [SAMEORIGIN]
79 X-Request-Id: [849e7862-d832-4a69-9aea-cb9a951a3e95] 87 X-Permitted-Cross-Domain-Policies: [none]
80 X-Runtime: ['0.027138'] 88 X-Request-Id: [ce6332a6-dfb2-4f05-bf90-b20e42341be4]
89 X-Runtime: ['0.069790']
81 X-XSS-Protection: [1; mode=block] 90 X-XSS-Protection: [1; mode=block]
82 content-length: ['2'] 91 content-length: ['2']
83 status: {code: 200, message: OK} 92 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)