aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-04-18 22:00:35 +0200
committerLorenz Diener <[email protected]>2018-04-18 22:00:35 +0200
commit64ec9e20987072692227d8817d9fd99d497fea5e (patch)
tree7c358d3ce80c30fd59af9e615e99824453eb2f8d /tests/cassettes/test_id_hook_in_reply_to.yaml
parenta825905b571697835d762ac63098491cbc4a0936 (diff)
downloadmastodon.py-64ec9e20987072692227d8817d9fd99d497fea5e.tar.gz
Update the tests
Diffstat (limited to 'tests/cassettes/test_id_hook_in_reply_to.yaml')
-rw-r--r--tests/cassettes/test_id_hook_in_reply_to.yaml70
1 files changed, 36 insertions, 34 deletions
diff --git a/tests/cassettes/test_id_hook_in_reply_to.yaml b/tests/cassettes/test_id_hook_in_reply_to.yaml
index ad73081..36eb20d 100644
--- a/tests/cassettes/test_id_hook_in_reply_to.yaml
+++ b/tests/cassettes/test_id_hook_in_reply_to.yaml
@@ -1,85 +1,87 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: visibility=&status=Toot%21 3 body: status=Toot%21
4 headers: 4 headers:
5 Accept: ['*/*'] 5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate'] 6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] 7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
8 Connection: [keep-alive] 8 Connection: [keep-alive]
9 Content-Length: ['26'] 9 Content-Length: ['14']
10 Content-Type: [application/x-www-form-urlencoded] 10 Content-Type: [application/x-www-form-urlencoded]
11 User-Agent: [python-requests/2.18.4] 11 User-Agent: [python-requests/2.9.1]
12 method: POST 12 method: POST
13 uri: http://localhost:3000/api/v1/statuses 13 uri: http://localhost:3000/api/v1/statuses
14 response: 14 response:
15 body: {string: '{"id":"99073771383398048","created_at":"2017-11-27T01:22:59.173Z","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/99073771383398048","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@admin/99073771383398048","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 15 body: {string: '{"id":"99882188005617641","created_at":"2018-04-18T19:53:57.892Z","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/99882188005617641","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882188005617641","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
16 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"codltest","locked":false,"created_at":"2017-07-01T17:09:15.621Z","note":"\u003cp\u003ehello 16 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
17 :)\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","avatar_static":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":21},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 17 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
18 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":0,"statuses_count":22},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
18 headers: 19 headers:
19 Cache-Control: ['max-age=0, private, must-revalidate'] 20 Cache-Control: ['max-age=0, private, must-revalidate']
20 Content-Type: [application/json; charset=utf-8] 21 Content-Type: [application/json; charset=utf-8]
21 ETag: [W/"ef586888eb13661bb1965e2a7d5f19c6"] 22 ETag: [W/"d3f787976e4b9b192e14820fd6c30a45"]
22 Transfer-Encoding: [chunked] 23 Transfer-Encoding: [chunked]
23 Vary: ['Accept-Encoding, Origin'] 24 Vary: ['Accept-Encoding, Origin']
24 X-Content-Type-Options: [nosniff] 25 X-Content-Type-Options: [nosniff]
25 X-Frame-Options: [SAMEORIGIN] 26 X-Frame-Options: [SAMEORIGIN]
26 X-Request-Id: [1e79a2e1-102f-492a-9dc6-b1e6a335f027] 27 X-Request-Id: [3f4f6189-c8f5-4b28-83c3-07a2fbe4ba64]
27 X-Runtime: ['0.080896'] 28 X-Runtime: ['0.313662']
28 X-XSS-Protection: [1; mode=block] 29 X-XSS-Protection: [1; mode=block]
29 content-length: ['1216'] 30 content-length: ['1397']
30 status: {code: 200, message: OK} 31 status: {code: 200, message: OK}
31- request: 32- request:
32 body: visibility=&in_reply_to_id=99073771383398048&status=Reply%21 33 body: status=Reply%21&in_reply_to_id=99882188005617641
33 headers: 34 headers:
34 Accept: ['*/*'] 35 Accept: ['*/*']
35 Accept-Encoding: ['gzip, deflate'] 36 Accept-Encoding: ['gzip, deflate']
36 Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] 37 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
37 Connection: [keep-alive] 38 Connection: [keep-alive]
38 Content-Length: ['60'] 39 Content-Length: ['48']
39 Content-Type: [application/x-www-form-urlencoded] 40 Content-Type: [application/x-www-form-urlencoded]
40 User-Agent: [python-requests/2.18.4] 41 User-Agent: [python-requests/2.9.1]
41 method: POST 42 method: POST
42 uri: http://localhost:3000/api/v1/statuses 43 uri: http://localhost:3000/api/v1/statuses
43 response: 44 response:
44 body: {string: '{"id":"99073771391086384","created_at":"2017-11-27T01:22:59.292Z","in_reply_to_id":"99073771383398048","in_reply_to_account_id":"1","sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/99073771391086384","content":"\u003cp\u003eReply!\u003c/p\u003e","url":"http://localhost:3000/@admin/99073771391086384","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 45 body: {string: '{"id":"99882188019557084","created_at":"2018-04-18T19:53:58.102Z","in_reply_to_id":"99882188005617641","in_reply_to_account_id":"1234567890123456","sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882188019557084","content":"\u003cp\u003eReply!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882188019557084","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
45 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 46 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
46 :)\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":22},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 47 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
48 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":0,"statuses_count":22},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
47 headers: 49 headers:
48 Cache-Control: ['max-age=0, private, must-revalidate'] 50 Cache-Control: ['max-age=0, private, must-revalidate']
49 Content-Type: [application/json; charset=utf-8] 51 Content-Type: [application/json; charset=utf-8]
50 ETag: [W/"f1b126b867555c13a93a5f6a48fa2912"] 52 ETag: [W/"1360daffb4950601c7132fe4c13e29d2"]
51 Transfer-Encoding: [chunked] 53 Transfer-Encoding: [chunked]
52 Vary: ['Accept-Encoding, Origin'] 54 Vary: ['Accept-Encoding, Origin']
53 X-Content-Type-Options: [nosniff] 55 X-Content-Type-Options: [nosniff]
54 X-Frame-Options: [SAMEORIGIN] 56 X-Frame-Options: [SAMEORIGIN]
55 X-Request-Id: [611432d3-60a5-4416-9028-1120419cd0c6] 57 X-Request-Id: [a631a731-1b05-46af-8ad2-c16fe7fd46b0]
56 X-Runtime: ['0.127749'] 58 X-Runtime: ['0.219624']
57 X-XSS-Protection: [1; mode=block] 59 X-XSS-Protection: [1; mode=block]
58 content-length: ['1231'] 60 content-length: ['1427']
59 status: {code: 200, message: OK} 61 status: {code: 200, message: OK}
60- request: 62- request:
61 body: null 63 body: null
62 headers: 64 headers:
63 Accept: ['*/*'] 65 Accept: ['*/*']
64 Accept-Encoding: ['gzip, deflate'] 66 Accept-Encoding: ['gzip, deflate']
65 Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] 67 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
66 Connection: [keep-alive] 68 Connection: [keep-alive]
67 Content-Length: ['0'] 69 Content-Length: ['0']
68 User-Agent: [python-requests/2.18.4] 70 User-Agent: [python-requests/2.9.1]
69 method: DELETE 71 method: DELETE
70 uri: http://localhost:3000/api/v1/statuses/99073771391086384 72 uri: http://localhost:3000/api/v1/statuses/99882188019557084
71 response: 73 response:
72 body: {string: '{}'} 74 body: {string: '{}'}
73 headers: 75 headers:
74 Cache-Control: ['max-age=0, private, must-revalidate'] 76 Cache-Control: ['max-age=0, private, must-revalidate']
75 Content-Type: [application/json; charset=utf-8] 77 Content-Type: [application/json; charset=utf-8]
76 ETag: [W/"352d49aa855575352cbfb0ba819dcde5"] 78 ETag: [W/"63a6b9430632d6621259069a020087b2"]
77 Transfer-Encoding: [chunked] 79 Transfer-Encoding: [chunked]
78 Vary: ['Accept-Encoding, Origin'] 80 Vary: ['Accept-Encoding, Origin']
79 X-Content-Type-Options: [nosniff] 81 X-Content-Type-Options: [nosniff]
80 X-Frame-Options: [SAMEORIGIN] 82 X-Frame-Options: [SAMEORIGIN]
81 X-Request-Id: [6262e8bc-2a6e-4c03-b4c9-4381f83e3a67] 83 X-Request-Id: [75523a1d-e349-465c-8c0c-882d6c2fcb70]
82 X-Runtime: ['0.030844'] 84 X-Runtime: ['0.039517']
83 X-XSS-Protection: [1; mode=block] 85 X-XSS-Protection: [1; mode=block]
84 content-length: ['2'] 86 content-length: ['2']
85 status: {code: 200, message: OK} 87 status: {code: 200, message: OK}
@@ -88,24 +90,24 @@ interactions:
88 headers: 90 headers:
89 Accept: ['*/*'] 91 Accept: ['*/*']
90 Accept-Encoding: ['gzip, deflate'] 92 Accept-Encoding: ['gzip, deflate']
91 Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] 93 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
92 Connection: [keep-alive] 94 Connection: [keep-alive]
93 Content-Length: ['0'] 95 Content-Length: ['0']
94 User-Agent: [python-requests/2.18.4] 96 User-Agent: [python-requests/2.9.1]
95 method: DELETE 97 method: DELETE
96 uri: http://localhost:3000/api/v1/statuses/99073771383398048 98 uri: http://localhost:3000/api/v1/statuses/99882188005617641
97 response: 99 response:
98 body: {string: '{}'} 100 body: {string: '{}'}
99 headers: 101 headers:
100 Cache-Control: ['max-age=0, private, must-revalidate'] 102 Cache-Control: ['max-age=0, private, must-revalidate']
101 Content-Type: [application/json; charset=utf-8] 103 Content-Type: [application/json; charset=utf-8]
102 ETag: [W/"352d49aa855575352cbfb0ba819dcde5"] 104 ETag: [W/"63a6b9430632d6621259069a020087b2"]
103 Transfer-Encoding: [chunked] 105 Transfer-Encoding: [chunked]
104 Vary: ['Accept-Encoding, Origin'] 106 Vary: ['Accept-Encoding, Origin']
105 X-Content-Type-Options: [nosniff] 107 X-Content-Type-Options: [nosniff]
106 X-Frame-Options: [SAMEORIGIN] 108 X-Frame-Options: [SAMEORIGIN]
107 X-Request-Id: [f362de58-ca39-4c4f-b89c-b2135f25a05f] 109 X-Request-Id: [6ff386ca-c8e5-41bc-9813-9b275cc0b97a]
108 X-Runtime: ['0.028984'] 110 X-Runtime: ['0.060172']
109 X-XSS-Protection: [1; mode=block] 111 X-XSS-Protection: [1; mode=block]
110 content-length: ['2'] 112 content-length: ['2']
111 status: {code: 200, message: OK} 113 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)