diff options
author | Lorenz Diener <[email protected]> | 2018-04-18 22:00:35 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-04-18 22:00:35 +0200 |
commit | 64ec9e20987072692227d8817d9fd99d497fea5e (patch) | |
tree | 7c358d3ce80c30fd59af9e615e99824453eb2f8d /tests/cassettes/test_status_fav_unfav.yaml | |
parent | a825905b571697835d762ac63098491cbc4a0936 (diff) | |
download | mastodon.py-64ec9e20987072692227d8817d9fd99d497fea5e.tar.gz |
Update the tests
Diffstat (limited to 'tests/cassettes/test_status_fav_unfav.yaml')
-rw-r--r-- | tests/cassettes/test_status_fav_unfav.yaml | 77 |
1 files changed, 40 insertions, 37 deletions
diff --git a/tests/cassettes/test_status_fav_unfav.yaml b/tests/cassettes/test_status_fav_unfav.yaml index 2e08744..f5ebf24 100644 --- a/tests/cassettes/test_status_fav_unfav.yaml +++ b/tests/cassettes/test_status_fav_unfav.yaml | |||
@@ -1,112 +1,115 @@ | |||
1 | interactions: | 1 | interactions: |
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":"99078586530021605","created_at":"2017-11-27T21:47:32.477Z","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/99078586530021605","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@admin/99078586530021605","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 15 | body: {string: '{"id":"99882190833908916","created_at":"2018-04-18T19:54:41.077Z","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/99882190833908916","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882190833908916","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":39},"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_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":0,"statuses_count":22},"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/"ba63e0f1a3e8e12e6243b41926314f97"] | 22 | ETag: [W/"a18a7fef16b94b1096d1934ef1dcbeae"] |
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: [142e9563-ee50-487e-94b6-1a4a5766908b] | 27 | X-Request-Id: [7db70636-d9bb-4750-910f-e388fd3d1711] |
27 | X-Runtime: ['0.074122'] | 28 | X-Runtime: ['0.349075'] |
28 | X-XSS-Protection: [1; mode=block] | 29 | X-XSS-Protection: [1; mode=block] |
29 | content-length: ['1216'] | 30 | content-length: ['1397'] |
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/99078586530021605/favourite | 42 | uri: http://localhost:3000/api/v1/statuses/99882190833908916/favourite |
42 | response: | 43 | response: |
43 | body: {string: '{"id":"99078586530021605","created_at":"2017-11-27T21:47:32.477Z","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/99078586530021605","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@admin/99078586530021605","reblogs_count":0,"favourites_count":1,"favourited":true,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 44 | body: {string: '{"id":"99882190833908916","created_at":"2018-04-18T19:54:41.077Z","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/99882190833908916","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882190833908916","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":39},"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_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":0,"statuses_count":21},"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/"3a3d285f078337a7e2e3311b19094468"] | 51 | ETag: [W/"195e9e7042e101bb81c7bfe096e24169"] |
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: [c59316bc-2534-40b4-bf54-3cc561bf42f6] | 56 | X-Request-Id: [4536420e-a3ac-4784-ac98-4c8d8eea3545] |
55 | X-Runtime: ['0.062361'] | 57 | X-Runtime: ['0.171685'] |
56 | X-XSS-Protection: [1; mode=block] | 58 | X-XSS-Protection: [1; mode=block] |
57 | content-length: ['1215'] | 59 | content-length: ['1396'] |
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 | Content-Length: ['0'] | 68 | Content-Length: ['0'] |
67 | User-Agent: [python-requests/2.18.4] | 69 | User-Agent: [python-requests/2.9.1] |
68 | method: POST | 70 | method: POST |
69 | uri: http://localhost:3000/api/v1/statuses/99078586530021605/unfavourite | 71 | uri: http://localhost:3000/api/v1/statuses/99882190833908916/unfavourite |
70 | response: | 72 | response: |
71 | body: {string: '{"id":"99078586530021605","created_at":"2017-11-27T21:47:32.477Z","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/99078586530021605","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@admin/99078586530021605","reblogs_count":0,"favourites_count":1,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 73 | body: {string: '{"id":"99882190833908916","created_at":"2018-04-18T19:54:41.077Z","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/99882190833908916","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882190833908916","reblogs_count":0,"favourites_count":1,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py |
72 | 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 | 74 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
73 | :)\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":39},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | 75 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","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_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":0,"statuses_count":21},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | ||
74 | headers: | 77 | headers: |
75 | Cache-Control: ['max-age=0, private, must-revalidate'] | 78 | Cache-Control: ['max-age=0, private, must-revalidate'] |
76 | Content-Type: [application/json; charset=utf-8] | 79 | Content-Type: [application/json; charset=utf-8] |
77 | ETag: [W/"64604daf01ed974c75cf8c75665da2e9"] | 80 | ETag: [W/"1f17594f1f74676aa7e6163fe386d563"] |
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: [28a00b16-7394-4515-b3d3-deefa916edd7] | 85 | X-Request-Id: [58389268-9537-43c6-9fac-1626483e4557] |
83 | X-Runtime: ['0.045170'] | 86 | X-Runtime: ['0.074816'] |
84 | X-XSS-Protection: [1; mode=block] | 87 | X-XSS-Protection: [1; mode=block] |
85 | content-length: ['1216'] | 88 | content-length: ['1397'] |
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/99078586530021605 | 100 | uri: http://localhost:3000/api/v1/statuses/99882190833908916 |
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/"bacdf987b5660522964c5adce48ab274"] | 106 | ETag: [W/"f009928cf7974a54f5f488de496722ac"] |
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: [14f33b8c-ba10-4be2-bbe5-fafa6128471b] | 111 | X-Request-Id: [8bda53f8-5ddb-449d-9a70-cba7e7a503c8] |
109 | X-Runtime: ['0.022232'] | 112 | X-Runtime: ['0.035879'] |
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} |