diff options
author | Lorenz Diener <[email protected]> | 2018-05-07 00:53:13 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-05-07 00:53:13 +0200 |
commit | 8d5fe70c7e52656b2f89d0acfb1aed23bf583041 (patch) | |
tree | a210ef1ba6255d8f64fdd623de41f0e6931c4508 /tests/cassettes/test_status_favourited_by.yaml | |
parent | c0a0c8f517611d0026d6d37fbe7c57eae1f1a3bb (diff) | |
download | mastodon.py-8d5fe70c7e52656b2f89d0acfb1aed23bf583041.tar.gz |
Fix some bugs, update tests
Diffstat (limited to 'tests/cassettes/test_status_favourited_by.yaml')
-rw-r--r-- | tests/cassettes/test_status_favourited_by.yaml | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/tests/cassettes/test_status_favourited_by.yaml b/tests/cassettes/test_status_favourited_by.yaml index 2ff6d5a..dbce55e 100644 --- a/tests/cassettes/test_status_favourited_by.yaml +++ b/tests/cassettes/test_status_favourited_by.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":"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 | 15 | body: {string: '{"id":"99984773986025951","created_at":"2018-05-06T22:42:55.776Z","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/99984773986025951","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984773986025951","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":131},"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":4},"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/"acf6908aaa90ccd8bc6b74dbbac6085d"] | 22 | ETag: [W/"d1410e40cbf75156e20d56eebc52d2da"] |
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: [873d5071-733a-45c0-a56e-b2d80f00a548] | 27 | X-Request-Id: [bd2aa821-8731-4e1a-827d-b5d408617edb] |
28 | X-Runtime: ['0.327392'] | 28 | X-Runtime: ['0.478196'] |
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/99979652003697194/favourite | 42 | uri: http://localhost:3000/api/v1/statuses/99984773986025951/favourite |
43 | response: | 43 | response: |
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 | body: {string: '{"id":"99984773986025951","created_at":"2018-05-06T22:42:55.776Z","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/99984773986025951","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984773986025951","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/"232c9306994806016c268f62dcb497d3"] | 51 | ETag: [W/"36cb02fc80da6b0c3b1801ea49fd24fd"] |
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: [44211ef3-6261-4aa8-9280-51aef86c752d] | 56 | X-Request-Id: [62432ecf-ed33-4be9-95f4-50115075bb7e] |
57 | X-Runtime: ['0.137789'] | 57 | X-Runtime: ['0.248565'] |
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 |
@@ -67,25 +67,25 @@ interactions: | |||
67 | Connection: [keep-alive] | 67 | Connection: [keep-alive] |
68 | User-Agent: [python-requests/2.9.1] | 68 | User-Agent: [python-requests/2.9.1] |
69 | method: GET | 69 | method: GET |
70 | uri: http://localhost:3000/api/v1/statuses/99979652003697194/favourited_by | 70 | uri: http://localhost:3000/api/v1/statuses/99984773986025951/favourited_by |
71 | response: | 71 | response: |
72 | body: {string: '[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 72 | body: {string: '[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
73 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI | 73 | Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","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}]'} | 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":1,"statuses_count":2}]'} |
75 | headers: | 75 | headers: |
76 | Cache-Control: ['max-age=0, private, must-revalidate'] | 76 | Cache-Control: ['max-age=0, private, must-revalidate'] |
77 | Content-Type: [application/json; charset=utf-8] | 77 | Content-Type: [application/json; charset=utf-8] |
78 | ETag: [W/"ac56f69c21737071738bccf67443f46a"] | 78 | ETag: [W/"23c1286b5dbb438462887140d78ed486"] |
79 | Link: ['<http://localhost:3000/api/v1/statuses/99979652003697194/favourited_by?since_id=36>; | 79 | Link: ['<http://localhost:3000/api/v1/statuses/99984773986025951/favourited_by?since_id=3>; |
80 | rel="prev"'] | 80 | rel="prev"'] |
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: [5205ca4c-c7ca-4261-aa4e-0b0530822fb2] | 85 | X-Request-Id: [e8c19ec4-0130-4eb9-9332-c75fb0729421] |
86 | X-Runtime: ['0.045644'] | 86 | X-Runtime: ['0.082037'] |
87 | X-XSS-Protection: [1; mode=block] | 87 | X-XSS-Protection: [1; mode=block] |
88 | content-length: ['771'] | 88 | content-length: ['769'] |
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/99979652003697194 | 100 | uri: http://localhost:3000/api/v1/statuses/99984773986025951 |
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/"3ad828d3c68f88990864d88248dd9bef"] | 106 | ETag: [W/"242dfe908bbfe60abc783598603515ec"] |
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: [5ad2f3eb-6392-49d6-98fa-f11cb2d94c98] | 111 | X-Request-Id: [09838059-848f-431a-a9fc-a1fa584b5f45] |
112 | X-Runtime: ['0.039080'] | 112 | X-Runtime: ['0.049722'] |
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} |