aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-07 23:11:30 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-07 23:11:30 +0200
commit3277ca777821e76955fb26d80788939a311db9db (patch)
treebef0749a451464d00e59fb3c685e6eb6d69a8a78 /tests/cassettes/test_date_hook.yaml
parent33d1e17e2e75884abd6e0a8a3e4a4da388e97e55 (diff)
downloadmastodon.py-3277ca777821e76955fb26d80788939a311db9db.tar.gz
Initial test fixing pass. Four tests still fail.
Diffstat (limited to 'tests/cassettes/test_date_hook.yaml')
-rw-r--r--tests/cassettes/test_date_hook.yaml167
1 files changed, 121 insertions, 46 deletions
diff --git a/tests/cassettes/test_date_hook.yaml b/tests/cassettes/test_date_hook.yaml
index 18020f6..ac7fd1d 100644
--- a/tests/cassettes/test_date_hook.yaml
+++ b/tests/cassettes/test_date_hook.yaml
@@ -2,60 +2,135 @@ interactions:
2- request: 2- request:
3 body: status=Toot%21 3 body: status=Toot%21
4 headers: 4 headers:
5 Accept: ['*/*'] 5 Accept:
6 Accept-Encoding: ['gzip, deflate'] 6 - '*/*'
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 7 Accept-Encoding:
8 Connection: [keep-alive] 8 - gzip, deflate
9 Content-Length: ['14'] 9 Authorization:
10 Content-Type: [application/x-www-form-urlencoded] 10 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
11 User-Agent: [python-requests/2.18.4] 11 Connection:
12 - keep-alive
13 Content-Length:
14 - '14'
15 Content-Type:
16 - application/x-www-form-urlencoded
17 User-Agent:
18 - tests/v311
12 method: POST 19 method: POST
13 uri: http://localhost:3000/api/v1/statuses 20 uri: http://localhost:3000/api/v1/statuses
14 response: 21 response:
15 body: {string: '{"id":"103704148037130424","created_at":"2020-02-22T19:28:39.814Z","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/103704148037130424","url":"http://localhost/@mastodonpy_test/103704148037130424","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py 22 body:
16 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","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":1,"statuses_count":2,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} 23 string: '{"id":"109304275463024953","created_at":"2022-11-07T19:54:42.920Z","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/109304275463024953","url":"http://localhost:3000/@mastodonpy_test/109304275463024953","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
24 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
25 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI
26 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":1,"statuses_count":5,"last_status_at":"2022-11-07","noindex":false,"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}'
17 headers: 27 headers:
18 Cache-Control: ['no-cache, no-store'] 28 Cache-Control:
19 Content-Type: [application/json; charset=utf-8] 29 - no-store
20 Referrer-Policy: [strict-origin-when-cross-origin] 30 Content-Security-Policy:
21 Transfer-Encoding: [chunked] 31 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
22 Vary: ['Accept-Encoding, Origin'] 32 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
23 X-Content-Type-Options: [nosniff] 33 style-src ''self'' http://localhost:3000 ''nonce-YZv/bv1znTICUCTDX8ZCfg=='';
24 X-Download-Options: [noopen] 34 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
25 X-Frame-Options: [SAMEORIGIN] 35 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
26 X-Permitted-Cross-Domain-Policies: [none] 36 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
27 X-Request-Id: [948e5ba7-2c8e-4bf9-9d84-1b6577d70e49] 37 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
28 X-Runtime: ['0.161612'] 38 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
29 X-XSS-Protection: [1; mode=block] 39 worker-src ''self'' blob: http://localhost:3000'
30 content-length: ['1320'] 40 Content-Type:
31 status: {code: 200, message: OK} 41 - application/json; charset=utf-8
42 ETag:
43 - W/"3aef76d9cf831a0a8e4aac4f3479f5c6"
44 Referrer-Policy:
45 - strict-origin-when-cross-origin
46 Transfer-Encoding:
47 - chunked
48 Vary:
49 - Accept, Origin
50 X-Content-Type-Options:
51 - nosniff
52 X-Download-Options:
53 - noopen
54 X-Frame-Options:
55 - SAMEORIGIN
56 X-Permitted-Cross-Domain-Policies:
57 - none
58 X-RateLimit-Limit:
59 - '300'
60 X-RateLimit-Remaining:
61 - '289'
62 X-RateLimit-Reset:
63 - '2022-11-07T21:00:00.944626Z'
64 X-Request-Id:
65 - b69d877a-0ad5-41cb-bb19-df3e6b2accd2
66 X-Runtime:
67 - '0.036593'
68 X-XSS-Protection:
69 - 1; mode=block
70 status:
71 code: 200
72 message: OK
32- request: 73- request:
33 body: null 74 body: null
34 headers: 75 headers:
35 Accept: ['*/*'] 76 Accept:
36 Accept-Encoding: ['gzip, deflate'] 77 - '*/*'
37 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 78 Accept-Encoding:
38 Connection: [keep-alive] 79 - gzip, deflate
39 Content-Length: ['0'] 80 Authorization:
40 User-Agent: [python-requests/2.18.4] 81 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
82 Connection:
83 - keep-alive
84 Content-Length:
85 - '0'
86 User-Agent:
87 - tests/v311
41 method: DELETE 88 method: DELETE
42 uri: http://localhost:3000/api/v1/statuses/103704148037130424 89 uri: http://localhost:3000/api/v1/statuses/109304275463024953
43 response: 90 response:
44 body: {string: '{"id":"103704148037130424","created_at":"2020-02-22T19:28:39.814Z","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/103704148037130424","url":"http://localhost/@mastodonpy_test/103704148037130424","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","reblog":null,"application":{"name":"Mastodon.py 91 body:
45 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","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":1,"statuses_count":2,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} 92 string: '{"id":"109304275463024953","created_at":"2022-11-07T19:54:42.920Z","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/109304275463024953","url":"http://localhost:3000/@mastodonpy_test/109304275463024953","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
93 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
94 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI
95 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":1,"statuses_count":4,"last_status_at":"2022-11-07","noindex":false,"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}'
46 headers: 96 headers:
47 Cache-Control: ['no-cache, no-store'] 97 Cache-Control:
48 Content-Type: [application/json; charset=utf-8] 98 - no-store
49 Referrer-Policy: [strict-origin-when-cross-origin] 99 Content-Security-Policy:
50 Transfer-Encoding: [chunked] 100 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
51 Vary: ['Accept-Encoding, Origin'] 101 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
52 X-Content-Type-Options: [nosniff] 102 style-src ''self'' http://localhost:3000 ''nonce-2llJ6bDZ0YvMNQf5qRUxOA=='';
53 X-Download-Options: [noopen] 103 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
54 X-Frame-Options: [SAMEORIGIN] 104 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
55 X-Permitted-Cross-Domain-Policies: [none] 105 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
56 X-Request-Id: [c8c7c54b-3314-49b7-b6ce-68524a062619] 106 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
57 X-Runtime: ['0.132070'] 107 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
58 X-XSS-Protection: [1; mode=block] 108 worker-src ''self'' blob: http://localhost:3000'
59 content-length: ['1290'] 109 Content-Type:
60 status: {code: 200, message: OK} 110 - application/json; charset=utf-8
111 ETag:
112 - W/"af716e17b07ccd6cdb86c827911390e9"
113 Referrer-Policy:
114 - strict-origin-when-cross-origin
115 Transfer-Encoding:
116 - chunked
117 Vary:
118 - Accept, Origin
119 X-Content-Type-Options:
120 - nosniff
121 X-Download-Options:
122 - noopen
123 X-Frame-Options:
124 - SAMEORIGIN
125 X-Permitted-Cross-Domain-Policies:
126 - none
127 X-Request-Id:
128 - 27150a36-070f-437d-ba40-11f1b8c7e879
129 X-Runtime:
130 - '0.024837'
131 X-XSS-Protection:
132 - 1; mode=block
133 status:
134 code: 200
135 message: OK
61version: 1 136version: 1
Powered by cgit v1.2.3 (git 2.41.0)