aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_status_card.yaml')
-rw-r--r--tests/cassettes/test_status_card.yaml86
1 files changed, 86 insertions, 0 deletions
diff --git a/tests/cassettes/test_status_card.yaml b/tests/cassettes/test_status_card.yaml
new file mode 100644
index 0000000..fe9c863
--- /dev/null
+++ b/tests/cassettes/test_status_card.yaml
@@ -0,0 +1,86 @@
1interactions:
2- request:
3 body: status=http%3A%2F%2Fexample.org%2F
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
8 Connection: [keep-alive]
9 Content-Length: ['34']
10 Content-Type: [application/x-www-form-urlencoded]
11 User-Agent: [python-requests/2.9.1]
12 method: POST
13 uri: http://localhost:3000/api/v1/statuses
14 response:
15 body: {string: '{"id":"99882189848195232","created_at":"2018-04-18T19:54:26.044Z","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/99882189848195232","content":"\u003cp\u003e\u003ca
16 href=\"http://example.org/\" rel=\"nofollow noopener\" target=\"_blank\"\u003e\u003cspan
17 class=\"invisible\"\u003ehttp://\u003c/span\u003e\u003cspan class=\"\"\u003eexample.org/\u003c/span\u003e\u003cspan
18 class=\"invisible\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882189848195232","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
19 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
20 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
21 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":[]}'}
22 headers:
23 Cache-Control: ['max-age=0, private, must-revalidate']
24 Content-Type: [application/json; charset=utf-8]
25 ETag: [W/"253153c1717af3b3acd11df6d285ae9b"]
26 Transfer-Encoding: [chunked]
27 Vary: ['Accept-Encoding, Origin']
28 X-Content-Type-Options: [nosniff]
29 X-Frame-Options: [SAMEORIGIN]
30 X-Request-Id: [bf08abbf-c6e0-4476-8da0-5576e7280172]
31 X-Runtime: ['0.253183']
32 X-XSS-Protection: [1; mode=block]
33 content-length: ['1661']
34 status: {code: 200, message: OK}
35- request:
36 body: null
37 headers:
38 Accept: ['*/*']
39 Accept-Encoding: ['gzip, deflate']
40 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
41 Connection: [keep-alive]
42 User-Agent: [python-requests/2.9.1]
43 method: GET
44 uri: http://localhost:3000/api/v1/statuses/99882189848195232/card
45 response:
46 body: {string: '{"url":"http://example.org/","title":"Example Domain","description":"","type":"link","author_name":"","author_url":"","provider_name":"","provider_url":"","html":"","width":0,"height":0,"image":null,"embed_url":""}'}
47 headers:
48 Cache-Control: ['max-age=0, private, must-revalidate']
49 Content-Type: [application/json; charset=utf-8]
50 ETag: [W/"10bcdbc7fcdb1911122a58df5db01705"]
51 Transfer-Encoding: [chunked]
52 Vary: ['Accept-Encoding, Origin']
53 X-Content-Type-Options: [nosniff]
54 X-Frame-Options: [SAMEORIGIN]
55 X-Request-Id: [c5b10069-4462-405c-8234-c37ada09dd09]
56 X-Runtime: ['0.045802']
57 X-XSS-Protection: [1; mode=block]
58 content-length: ['214']
59 status: {code: 200, message: OK}
60- request:
61 body: null
62 headers:
63 Accept: ['*/*']
64 Accept-Encoding: ['gzip, deflate']
65 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
66 Connection: [keep-alive]
67 Content-Length: ['0']
68 User-Agent: [python-requests/2.9.1]
69 method: DELETE
70 uri: http://localhost:3000/api/v1/statuses/99882189848195232
71 response:
72 body: {string: '{}'}
73 headers:
74 Cache-Control: ['max-age=0, private, must-revalidate']
75 Content-Type: [application/json; charset=utf-8]
76 ETag: [W/"10fae6062cee5b66a8a919b681eeb41f"]
77 Transfer-Encoding: [chunked]
78 Vary: ['Accept-Encoding, Origin']
79 X-Content-Type-Options: [nosniff]
80 X-Frame-Options: [SAMEORIGIN]
81 X-Request-Id: [570be2af-98ec-4579-8ead-f016bc67fa03]
82 X-Runtime: ['0.056046']
83 X-XSS-Protection: [1; mode=block]
84 content-length: ['2']
85 status: {code: 200, message: OK}
86version: 1
Powered by cgit v1.2.3 (git 2.41.0)