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_status_fav_unfav.yaml
parentc0a0c8f517611d0026d6d37fbe7c57eae1f1a3bb (diff)
downloadmastodon.py-8d5fe70c7e52656b2f89d0acfb1aed23bf583041.tar.gz
Fix some bugs, update tests
Diffstat (limited to 'tests/cassettes/test_status_fav_unfav.yaml')
-rw-r--r--tests/cassettes/test_status_fav_unfav.yaml54
1 files changed, 27 insertions, 27 deletions
diff --git a/tests/cassettes/test_status_fav_unfav.yaml b/tests/cassettes/test_status_fav_unfav.yaml
index ab9f942..5ed22df 100644
--- a/tests/cassettes/test_status_fav_unfav.yaml
+++ b/tests/cassettes/test_status_fav_unfav.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":"99979652428846751","created_at":"2018-05-06T01:00:27.015Z","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/99979652428846751","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979652428846751","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 15 body: {string: '{"id":"99984774641283679","created_at":"2018-05-06T22:43:05.742Z","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/99984774641283679","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984774641283679","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":1,"statuses_count":2},"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/"25db1b2daa07afc49ecdb2ee7d156995"] 22 ETag: [W/"71d179edeca76b93b83d72cb746e0c7e"]
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: [a0f4503e-2455-4a98-9ee4-f8946caaa587] 27 X-Request-Id: [61524c1a-b938-4372-b45c-b7432a7f8ed4]
28 X-Runtime: ['0.327118'] 28 X-Runtime: ['0.333268']
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,24 +39,24 @@ 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/99979652428846751/favourite 42 uri: http://localhost:3000/api/v1/statuses/99984774641283679/favourite
43 response: 43 response:
44 body: {string: '{"id":"99979652428846751","created_at":"2018-05-06T01:00:27.015Z","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/99979652428846751","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979652428846751","reblogs_count":0,"favourites_count":1,"favourited":true,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 44 body: {string: '{"id":"99984774641283679","created_at":"2018-05-06T22:43:05.742Z","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/99984774641283679","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984774641283679","reblogs_count":0,"favourites_count":1,"favourited":true,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
45 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 45 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
46 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI 46 Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI
47 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":[]}'} 47 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":2},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
48 headers: 48 headers:
49 Cache-Control: ['max-age=0, private, must-revalidate'] 49 Cache-Control: ['max-age=0, private, must-revalidate']
50 Content-Type: [application/json; charset=utf-8] 50 Content-Type: [application/json; charset=utf-8]
51 ETag: [W/"bb2dfd98cc01f44415a5982f6b8948ca"] 51 ETag: [W/"85e301ead8cede5ae7c04b26ec744032"]
52 Transfer-Encoding: [chunked] 52 Transfer-Encoding: [chunked]
53 Vary: ['Accept-Encoding, Origin'] 53 Vary: ['Accept-Encoding, Origin']
54 X-Content-Type-Options: [nosniff] 54 X-Content-Type-Options: [nosniff]
55 X-Frame-Options: [SAMEORIGIN] 55 X-Frame-Options: [SAMEORIGIN]
56 X-Request-Id: [845ec98f-ca87-4dd1-8360-a25aa8e44a31] 56 X-Request-Id: [296f1d24-267d-4c7d-aa11-78bf958ed4c3]
57 X-Runtime: ['0.136141'] 57 X-Runtime: ['0.237692']
58 X-XSS-Protection: [1; mode=block] 58 X-XSS-Protection: [1; mode=block]
59 content-length: ['1401'] 59 content-length: ['1399']
60 status: {code: 200, message: OK} 60 status: {code: 200, message: OK}
61- request: 61- request:
62 body: null 62 body: null
@@ -68,24 +68,24 @@ interactions:
68 Content-Length: ['0'] 68 Content-Length: ['0']
69 User-Agent: [python-requests/2.9.1] 69 User-Agent: [python-requests/2.9.1]
70 method: POST 70 method: POST
71 uri: http://localhost:3000/api/v1/statuses/99979652428846751/unfavourite 71 uri: http://localhost:3000/api/v1/statuses/99984774641283679/unfavourite
72 response: 72 response:
73 body: {string: '{"id":"99979652428846751","created_at":"2018-05-06T01:00:27.015Z","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/99979652428846751","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979652428846751","reblogs_count":0,"favourites_count":1,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 73 body: {string: '{"id":"99984774641283679","created_at":"2018-05-06T22:43:05.742Z","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/99984774641283679","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984774641283679","reblogs_count":0,"favourites_count":1,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
74 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 74 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
75 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI 75 Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI
76 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":[]}'} 76 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":2},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
77 headers: 77 headers:
78 Cache-Control: ['max-age=0, private, must-revalidate'] 78 Cache-Control: ['max-age=0, private, must-revalidate']
79 Content-Type: [application/json; charset=utf-8] 79 Content-Type: [application/json; charset=utf-8]
80 ETag: [W/"ff433c501fe82b5f74389b9b0b92432a"] 80 ETag: [W/"d12797b6654ef1b6bcc8aa18b86b2325"]
81 Transfer-Encoding: [chunked] 81 Transfer-Encoding: [chunked]
82 Vary: ['Accept-Encoding, Origin'] 82 Vary: ['Accept-Encoding, Origin']
83 X-Content-Type-Options: [nosniff] 83 X-Content-Type-Options: [nosniff]
84 X-Frame-Options: [SAMEORIGIN] 84 X-Frame-Options: [SAMEORIGIN]
85 X-Request-Id: [f932ec94-7d5e-449d-9e32-ac1707aaf5c9] 85 X-Request-Id: [a55241a7-b4dd-4aab-a6bf-c9cc49f0c4a1]
86 X-Runtime: ['0.108020'] 86 X-Runtime: ['0.102733']
87 X-XSS-Protection: [1; mode=block] 87 X-XSS-Protection: [1; mode=block]
88 content-length: ['1402'] 88 content-length: ['1400']
89 status: {code: 200, message: OK} 89 status: {code: 200, message: OK}
90- request: 90- request:
91 body: null 91 body: null
@@ -97,19 +97,19 @@ interactions:
97 Content-Length: ['0'] 97 Content-Length: ['0']
98 User-Agent: [python-requests/2.9.1] 98 User-Agent: [python-requests/2.9.1]
99 method: DELETE 99 method: DELETE
100 uri: http://localhost:3000/api/v1/statuses/99979652428846751 100 uri: http://localhost:3000/api/v1/statuses/99984774641283679
101 response: 101 response:
102 body: {string: '{}'} 102 body: {string: '{}'}
103 headers: 103 headers:
104 Cache-Control: ['max-age=0, private, must-revalidate'] 104 Cache-Control: ['max-age=0, private, must-revalidate']
105 Content-Type: [application/json; charset=utf-8] 105 Content-Type: [application/json; charset=utf-8]
106 ETag: [W/"99b3b070447b9afe69d83ed1621d754f"] 106 ETag: [W/"3e0d972f4165ee97f5f467a7311c2756"]
107 Transfer-Encoding: [chunked] 107 Transfer-Encoding: [chunked]
108 Vary: ['Accept-Encoding, Origin'] 108 Vary: ['Accept-Encoding, Origin']
109 X-Content-Type-Options: [nosniff] 109 X-Content-Type-Options: [nosniff]
110 X-Frame-Options: [SAMEORIGIN] 110 X-Frame-Options: [SAMEORIGIN]
111 X-Request-Id: [b315c2a2-3c5c-4cf7-affa-331d709398c3] 111 X-Request-Id: [b6812f84-51df-4982-b726-c1e304240e3d]
112 X-Runtime: ['0.029564'] 112 X-Runtime: ['0.047594']
113 X-XSS-Protection: [1; mode=block] 113 X-XSS-Protection: [1; mode=block]
114 content-length: ['2'] 114 content-length: ['2']
115 status: {code: 200, message: OK} 115 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)