aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-05-07 00:53:13 +0200
committerLorenz Diener <[email protected]>2018-05-07 00:53:13 +0200
commit8d5fe70c7e52656b2f89d0acfb1aed23bf583041 (patch)
treea210ef1ba6255d8f64fdd623de41f0e6931c4508 /tests/cassettes/test_id_hook_within_reblog.yaml
parentc0a0c8f517611d0026d6d37fbe7c57eae1f1a3bb (diff)
downloadmastodon.py-8d5fe70c7e52656b2f89d0acfb1aed23bf583041.tar.gz
Fix some bugs, update tests
Diffstat (limited to 'tests/cassettes/test_id_hook_within_reblog.yaml')
-rw-r--r--tests/cassettes/test_id_hook_within_reblog.yaml52
1 files changed, 26 insertions, 26 deletions
diff --git a/tests/cassettes/test_id_hook_within_reblog.yaml b/tests/cassettes/test_id_hook_within_reblog.yaml
index 28cf350..f3cf70c 100644
--- a/tests/cassettes/test_id_hook_within_reblog.yaml
+++ b/tests/cassettes/test_id_hook_within_reblog.yaml
@@ -12,22 +12,22 @@ 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":"99979649351743836","created_at":"2018-05-06T00:59:40.039Z","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/99979649351743836","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979649351743836","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 15 body: {string: '{"id":"99984770654967813","created_at":"2018-05-06T22:42:04.924Z","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/99984770654967813","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984770654967813","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-04-18T20:04:06.511Z","note":"\u003cp\u003eI 17 Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","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":130},"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":3},"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/"d5b4577c917bc410d1ae3f97ea057341"] 22 ETag: [W/"ae8b939416b3bfc3eb7d80544c4ee5b3"]
23 Transfer-Encoding: [chunked] 23 Transfer-Encoding: [chunked]
24 Vary: ['Accept-Encoding, Origin'] 24 Vary: ['Accept-Encoding, Origin']
25 X-Content-Type-Options: [nosniff] 25 X-Content-Type-Options: [nosniff]
26 X-Frame-Options: [SAMEORIGIN] 26 X-Frame-Options: [SAMEORIGIN]
27 X-Request-Id: [f152967b-8db8-4209-90e4-7f923bb6a581] 27 X-Request-Id: [c9b147a9-7581-42bc-8cf3-aeaba0a112f6]
28 X-Runtime: ['0.382455'] 28 X-Runtime: ['0.366915']
29 X-XSS-Protection: [1; mode=block] 29 X-XSS-Protection: [1; mode=block]
30 content-length: ['1402'] 30 content-length: ['1400']
31 status: {code: 200, message: OK} 31 status: {code: 200, message: OK}
32- request: 32- request:
33 body: null 33 body: null
@@ -39,29 +39,29 @@ interactions:
39 Content-Length: ['0'] 39 Content-Length: ['0']
40 User-Agent: [python-requests/2.9.1] 40 User-Agent: [python-requests/2.9.1]
41 method: POST 41 method: POST
42 uri: http://localhost:3000/api/v1/statuses/99979649351743836/reblog 42 uri: http://localhost:3000/api/v1/statuses/99984770654967813/reblog
43 response: 43 response:
44 body: {string: '{"id":"99979649376970953","created_at":"2018-05-06T00:59:40.399Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":null,"uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979649376970953/activity","content":"\u003cp\u003eRT 44 body: {string: '{"id":"99984770679789800","created_at":"2018-05-06T22:42:05.275Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":null,"uri":"http://localhost:3000/users/mastodonpy_test/statuses/99984770679789800/activity","content":"\u003cp\u003eRT
45 \u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" 45 \u003cspan class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\"
46 class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e 46 class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e
47 Toot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979649376970953","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":true,"muted":false,"reblog":{"id":"99979649351743836","created_at":"2018-05-06T00:59:40.039Z","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/99979649351743836","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979649351743836","reblogs_count":1,"favourites_count":0,"favourited":false,"reblogged":true,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 47 Toot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984770679789800","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":true,"muted":false,"reblog":{"id":"99984770654967813","created_at":"2018-05-06T22:42:04.924Z","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/99984770654967813","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984770654967813","reblogs_count":1,"favourites_count":0,"favourited":false,"reblogged":true,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
48 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 48 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
49 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI 49 Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI
50 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":129},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},"application":null,"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 50 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":2},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},"application":null,"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
51 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI 51 Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI
52 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":130},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 52 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":3},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
53 headers: 53 headers:
54 Cache-Control: ['max-age=0, private, must-revalidate'] 54 Cache-Control: ['max-age=0, private, must-revalidate']
55 Content-Type: [application/json; charset=utf-8] 55 Content-Type: [application/json; charset=utf-8]
56 ETag: [W/"8552c81594fc92aaefa462bcfbf84635"] 56 ETag: [W/"57a85bbfc5dda2abbc8eb53ad1b73cc2"]
57 Transfer-Encoding: [chunked] 57 Transfer-Encoding: [chunked]
58 Vary: ['Accept-Encoding, Origin'] 58 Vary: ['Accept-Encoding, Origin']
59 X-Content-Type-Options: [nosniff] 59 X-Content-Type-Options: [nosniff]
60 X-Frame-Options: [SAMEORIGIN] 60 X-Frame-Options: [SAMEORIGIN]
61 X-Request-Id: [930bc7e9-58cc-4c86-ba78-221a417aa9f5] 61 X-Request-Id: [c17b7626-43b7-4eaf-bc42-4f1aa686e331]
62 X-Runtime: ['0.517397'] 62 X-Runtime: ['0.348005']
63 X-XSS-Protection: [1; mode=block] 63 X-XSS-Protection: [1; mode=block]
64 content-length: ['2950'] 64 content-length: ['2946']
65 status: {code: 200, message: OK} 65 status: {code: 200, message: OK}
66- request: 66- request:
67 body: null 67 body: null
@@ -73,19 +73,19 @@ interactions:
73 Content-Length: ['0'] 73 Content-Length: ['0']
74 User-Agent: [python-requests/2.9.1] 74 User-Agent: [python-requests/2.9.1]
75 method: DELETE 75 method: DELETE
76 uri: http://localhost:3000/api/v1/statuses/99979649376970953 76 uri: http://localhost:3000/api/v1/statuses/99984770679789800
77 response: 77 response:
78 body: {string: '{}'} 78 body: {string: '{}'}
79 headers: 79 headers:
80 Cache-Control: ['max-age=0, private, must-revalidate'] 80 Cache-Control: ['max-age=0, private, must-revalidate']
81 Content-Type: [application/json; charset=utf-8] 81 Content-Type: [application/json; charset=utf-8]
82 ETag: [W/"78b074a19c64d33a75b58d25bca2ec84"] 82 ETag: [W/"7b8d00a762c6e0092d96fc36a0abd17b"]
83 Transfer-Encoding: [chunked] 83 Transfer-Encoding: [chunked]
84 Vary: ['Accept-Encoding, Origin'] 84 Vary: ['Accept-Encoding, Origin']
85 X-Content-Type-Options: [nosniff] 85 X-Content-Type-Options: [nosniff]
86 X-Frame-Options: [SAMEORIGIN] 86 X-Frame-Options: [SAMEORIGIN]
87 X-Request-Id: [8a2d1d43-556e-40fe-a091-d93206f9fc43] 87 X-Request-Id: [67da353c-84c6-4015-b385-fc643e4e0f06]
88 X-Runtime: ['0.027903'] 88 X-Runtime: ['0.058934']
89 X-XSS-Protection: [1; mode=block] 89 X-XSS-Protection: [1; mode=block]
90 content-length: ['2'] 90 content-length: ['2']
91 status: {code: 200, message: OK} 91 status: {code: 200, message: OK}
@@ -99,19 +99,19 @@ interactions:
99 Content-Length: ['0'] 99 Content-Length: ['0']
100 User-Agent: [python-requests/2.9.1] 100 User-Agent: [python-requests/2.9.1]
101 method: DELETE 101 method: DELETE
102 uri: http://localhost:3000/api/v1/statuses/99979649351743836 102 uri: http://localhost:3000/api/v1/statuses/99984770654967813
103 response: 103 response:
104 body: {string: '{}'} 104 body: {string: '{}'}
105 headers: 105 headers:
106 Cache-Control: ['max-age=0, private, must-revalidate'] 106 Cache-Control: ['max-age=0, private, must-revalidate']
107 Content-Type: [application/json; charset=utf-8] 107 Content-Type: [application/json; charset=utf-8]
108 ETag: [W/"78b074a19c64d33a75b58d25bca2ec84"] 108 ETag: [W/"7b8d00a762c6e0092d96fc36a0abd17b"]
109 Transfer-Encoding: [chunked] 109 Transfer-Encoding: [chunked]
110 Vary: ['Accept-Encoding, Origin'] 110 Vary: ['Accept-Encoding, Origin']
111 X-Content-Type-Options: [nosniff] 111 X-Content-Type-Options: [nosniff]
112 X-Frame-Options: [SAMEORIGIN] 112 X-Frame-Options: [SAMEORIGIN]
113 X-Request-Id: [79cb058e-ba64-444e-bb10-2cf3a0f6f00a] 113 X-Request-Id: [8f93210b-8346-4fd0-b4ef-ad17db6f82f7]
114 X-Runtime: ['0.082371'] 114 X-Runtime: ['0.117785']
115 X-XSS-Protection: [1; mode=block] 115 X-XSS-Protection: [1; mode=block]
116 content-length: ['2'] 116 content-length: ['2']
117 status: {code: 200, message: OK} 117 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)