diff options
author | codl <[email protected]> | 2017-11-27 14:19:21 +0100 |
---|---|---|
committer | codl <[email protected]> | 2017-11-27 14:20:31 +0100 |
commit | cfc9c1ce0c6440506d3a88397c65ad47bdd2d662 (patch) | |
tree | 393d35fe5317117f12370fe5c01efa3536c2b717 /tests/cassettes | |
parent | 765db0fc8149aad4c103244e013fdd128af8d3d2 (diff) | |
download | mastodon.py-cfc9c1ce0c6440506d3a88397c65ad47bdd2d662.tar.gz |
add timeline tests
Diffstat (limited to 'tests/cassettes')
-rw-r--r-- | tests/cassettes/test_hashtag_tl.yaml | 91 | ||||
-rw-r--r-- | tests/cassettes/test_home_tl.yaml | 112 | ||||
-rw-r--r-- | tests/cassettes/test_public_tl.yaml | 112 | ||||
-rw-r--r-- | tests/cassettes/test_public_tl_anonymous.yaml | 111 |
4 files changed, 426 insertions, 0 deletions
diff --git a/tests/cassettes/test_hashtag_tl.yaml b/tests/cassettes/test_hashtag_tl.yaml new file mode 100644 index 0000000..8a349e6 --- /dev/null +++ b/tests/cassettes/test_hashtag_tl.yaml | |||
@@ -0,0 +1,91 @@ | |||
1 | interactions: | ||
2 | - request: | ||
3 | body: visibility=&status=%23hoot+%28hashtag+toot%29 | ||
4 | headers: | ||
5 | Accept: ['*/*'] | ||
6 | Accept-Encoding: ['gzip, deflate'] | ||
7 | Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] | ||
8 | Connection: [keep-alive] | ||
9 | Content-Length: ['45'] | ||
10 | Content-Type: [application/x-www-form-urlencoded] | ||
11 | User-Agent: [python-requests/2.18.4] | ||
12 | method: POST | ||
13 | uri: http://localhost:3000/api/v1/statuses | ||
14 | response: | ||
15 | body: {string: '{"id":"99074296373847415","created_at":"2017-11-27T03:36:29.893Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"mi","uri":"http://localhost:3000/users/admin/statuses/99074296373847415","content":"\u003cp\u003e\u003ca | ||
16 | href=\"http://localhost:3000/tags/hoot\" class=\"mention hashtag\" rel=\"tag\"\u003e#\u003cspan\u003ehoot\u003c/span\u003e\u003c/a\u003e | ||
17 | (hashtag toot)\u003c/p\u003e","url":"http://localhost:3000/@admin/99074296373847415","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
18 | 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 | ||
19 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[{"name":"hoot","url":"http://localhost:3000/tags/hoot"}],"emojis":[]}'} | ||
20 | headers: | ||
21 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
22 | Content-Type: [application/json; charset=utf-8] | ||
23 | ETag: [W/"f60ff0be0aeee79d1a50e6be59aed1f2"] | ||
24 | Transfer-Encoding: [chunked] | ||
25 | Vary: ['Accept-Encoding, Origin'] | ||
26 | X-Content-Type-Options: [nosniff] | ||
27 | X-Frame-Options: [SAMEORIGIN] | ||
28 | X-Request-Id: [07fe386d-da01-4b38-8a34-ed9d9c24890d] | ||
29 | X-Runtime: ['0.104177'] | ||
30 | X-XSS-Protection: [1; mode=block] | ||
31 | content-length: ['1425'] | ||
32 | status: {code: 200, message: OK} | ||
33 | - request: | ||
34 | body: null | ||
35 | headers: | ||
36 | Accept: ['*/*'] | ||
37 | Accept-Encoding: ['gzip, deflate'] | ||
38 | Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] | ||
39 | Connection: [keep-alive] | ||
40 | User-Agent: [python-requests/2.18.4] | ||
41 | method: GET | ||
42 | uri: http://localhost:3000/api/v1/timelines/tag/hoot | ||
43 | response: | ||
44 | body: {string: '[{"id":"99074296373847415","created_at":"2017-11-27T03:36:29.893Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"mi","uri":"http://localhost:3000/users/admin/statuses/99074296373847415","content":"\u003cp\u003e\u003ca | ||
45 | href=\"http://localhost:3000/tags/hoot\" class=\"mention hashtag\" rel=\"tag\"\u003e#\u003cspan\u003ehoot\u003c/span\u003e\u003c/a\u003e | ||
46 | (hashtag toot)\u003c/p\u003e","url":"http://localhost:3000/@admin/99074296373847415","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
47 | 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 | ||
48 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[{"name":"hoot","url":"http://localhost:3000/tags/hoot"}],"emojis":[]}]'} | ||
49 | headers: | ||
50 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
51 | Content-Type: [application/json; charset=utf-8] | ||
52 | ETag: [W/"0f7aee960cd49873868d4fd8da888d6d"] | ||
53 | Link: ['<http://localhost:3000/api/v1/timelines/tag/hoot?max_id=99074296373847415>; | ||
54 | rel="next", <http://localhost:3000/api/v1/timelines/tag/hoot?since_id=99074296373847415>; | ||
55 | rel="prev"'] | ||
56 | Transfer-Encoding: [chunked] | ||
57 | Vary: ['Accept-Encoding, Origin'] | ||
58 | X-Content-Type-Options: [nosniff] | ||
59 | X-Frame-Options: [SAMEORIGIN] | ||
60 | X-Request-Id: [169667bf-b799-4347-af75-cbc585297b82] | ||
61 | X-Runtime: ['0.067114'] | ||
62 | X-XSS-Protection: [1; mode=block] | ||
63 | content-length: ['1427'] | ||
64 | status: {code: 200, message: OK} | ||
65 | - request: | ||
66 | body: null | ||
67 | headers: | ||
68 | Accept: ['*/*'] | ||
69 | Accept-Encoding: ['gzip, deflate'] | ||
70 | Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] | ||
71 | Connection: [keep-alive] | ||
72 | Content-Length: ['0'] | ||
73 | User-Agent: [python-requests/2.18.4] | ||
74 | method: DELETE | ||
75 | uri: http://localhost:3000/api/v1/statuses/99074296373847415 | ||
76 | response: | ||
77 | body: {string: '{}'} | ||
78 | headers: | ||
79 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
80 | Content-Type: [application/json; charset=utf-8] | ||
81 | ETag: [W/"612eb80804af851684b89190dee9562c"] | ||
82 | Transfer-Encoding: [chunked] | ||
83 | Vary: ['Accept-Encoding, Origin'] | ||
84 | X-Content-Type-Options: [nosniff] | ||
85 | X-Frame-Options: [SAMEORIGIN] | ||
86 | X-Request-Id: [92588be3-0129-48be-8894-a6e6d0043159] | ||
87 | X-Runtime: ['0.018806'] | ||
88 | X-XSS-Protection: [1; mode=block] | ||
89 | content-length: ['2'] | ||
90 | status: {code: 200, message: OK} | ||
91 | version: 1 | ||
diff --git a/tests/cassettes/test_home_tl.yaml b/tests/cassettes/test_home_tl.yaml new file mode 100644 index 0000000..46ab6a1 --- /dev/null +++ b/tests/cassettes/test_home_tl.yaml | |||
@@ -0,0 +1,112 @@ | |||
1 | interactions: | ||
2 | - request: | ||
3 | body: visibility=&status=Toot%21 | ||
4 | headers: | ||
5 | Accept: ['*/*'] | ||
6 | Accept-Encoding: ['gzip, deflate'] | ||
7 | Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] | ||
8 | Connection: [keep-alive] | ||
9 | Content-Length: ['26'] | ||
10 | Content-Type: [application/x-www-form-urlencoded] | ||
11 | User-Agent: [python-requests/2.18.4] | ||
12 | method: POST | ||
13 | uri: http://localhost:3000/api/v1/statuses | ||
14 | response: | ||
15 | body: {string: '{"id":"99074150389153814","created_at":"2017-11-27T02:59:22.483Z","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/99074150389153814","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@admin/99074150389153814","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 | ||
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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | ||
18 | headers: | ||
19 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
20 | Content-Type: [application/json; charset=utf-8] | ||
21 | ETag: [W/"8aaa23be1d41fe74a9af1b96aa8d0c74"] | ||
22 | Transfer-Encoding: [chunked] | ||
23 | Vary: ['Accept-Encoding, Origin'] | ||
24 | X-Content-Type-Options: [nosniff] | ||
25 | X-Frame-Options: [SAMEORIGIN] | ||
26 | X-Request-Id: [fa1adf43-b0da-4d0a-ba6c-fd3c12f011dd] | ||
27 | X-Runtime: ['0.668773'] | ||
28 | X-XSS-Protection: [1; mode=block] | ||
29 | content-length: ['1216'] | ||
30 | status: {code: 200, message: OK} | ||
31 | - request: | ||
32 | body: null | ||
33 | headers: | ||
34 | Accept: ['*/*'] | ||
35 | Accept-Encoding: ['gzip, deflate'] | ||
36 | Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] | ||
37 | Connection: [keep-alive] | ||
38 | User-Agent: [python-requests/2.18.4] | ||
39 | method: GET | ||
40 | uri: http://localhost:3000/api/v1/timelines/home | ||
41 | response: | ||
42 | body: {string: '[{"id":"99074150389153814","created_at":"2017-11-27T02:59:22.483Z","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/99074150389153814","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@admin/99074150389153814","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
43 | 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 | ||
44 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"99001495355823477","created_at":"2017-11-14T07:02:14.631Z","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/99001495355823477","content":"\u003cp\u003echeck | ||
45 | this website out \u003ca href=\"https://www.google.com/\" rel=\"nofollow noopener\" | ||
46 | target=\"_blank\"\u003e\u003cspan class=\"invisible\"\u003ehttps://www.\u003c/span\u003e\u003cspan | ||
47 | class=\"\"\u003egoogle.com/\u003c/span\u003e\u003cspan class=\"invisible\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin/99001495355823477","reblogs_count":1,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
48 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"99001474318868985","created_at":"2017-11-14T06:56:53.605Z","in_reply_to_id":"98857859740548138","in_reply_to_account_id":"1","sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/99001474318868985","content":"\u003cp\u003eit | ||
49 | is me codl, hello\u003c/p\u003e","url":"http://localhost:3000/@admin/99001474318868985","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
50 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"99001443489597078","created_at":"2017-11-14T06:49:03.095Z","in_reply_to_id":"99001298568412948","in_reply_to_account_id":"1","sensitive":false,"spoiler_text":"","visibility":"public","language":"zh","uri":"http://localhost:3000/users/admin/statuses/99001443489597078","content":"\u003cp\u003ehhhh\u003c/p\u003e","url":"http://localhost:3000/@admin/99001443489597078","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
51 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"99001298568412948","created_at":"2017-11-14T06:12:11.874Z","in_reply_to_id":"98952033484245524","in_reply_to_account_id":"1","sensitive":false,"spoiler_text":"","visibility":"public","language":"sr","uri":"http://localhost:3000/users/admin/statuses/99001298568412948","content":"\u003cp\u003ehello\u003c/p\u003e","url":"http://localhost:3000/@admin/99001298568412948","reblogs_count":0,"favourites_count":1,"favourited":true,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
52 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"99001155403249389","created_at":"2017-11-14T05:35:47.388Z","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/99001155403249389","content":"\u003cp\u003ei | ||
53 | switched my robot off\u003c/p\u003e","url":"http://localhost:3000/@admin/99001155403249389","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
54 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"98952033484245524","created_at":"2017-11-05T13:23:26.252Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"cy","uri":"http://localhost:3000/users/admin/statuses/98952033484245524","content":"\u003cp\u003eim | ||
55 | a big dummy\u003c/p\u003e","url":"http://localhost:3000/@admin/98952033484245524","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
56 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"98952024438552459","created_at":"2017-11-05T13:21:08.228Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"gl","uri":"http://localhost:3000/users/admin/statuses/98952024438552459","content":"\u003cp\u003ebihhhhhhhhhhhhhhhh!!!!!\u003c/p\u003e","url":"http://localhost:3000/@admin/98952024438552459","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
57 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"98952023057752144","created_at":"2017-11-05T13:20:47.252Z","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/98952023057752144","content":"\u003cp\u003ebihhhhhh!!!!\u003c/p\u003e","url":"http://localhost:3000/@admin/98952023057752144","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
58 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"98952019628490365","created_at":"2017-11-05T13:19:54.925Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"su","uri":"http://localhost:3000/users/admin/statuses/98952019628490365","content":"\u003cp\u003ebih\u003c/p\u003e","url":"http://localhost:3000/@admin/98952019628490365","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
59 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"98857859740548138","created_at":"2017-10-19T22:13:49.019Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"sv","uri":"http://localhost:3000/users/admin/statuses/98857859740548138","content":"\u003cp\u003ehttp://localhost:3000/media/2KDfQL4FFYbvGCKAqy4\u003c/p\u003e","url":"http://localhost:3000/@admin/98857859740548138","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
60 | :)\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":20},"media_attachments":[{"id":"1","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/001/original/20b10ed1b3f75445.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/001/small/20b10ed1b3f75445.jpg","remote_url":null,"text_url":"http://localhost:3000/media/2KDfQL4FFYbvGCKAqy4","meta":{"original":{"width":500,"height":300,"size":"500x300","aspect":1.6666666666666667},"small":{"width":400,"height":240,"size":"400x240","aspect":1.6666666666666667}},"description":null}],"mentions":[],"tags":[],"emojis":[]},{"id":"98857736010757809","created_at":"2017-10-19T21:42:20.992Z","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/98857736010757809","content":"\u003cp\u003e\u003cspan | ||
61 | class=\"h-card\"\u003e\u003ca href=\"https://chitter.xyz/@codl\" class=\"u-url | ||
62 | mention\"\u003e@\u003cspan\u003ecodl\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
63 | bup\u003c/p\u003e","url":"http://localhost:3000/@admin/98857736010757809","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
64 | :)\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":20},"media_attachments":[],"mentions":[{"id":"2","username":"codl","url":"https://chitter.xyz/@codl","acct":"[email protected]"}],"tags":[],"emojis":[]},{"id":"98857696070095085","created_at":"2017-10-19T21:32:11.563Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"bs","uri":"http://localhost:3000/users/admin/statuses/98857696070095085","content":"\u003cp\u003eughh\u003c/p\u003e","url":"http://localhost:3000/@admin/98857696070095085","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
65 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"4","created_at":"2017-09-10T17:12:35.515Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":null,"uri":"http://localhost:3000/users/admin/statuses/4","content":"\u003cp\u003eh\u003c/p\u003e","url":"http://localhost:3000/@admin/4","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":true,"reblog":null,"application":{"name":"Web","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 | ||
66 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"3","created_at":"2017-09-10T10:36:56.774Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"uk","uri":"tag:localhost:3000,2017-09-10:objectId=3:objectType=Status","content":"\u003cp\u003eb\u003c/p\u003e","url":"http://localhost:3000/@admin/3","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
67 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"2","created_at":"2017-07-01T17:11:02.368Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"so","uri":"tag:localhost:3000,2017-07-01:objectId=2:objectType=Status","content":"\u003cp\u003eamigaaaa\u003c/p\u003e","url":"http://localhost:3000/@admin/2","reblogs_count":0,"favourites_count":1,"favourited":true,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
68 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"1","created_at":"2017-07-01T17:10:58.379Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"sr","uri":"tag:localhost:3000,2017-07-01:objectId=1:objectType=Status","content":"\u003cp\u003ehello\u003c/p\u003e","url":"http://localhost:3000/@admin/1","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
69 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}]'} | ||
70 | headers: | ||
71 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
72 | Content-Type: [application/json; charset=utf-8] | ||
73 | ETag: [W/"d3d0161b0db4efda07ad225e9c3106de"] | ||
74 | Link: ['<http://localhost:3000/api/v1/timelines/home?max_id=1>; rel="next", | ||
75 | <http://localhost:3000/api/v1/timelines/home?since_id=99074150389153814>; | ||
76 | rel="prev"'] | ||
77 | Transfer-Encoding: [chunked] | ||
78 | Vary: ['Accept-Encoding, Origin'] | ||
79 | X-Content-Type-Options: [nosniff] | ||
80 | X-Frame-Options: [SAMEORIGIN] | ||
81 | X-Request-Id: [86f9b99a-d434-46f9-b082-fe0dbfb82021] | ||
82 | X-Runtime: ['0.456834'] | ||
83 | X-XSS-Protection: [1; mode=block] | ||
84 | content-length: ['21437'] | ||
85 | status: {code: 200, message: OK} | ||
86 | - request: | ||
87 | body: null | ||
88 | headers: | ||
89 | Accept: ['*/*'] | ||
90 | Accept-Encoding: ['gzip, deflate'] | ||
91 | Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] | ||
92 | Connection: [keep-alive] | ||
93 | Content-Length: ['0'] | ||
94 | User-Agent: [python-requests/2.18.4] | ||
95 | method: DELETE | ||
96 | uri: http://localhost:3000/api/v1/statuses/99074150389153814 | ||
97 | response: | ||
98 | body: {string: '{}'} | ||
99 | headers: | ||
100 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
101 | Content-Type: [application/json; charset=utf-8] | ||
102 | ETag: [W/"8886360f0986d9356a5cb01b56913bb3"] | ||
103 | Transfer-Encoding: [chunked] | ||
104 | Vary: ['Accept-Encoding, Origin'] | ||
105 | X-Content-Type-Options: [nosniff] | ||
106 | X-Frame-Options: [SAMEORIGIN] | ||
107 | X-Request-Id: [b3d99b8a-5814-4341-9822-94efd0e50881] | ||
108 | X-Runtime: ['0.022703'] | ||
109 | X-XSS-Protection: [1; mode=block] | ||
110 | content-length: ['2'] | ||
111 | status: {code: 200, message: OK} | ||
112 | version: 1 | ||
diff --git a/tests/cassettes/test_public_tl.yaml b/tests/cassettes/test_public_tl.yaml new file mode 100644 index 0000000..7f07d62 --- /dev/null +++ b/tests/cassettes/test_public_tl.yaml | |||
@@ -0,0 +1,112 @@ | |||
1 | interactions: | ||
2 | - request: | ||
3 | body: visibility=&status=Toot%21 | ||
4 | headers: | ||
5 | Accept: ['*/*'] | ||
6 | Accept-Encoding: ['gzip, deflate'] | ||
7 | Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] | ||
8 | Connection: [keep-alive] | ||
9 | Content-Length: ['26'] | ||
10 | Content-Type: [application/x-www-form-urlencoded] | ||
11 | User-Agent: [python-requests/2.18.4] | ||
12 | method: POST | ||
13 | uri: http://localhost:3000/api/v1/statuses | ||
14 | response: | ||
15 | body: {string: '{"id":"99074150343904058","created_at":"2017-11-27T02:59:21.653Z","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/99074150343904058","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@admin/99074150343904058","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 | ||
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":21},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | ||
18 | headers: | ||
19 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
20 | Content-Type: [application/json; charset=utf-8] | ||
21 | ETag: [W/"f7f3388008f593451d02e4ddc9ebd8b0"] | ||
22 | Transfer-Encoding: [chunked] | ||
23 | Vary: ['Accept-Encoding, Origin'] | ||
24 | X-Content-Type-Options: [nosniff] | ||
25 | X-Frame-Options: [SAMEORIGIN] | ||
26 | X-Request-Id: [c8849623-a545-4c89-9334-cf2f08b3654f] | ||
27 | X-Runtime: ['0.076757'] | ||
28 | X-XSS-Protection: [1; mode=block] | ||
29 | content-length: ['1216'] | ||
30 | status: {code: 200, message: OK} | ||
31 | - request: | ||
32 | body: null | ||
33 | headers: | ||
34 | Accept: ['*/*'] | ||
35 | Accept-Encoding: ['gzip, deflate'] | ||
36 | Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] | ||
37 | Connection: [keep-alive] | ||
38 | User-Agent: [python-requests/2.18.4] | ||
39 | method: GET | ||
40 | uri: http://localhost:3000/api/v1/timelines/public | ||
41 | response: | ||
42 | body: {string: '[{"id":"99074150343904058","created_at":"2017-11-27T02:59:21.653Z","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/99074150343904058","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@admin/99074150343904058","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
43 | 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 | ||
44 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"99001495355823477","created_at":"2017-11-14T07:02:14.631Z","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/99001495355823477","content":"\u003cp\u003echeck | ||
45 | this website out \u003ca href=\"https://www.google.com/\" rel=\"nofollow noopener\" | ||
46 | target=\"_blank\"\u003e\u003cspan class=\"invisible\"\u003ehttps://www.\u003c/span\u003e\u003cspan | ||
47 | class=\"\"\u003egoogle.com/\u003c/span\u003e\u003cspan class=\"invisible\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin/99001495355823477","reblogs_count":1,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
48 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"99001474318868985","created_at":"2017-11-14T06:56:53.605Z","in_reply_to_id":"98857859740548138","in_reply_to_account_id":"1","sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/99001474318868985","content":"\u003cp\u003eit | ||
49 | is me codl, hello\u003c/p\u003e","url":"http://localhost:3000/@admin/99001474318868985","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
50 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"99001443489597078","created_at":"2017-11-14T06:49:03.095Z","in_reply_to_id":"99001298568412948","in_reply_to_account_id":"1","sensitive":false,"spoiler_text":"","visibility":"public","language":"zh","uri":"http://localhost:3000/users/admin/statuses/99001443489597078","content":"\u003cp\u003ehhhh\u003c/p\u003e","url":"http://localhost:3000/@admin/99001443489597078","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
51 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"99001298568412948","created_at":"2017-11-14T06:12:11.874Z","in_reply_to_id":"98952033484245524","in_reply_to_account_id":"1","sensitive":false,"spoiler_text":"","visibility":"public","language":"sr","uri":"http://localhost:3000/users/admin/statuses/99001298568412948","content":"\u003cp\u003ehello\u003c/p\u003e","url":"http://localhost:3000/@admin/99001298568412948","reblogs_count":0,"favourites_count":1,"favourited":true,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
52 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"99001155403249389","created_at":"2017-11-14T05:35:47.388Z","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/99001155403249389","content":"\u003cp\u003ei | ||
53 | switched my robot off\u003c/p\u003e","url":"http://localhost:3000/@admin/99001155403249389","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
54 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"98952033484245524","created_at":"2017-11-05T13:23:26.252Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"cy","uri":"http://localhost:3000/users/admin/statuses/98952033484245524","content":"\u003cp\u003eim | ||
55 | a big dummy\u003c/p\u003e","url":"http://localhost:3000/@admin/98952033484245524","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
56 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"98952024438552459","created_at":"2017-11-05T13:21:08.228Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"gl","uri":"http://localhost:3000/users/admin/statuses/98952024438552459","content":"\u003cp\u003ebihhhhhhhhhhhhhhhh!!!!!\u003c/p\u003e","url":"http://localhost:3000/@admin/98952024438552459","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
57 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"98952023057752144","created_at":"2017-11-05T13:20:47.252Z","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/98952023057752144","content":"\u003cp\u003ebihhhhhh!!!!\u003c/p\u003e","url":"http://localhost:3000/@admin/98952023057752144","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
58 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"98952019628490365","created_at":"2017-11-05T13:19:54.925Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"su","uri":"http://localhost:3000/users/admin/statuses/98952019628490365","content":"\u003cp\u003ebih\u003c/p\u003e","url":"http://localhost:3000/@admin/98952019628490365","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
59 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"98857859740548138","created_at":"2017-10-19T22:13:49.019Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"sv","uri":"http://localhost:3000/users/admin/statuses/98857859740548138","content":"\u003cp\u003ehttp://localhost:3000/media/2KDfQL4FFYbvGCKAqy4\u003c/p\u003e","url":"http://localhost:3000/@admin/98857859740548138","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
60 | :)\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":20},"media_attachments":[{"id":"1","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/001/original/20b10ed1b3f75445.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/001/small/20b10ed1b3f75445.jpg","remote_url":null,"text_url":"http://localhost:3000/media/2KDfQL4FFYbvGCKAqy4","meta":{"original":{"width":500,"height":300,"size":"500x300","aspect":1.6666666666666667},"small":{"width":400,"height":240,"size":"400x240","aspect":1.6666666666666667}},"description":null}],"mentions":[],"tags":[],"emojis":[]},{"id":"98857736010757809","created_at":"2017-10-19T21:42:20.992Z","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/98857736010757809","content":"\u003cp\u003e\u003cspan | ||
61 | class=\"h-card\"\u003e\u003ca href=\"https://chitter.xyz/@codl\" class=\"u-url | ||
62 | mention\"\u003e@\u003cspan\u003ecodl\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
63 | bup\u003c/p\u003e","url":"http://localhost:3000/@admin/98857736010757809","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
64 | :)\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":20},"media_attachments":[],"mentions":[{"id":"2","username":"codl","url":"https://chitter.xyz/@codl","acct":"[email protected]"}],"tags":[],"emojis":[]},{"id":"98857696070095085","created_at":"2017-10-19T21:32:11.563Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"bs","uri":"http://localhost:3000/users/admin/statuses/98857696070095085","content":"\u003cp\u003eughh\u003c/p\u003e","url":"http://localhost:3000/@admin/98857696070095085","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
65 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"4","created_at":"2017-09-10T17:12:35.515Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":null,"uri":"http://localhost:3000/users/admin/statuses/4","content":"\u003cp\u003eh\u003c/p\u003e","url":"http://localhost:3000/@admin/4","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":true,"reblog":null,"application":{"name":"Web","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 | ||
66 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"3","created_at":"2017-09-10T10:36:56.774Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"uk","uri":"tag:localhost:3000,2017-09-10:objectId=3:objectType=Status","content":"\u003cp\u003eb\u003c/p\u003e","url":"http://localhost:3000/@admin/3","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
67 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"2","created_at":"2017-07-01T17:11:02.368Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"so","uri":"tag:localhost:3000,2017-07-01:objectId=2:objectType=Status","content":"\u003cp\u003eamigaaaa\u003c/p\u003e","url":"http://localhost:3000/@admin/2","reblogs_count":0,"favourites_count":1,"favourited":true,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
68 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"1","created_at":"2017-07-01T17:10:58.379Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"sr","uri":"tag:localhost:3000,2017-07-01:objectId=1:objectType=Status","content":"\u003cp\u003ehello\u003c/p\u003e","url":"http://localhost:3000/@admin/1","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Web","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 | ||
69 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}]'} | ||
70 | headers: | ||
71 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
72 | Content-Type: [application/json; charset=utf-8] | ||
73 | ETag: [W/"d2fa7b4dc5b37d8dfb906882930f24f3"] | ||
74 | Link: ['<http://localhost:3000/api/v1/timelines/public?max_id=1>; rel="next", | ||
75 | <http://localhost:3000/api/v1/timelines/public?since_id=99074150343904058>; | ||
76 | rel="prev"'] | ||
77 | Transfer-Encoding: [chunked] | ||
78 | Vary: ['Accept-Encoding, Origin'] | ||
79 | X-Content-Type-Options: [nosniff] | ||
80 | X-Frame-Options: [SAMEORIGIN] | ||
81 | X-Request-Id: [b483ee78-12f9-4231-a2f3-a217cbd0b304] | ||
82 | X-Runtime: ['0.297829'] | ||
83 | X-XSS-Protection: [1; mode=block] | ||
84 | content-length: ['21437'] | ||
85 | status: {code: 200, message: OK} | ||
86 | - request: | ||
87 | body: null | ||
88 | headers: | ||
89 | Accept: ['*/*'] | ||
90 | Accept-Encoding: ['gzip, deflate'] | ||
91 | Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] | ||
92 | Connection: [keep-alive] | ||
93 | Content-Length: ['0'] | ||
94 | User-Agent: [python-requests/2.18.4] | ||
95 | method: DELETE | ||
96 | uri: http://localhost:3000/api/v1/statuses/99074150343904058 | ||
97 | response: | ||
98 | body: {string: '{}'} | ||
99 | headers: | ||
100 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
101 | Content-Type: [application/json; charset=utf-8] | ||
102 | ETag: [W/"75144ef1858ee07800358c14137f5336"] | ||
103 | Transfer-Encoding: [chunked] | ||
104 | Vary: ['Accept-Encoding, Origin'] | ||
105 | X-Content-Type-Options: [nosniff] | ||
106 | X-Frame-Options: [SAMEORIGIN] | ||
107 | X-Request-Id: [f6c4edcf-f985-4dfd-90f9-977ae4b1ca44] | ||
108 | X-Runtime: ['0.021484'] | ||
109 | X-XSS-Protection: [1; mode=block] | ||
110 | content-length: ['2'] | ||
111 | status: {code: 200, message: OK} | ||
112 | version: 1 | ||
diff --git a/tests/cassettes/test_public_tl_anonymous.yaml b/tests/cassettes/test_public_tl_anonymous.yaml new file mode 100644 index 0000000..6d0f480 --- /dev/null +++ b/tests/cassettes/test_public_tl_anonymous.yaml | |||
@@ -0,0 +1,111 @@ | |||
1 | interactions: | ||
2 | - request: | ||
3 | body: visibility=&status=Toot%21 | ||
4 | headers: | ||
5 | Accept: ['*/*'] | ||
6 | Accept-Encoding: ['gzip, deflate'] | ||
7 | Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] | ||
8 | Connection: [keep-alive] | ||
9 | Content-Length: ['26'] | ||
10 | Content-Type: [application/x-www-form-urlencoded] | ||
11 | User-Agent: [python-requests/2.18.4] | ||
12 | method: POST | ||
13 | uri: http://localhost:3000/api/v1/statuses | ||
14 | response: | ||
15 | body: {string: '{"id":"99074150262979861","created_at":"2017-11-27T02:59:20.628Z","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/99074150262979861","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@admin/99074150262979861","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 | ||
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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | ||
18 | headers: | ||
19 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
20 | Content-Type: [application/json; charset=utf-8] | ||
21 | ETag: [W/"0387d8652d02d52164f88732a1b77bf1"] | ||
22 | Transfer-Encoding: [chunked] | ||
23 | Vary: ['Accept-Encoding, Origin'] | ||
24 | X-Content-Type-Options: [nosniff] | ||
25 | X-Frame-Options: [SAMEORIGIN] | ||
26 | X-Request-Id: [d1565536-599b-4333-8d65-19e6240c729d] | ||
27 | X-Runtime: ['0.828476'] | ||
28 | X-XSS-Protection: [1; mode=block] | ||
29 | content-length: ['1216'] | ||
30 | status: {code: 200, message: OK} | ||
31 | - request: | ||
32 | body: null | ||
33 | headers: | ||
34 | Accept: ['*/*'] | ||
35 | Accept-Encoding: ['gzip, deflate'] | ||
36 | Connection: [keep-alive] | ||
37 | User-Agent: [python-requests/2.18.4] | ||
38 | method: GET | ||
39 | uri: http://localhost:3000/api/v1/timelines/public | ||
40 | response: | ||
41 | body: {string: '[{"id":"99074150262979861","created_at":"2017-11-27T02:59:20.628Z","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/99074150262979861","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@admin/99074150262979861","reblogs_count":0,"favourites_count":0,"reblog":null,"application":{"name":"Mastodon.py | ||
42 | 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 | ||
43 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"99001495355823477","created_at":"2017-11-14T07:02:14.631Z","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/99001495355823477","content":"\u003cp\u003echeck | ||
44 | this website out \u003ca href=\"https://www.google.com/\" rel=\"nofollow noopener\" | ||
45 | target=\"_blank\"\u003e\u003cspan class=\"invisible\"\u003ehttps://www.\u003c/span\u003e\u003cspan | ||
46 | class=\"\"\u003egoogle.com/\u003c/span\u003e\u003cspan class=\"invisible\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin/99001495355823477","reblogs_count":1,"favourites_count":0,"reblog":null,"application":{"name":"Web","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 | ||
47 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"99001474318868985","created_at":"2017-11-14T06:56:53.605Z","in_reply_to_id":"98857859740548138","in_reply_to_account_id":"1","sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/99001474318868985","content":"\u003cp\u003eit | ||
48 | is me codl, hello\u003c/p\u003e","url":"http://localhost:3000/@admin/99001474318868985","reblogs_count":0,"favourites_count":0,"reblog":null,"application":{"name":"Web","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 | ||
49 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"99001443489597078","created_at":"2017-11-14T06:49:03.095Z","in_reply_to_id":"99001298568412948","in_reply_to_account_id":"1","sensitive":false,"spoiler_text":"","visibility":"public","language":"zh","uri":"http://localhost:3000/users/admin/statuses/99001443489597078","content":"\u003cp\u003ehhhh\u003c/p\u003e","url":"http://localhost:3000/@admin/99001443489597078","reblogs_count":0,"favourites_count":0,"reblog":null,"application":{"name":"Web","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 | ||
50 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"99001298568412948","created_at":"2017-11-14T06:12:11.874Z","in_reply_to_id":"98952033484245524","in_reply_to_account_id":"1","sensitive":false,"spoiler_text":"","visibility":"public","language":"sr","uri":"http://localhost:3000/users/admin/statuses/99001298568412948","content":"\u003cp\u003ehello\u003c/p\u003e","url":"http://localhost:3000/@admin/99001298568412948","reblogs_count":0,"favourites_count":1,"reblog":null,"application":{"name":"Web","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 | ||
51 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"99001155403249389","created_at":"2017-11-14T05:35:47.388Z","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/99001155403249389","content":"\u003cp\u003ei | ||
52 | switched my robot off\u003c/p\u003e","url":"http://localhost:3000/@admin/99001155403249389","reblogs_count":0,"favourites_count":0,"reblog":null,"application":{"name":"Web","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 | ||
53 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"98952033484245524","created_at":"2017-11-05T13:23:26.252Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"cy","uri":"http://localhost:3000/users/admin/statuses/98952033484245524","content":"\u003cp\u003eim | ||
54 | a big dummy\u003c/p\u003e","url":"http://localhost:3000/@admin/98952033484245524","reblogs_count":0,"favourites_count":0,"reblog":null,"application":{"name":"Web","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 | ||
55 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"98952024438552459","created_at":"2017-11-05T13:21:08.228Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"gl","uri":"http://localhost:3000/users/admin/statuses/98952024438552459","content":"\u003cp\u003ebihhhhhhhhhhhhhhhh!!!!!\u003c/p\u003e","url":"http://localhost:3000/@admin/98952024438552459","reblogs_count":0,"favourites_count":0,"reblog":null,"application":{"name":"Web","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 | ||
56 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"98952023057752144","created_at":"2017-11-05T13:20:47.252Z","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/98952023057752144","content":"\u003cp\u003ebihhhhhh!!!!\u003c/p\u003e","url":"http://localhost:3000/@admin/98952023057752144","reblogs_count":0,"favourites_count":0,"reblog":null,"application":{"name":"Web","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 | ||
57 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"98952019628490365","created_at":"2017-11-05T13:19:54.925Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"su","uri":"http://localhost:3000/users/admin/statuses/98952019628490365","content":"\u003cp\u003ebih\u003c/p\u003e","url":"http://localhost:3000/@admin/98952019628490365","reblogs_count":0,"favourites_count":0,"reblog":null,"application":{"name":"Web","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 | ||
58 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"98857859740548138","created_at":"2017-10-19T22:13:49.019Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"sv","uri":"http://localhost:3000/users/admin/statuses/98857859740548138","content":"\u003cp\u003ehttp://localhost:3000/media/2KDfQL4FFYbvGCKAqy4\u003c/p\u003e","url":"http://localhost:3000/@admin/98857859740548138","reblogs_count":0,"favourites_count":0,"reblog":null,"application":{"name":"Web","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 | ||
59 | :)\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":20},"media_attachments":[{"id":"1","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/001/original/20b10ed1b3f75445.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/001/small/20b10ed1b3f75445.jpg","remote_url":null,"text_url":"http://localhost:3000/media/2KDfQL4FFYbvGCKAqy4","meta":{"original":{"width":500,"height":300,"size":"500x300","aspect":1.6666666666666667},"small":{"width":400,"height":240,"size":"400x240","aspect":1.6666666666666667}},"description":null}],"mentions":[],"tags":[],"emojis":[]},{"id":"98857736010757809","created_at":"2017-10-19T21:42:20.992Z","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/98857736010757809","content":"\u003cp\u003e\u003cspan | ||
60 | class=\"h-card\"\u003e\u003ca href=\"https://chitter.xyz/@codl\" class=\"u-url | ||
61 | mention\"\u003e@\u003cspan\u003ecodl\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | ||
62 | bup\u003c/p\u003e","url":"http://localhost:3000/@admin/98857736010757809","reblogs_count":0,"favourites_count":0,"reblog":null,"application":{"name":"Web","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 | ||
63 | :)\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":20},"media_attachments":[],"mentions":[{"id":"2","username":"codl","url":"https://chitter.xyz/@codl","acct":"[email protected]"}],"tags":[],"emojis":[]},{"id":"98857696070095085","created_at":"2017-10-19T21:32:11.563Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"bs","uri":"http://localhost:3000/users/admin/statuses/98857696070095085","content":"\u003cp\u003eughh\u003c/p\u003e","url":"http://localhost:3000/@admin/98857696070095085","reblogs_count":0,"favourites_count":0,"reblog":null,"application":{"name":"Web","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 | ||
64 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"4","created_at":"2017-09-10T17:12:35.515Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":null,"uri":"http://localhost:3000/users/admin/statuses/4","content":"\u003cp\u003eh\u003c/p\u003e","url":"http://localhost:3000/@admin/4","reblogs_count":0,"favourites_count":0,"reblog":null,"application":{"name":"Web","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 | ||
65 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"3","created_at":"2017-09-10T10:36:56.774Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"uk","uri":"tag:localhost:3000,2017-09-10:objectId=3:objectType=Status","content":"\u003cp\u003eb\u003c/p\u003e","url":"http://localhost:3000/@admin/3","reblogs_count":0,"favourites_count":0,"reblog":null,"application":{"name":"Web","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 | ||
66 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"2","created_at":"2017-07-01T17:11:02.368Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"so","uri":"tag:localhost:3000,2017-07-01:objectId=2:objectType=Status","content":"\u003cp\u003eamigaaaa\u003c/p\u003e","url":"http://localhost:3000/@admin/2","reblogs_count":0,"favourites_count":1,"reblog":null,"application":{"name":"Web","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 | ||
67 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]},{"id":"1","created_at":"2017-07-01T17:10:58.379Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"sr","uri":"tag:localhost:3000,2017-07-01:objectId=1:objectType=Status","content":"\u003cp\u003ehello\u003c/p\u003e","url":"http://localhost:3000/@admin/1","reblogs_count":0,"favourites_count":0,"reblog":null,"application":{"name":"Web","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 | ||
68 | :)\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":20},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}]'} | ||
69 | headers: | ||
70 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
71 | Content-Type: [application/json; charset=utf-8] | ||
72 | ETag: [W/"0e502912a61e4aeac95fe41acfa35a57"] | ||
73 | Link: ['<http://localhost:3000/api/v1/timelines/public?max_id=1>; rel="next", | ||
74 | <http://localhost:3000/api/v1/timelines/public?since_id=99074150262979861>; | ||
75 | rel="prev"'] | ||
76 | Transfer-Encoding: [chunked] | ||
77 | Vary: ['Accept-Encoding, Origin'] | ||
78 | X-Content-Type-Options: [nosniff] | ||
79 | X-Frame-Options: [SAMEORIGIN] | ||
80 | X-Request-Id: [b8bce071-0a90-4e3a-b6fa-9c14cb652b19] | ||
81 | X-Runtime: ['0.530154'] | ||
82 | X-XSS-Protection: [1; mode=block] | ||
83 | content-length: ['20318'] | ||
84 | status: {code: 200, message: OK} | ||
85 | - request: | ||
86 | body: null | ||
87 | headers: | ||
88 | Accept: ['*/*'] | ||
89 | Accept-Encoding: ['gzip, deflate'] | ||
90 | Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] | ||
91 | Connection: [keep-alive] | ||
92 | Content-Length: ['0'] | ||
93 | User-Agent: [python-requests/2.18.4] | ||
94 | method: DELETE | ||
95 | uri: http://localhost:3000/api/v1/statuses/99074150262979861 | ||
96 | response: | ||
97 | body: {string: '{}'} | ||
98 | headers: | ||
99 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
100 | Content-Type: [application/json; charset=utf-8] | ||
101 | ETag: [W/"a4ddf36da225f8821cac7c5a7c856f2f"] | ||
102 | Transfer-Encoding: [chunked] | ||
103 | Vary: ['Accept-Encoding, Origin'] | ||
104 | X-Content-Type-Options: [nosniff] | ||
105 | X-Frame-Options: [SAMEORIGIN] | ||
106 | X-Request-Id: [716c93f9-dbac-464b-b7d1-1a22c0e4d8bf] | ||
107 | X-Runtime: ['0.059979'] | ||
108 | X-XSS-Protection: [1; mode=block] | ||
109 | content-length: ['2'] | ||
110 | status: {code: 200, message: OK} | ||
111 | version: 1 | ||