aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_hashtag_tl.yaml')
-rw-r--r--tests/cassettes/test_hashtag_tl.yaml91
1 files changed, 91 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 @@
1interactions:
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}
91version: 1
Powered by cgit v1.2.3 (git 2.41.0)