aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_status_favourited_by.yaml')
-rw-r--r--tests/cassettes/test_status_favourited_by.yaml77
1 files changed, 40 insertions, 37 deletions
diff --git a/tests/cassettes/test_status_favourited_by.yaml b/tests/cassettes/test_status_favourited_by.yaml
index dcbd885..2ff6d5a 100644
--- a/tests/cassettes/test_status_favourited_by.yaml
+++ b/tests/cassettes/test_status_favourited_by.yaml
@@ -1,112 +1,115 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: visibility=&status=Toot%21 3 body: status=Toot%21
4 headers: 4 headers:
5 Accept: ['*/*'] 5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate'] 6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] 7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
8 Connection: [keep-alive] 8 Connection: [keep-alive]
9 Content-Length: ['26'] 9 Content-Length: ['14']
10 Content-Type: [application/x-www-form-urlencoded] 10 Content-Type: [application/x-www-form-urlencoded]
11 User-Agent: [python-requests/2.18.4] 11 User-Agent: [python-requests/2.9.1]
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":"99078298123973280","created_at":"2017-11-27T20:34:11.751Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/99078298123973280","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@admin/99078298123973280","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 15 body: {string: '{"id":"99979652003697194","created_at":"2018-05-06T01:00:20.517Z","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/99979652003697194","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979652003697194","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":"1","username":"admin","acct":"admin","display_name":"codltest","locked":false,"created_at":"2017-07-01T17:09:15.621Z","note":"\u003cp\u003ehello 16 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
17 :)\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","avatar_static":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":30},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 17 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","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":131},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
18 headers: 19 headers:
19 Cache-Control: ['max-age=0, private, must-revalidate'] 20 Cache-Control: ['max-age=0, private, must-revalidate']
20 Content-Type: [application/json; charset=utf-8] 21 Content-Type: [application/json; charset=utf-8]
21 ETag: [W/"4a47402024e134227ee8b72a22d4b901"] 22 ETag: [W/"acf6908aaa90ccd8bc6b74dbbac6085d"]
22 Transfer-Encoding: [chunked] 23 Transfer-Encoding: [chunked]
23 Vary: ['Accept-Encoding, Origin'] 24 Vary: ['Accept-Encoding, Origin']
24 X-Content-Type-Options: [nosniff] 25 X-Content-Type-Options: [nosniff]
25 X-Frame-Options: [SAMEORIGIN] 26 X-Frame-Options: [SAMEORIGIN]
26 X-Request-Id: [1a345117-0e72-4ba2-8bdf-f5cc59ec619a] 27 X-Request-Id: [873d5071-733a-45c0-a56e-b2d80f00a548]
27 X-Runtime: ['0.069381'] 28 X-Runtime: ['0.327392']
28 X-XSS-Protection: [1; mode=block] 29 X-XSS-Protection: [1; mode=block]
29 content-length: ['1216'] 30 content-length: ['1402']
30 status: {code: 200, message: OK} 31 status: {code: 200, message: OK}
31- request: 32- request:
32 body: null 33 body: null
33 headers: 34 headers:
34 Accept: ['*/*'] 35 Accept: ['*/*']
35 Accept-Encoding: ['gzip, deflate'] 36 Accept-Encoding: ['gzip, deflate']
36 Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] 37 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
37 Connection: [keep-alive] 38 Connection: [keep-alive]
38 Content-Length: ['0'] 39 Content-Length: ['0']
39 User-Agent: [python-requests/2.18.4] 40 User-Agent: [python-requests/2.9.1]
40 method: POST 41 method: POST
41 uri: http://localhost:3000/api/v1/statuses/99078298123973280/favourite 42 uri: http://localhost:3000/api/v1/statuses/99979652003697194/favourite
42 response: 43 response:
43 body: {string: '{"id":"99078298123973280","created_at":"2017-11-27T20:34:11.751Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/99078298123973280","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@admin/99078298123973280","reblogs_count":0,"favourites_count":1,"favourited":true,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 44 body: {string: '{"id":"99979652003697194","created_at":"2018-05-06T01:00:20.517Z","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/99979652003697194","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979652003697194","reblogs_count":0,"favourites_count":1,"favourited":true,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
44 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"codltest","locked":false,"created_at":"2017-07-01T17:09:15.621Z","note":"\u003cp\u003ehello 45 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
45 :)\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","avatar_static":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":30},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 46 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","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":[]}'}
46 headers: 48 headers:
47 Cache-Control: ['max-age=0, private, must-revalidate'] 49 Cache-Control: ['max-age=0, private, must-revalidate']
48 Content-Type: [application/json; charset=utf-8] 50 Content-Type: [application/json; charset=utf-8]
49 ETag: [W/"9f753a85dd76d2442d3fecb6f1393292"] 51 ETag: [W/"232c9306994806016c268f62dcb497d3"]
50 Transfer-Encoding: [chunked] 52 Transfer-Encoding: [chunked]
51 Vary: ['Accept-Encoding, Origin'] 53 Vary: ['Accept-Encoding, Origin']
52 X-Content-Type-Options: [nosniff] 54 X-Content-Type-Options: [nosniff]
53 X-Frame-Options: [SAMEORIGIN] 55 X-Frame-Options: [SAMEORIGIN]
54 X-Request-Id: [5e398471-6144-4017-8925-aa6ec9fd4822] 56 X-Request-Id: [44211ef3-6261-4aa8-9280-51aef86c752d]
55 X-Runtime: ['0.132356'] 57 X-Runtime: ['0.137789']
56 X-XSS-Protection: [1; mode=block] 58 X-XSS-Protection: [1; mode=block]
57 content-length: ['1215'] 59 content-length: ['1401']
58 status: {code: 200, message: OK} 60 status: {code: 200, message: OK}
59- request: 61- request:
60 body: null 62 body: null
61 headers: 63 headers:
62 Accept: ['*/*'] 64 Accept: ['*/*']
63 Accept-Encoding: ['gzip, deflate'] 65 Accept-Encoding: ['gzip, deflate']
64 Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] 66 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
65 Connection: [keep-alive] 67 Connection: [keep-alive]
66 User-Agent: [python-requests/2.18.4] 68 User-Agent: [python-requests/2.9.1]
67 method: GET 69 method: GET
68 uri: http://localhost:3000/api/v1/statuses/99078298123973280/favourited_by 70 uri: http://localhost:3000/api/v1/statuses/99979652003697194/favourited_by
69 response: 71 response:
70 body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"codltest","locked":false,"created_at":"2017-07-01T17:09:15.621Z","note":"\u003cp\u003ehello 72 body: {string: '[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
71 :)\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","avatar_static":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":30}]'} 73 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
74 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}]'}
72 headers: 75 headers:
73 Cache-Control: ['max-age=0, private, must-revalidate'] 76 Cache-Control: ['max-age=0, private, must-revalidate']
74 Content-Type: [application/json; charset=utf-8] 77 Content-Type: [application/json; charset=utf-8]
75 ETag: [W/"d77d417096a37f1e2ba7055b3876b91a"] 78 ETag: [W/"ac56f69c21737071738bccf67443f46a"]
76 Link: ['<http://localhost:3000/api/v1/statuses/99078298123973280/favourited_by?since_id=7>; 79 Link: ['<http://localhost:3000/api/v1/statuses/99979652003697194/favourited_by?since_id=36>;
77 rel="prev"'] 80 rel="prev"']
78 Transfer-Encoding: [chunked] 81 Transfer-Encoding: [chunked]
79 Vary: ['Accept-Encoding, Origin'] 82 Vary: ['Accept-Encoding, Origin']
80 X-Content-Type-Options: [nosniff] 83 X-Content-Type-Options: [nosniff]
81 X-Frame-Options: [SAMEORIGIN] 84 X-Frame-Options: [SAMEORIGIN]
82 X-Request-Id: [09216a49-d4a7-4879-bea8-f3af3b62f1a7] 85 X-Request-Id: [5205ca4c-c7ca-4261-aa4e-0b0530822fb2]
83 X-Runtime: ['0.030298'] 86 X-Runtime: ['0.045644']
84 X-XSS-Protection: [1; mode=block] 87 X-XSS-Protection: [1; mode=block]
85 content-length: ['605'] 88 content-length: ['771']
86 status: {code: 200, message: OK} 89 status: {code: 200, message: OK}
87- request: 90- request:
88 body: null 91 body: null
89 headers: 92 headers:
90 Accept: ['*/*'] 93 Accept: ['*/*']
91 Accept-Encoding: ['gzip, deflate'] 94 Accept-Encoding: ['gzip, deflate']
92 Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] 95 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
93 Connection: [keep-alive] 96 Connection: [keep-alive]
94 Content-Length: ['0'] 97 Content-Length: ['0']
95 User-Agent: [python-requests/2.18.4] 98 User-Agent: [python-requests/2.9.1]
96 method: DELETE 99 method: DELETE
97 uri: http://localhost:3000/api/v1/statuses/99078298123973280 100 uri: http://localhost:3000/api/v1/statuses/99979652003697194
98 response: 101 response:
99 body: {string: '{}'} 102 body: {string: '{}'}
100 headers: 103 headers:
101 Cache-Control: ['max-age=0, private, must-revalidate'] 104 Cache-Control: ['max-age=0, private, must-revalidate']
102 Content-Type: [application/json; charset=utf-8] 105 Content-Type: [application/json; charset=utf-8]
103 ETag: [W/"8e595899be8bf13c6c2f388b7cb03820"] 106 ETag: [W/"3ad828d3c68f88990864d88248dd9bef"]
104 Transfer-Encoding: [chunked] 107 Transfer-Encoding: [chunked]
105 Vary: ['Accept-Encoding, Origin'] 108 Vary: ['Accept-Encoding, Origin']
106 X-Content-Type-Options: [nosniff] 109 X-Content-Type-Options: [nosniff]
107 X-Frame-Options: [SAMEORIGIN] 110 X-Frame-Options: [SAMEORIGIN]
108 X-Request-Id: [6bdaf9b5-f87a-46fc-b17b-7b0d531cf3fc] 111 X-Request-Id: [5ad2f3eb-6392-49d6-98fa-f11cb2d94c98]
109 X-Runtime: ['0.020800'] 112 X-Runtime: ['0.039080']
110 X-XSS-Protection: [1; mode=block] 113 X-XSS-Protection: [1; mode=block]
111 content-length: ['2'] 114 content-length: ['2']
112 status: {code: 200, message: OK} 115 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)