diff options
author | Lorenz Diener <[email protected]> | 2018-04-18 22:07:03 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-04-18 22:07:03 +0200 |
commit | bc7b9defe8b72b6ab14ade6828a98f4d6e82b1de (patch) | |
tree | 6cd17b03100aa61c1d0a224771577601a1851f59 /tests/cassettes/test_id_hook.yaml | |
parent | 64ec9e20987072692227d8817d9fd99d497fea5e (diff) | |
download | mastodon.py-bc7b9defe8b72b6ab14ade6828a98f4d6e82b1de.tar.gz |
Attempt 2 at fixing the tests for travis
Diffstat (limited to 'tests/cassettes/test_id_hook.yaml')
-rw-r--r-- | tests/cassettes/test_id_hook.yaml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/tests/cassettes/test_id_hook.yaml b/tests/cassettes/test_id_hook.yaml index c05dc0b..02e5d2a 100644 --- a/tests/cassettes/test_id_hook.yaml +++ b/tests/cassettes/test_id_hook.yaml | |||
@@ -55,4 +55,60 @@ interactions: | |||
55 | X-XSS-Protection: [1; mode=block] | 55 | X-XSS-Protection: [1; mode=block] |
56 | content-length: ['2'] | 56 | content-length: ['2'] |
57 | status: {code: 200, message: OK} | 57 | status: {code: 200, message: OK} |
58 | - request: | ||
59 | body: status=Toot%21 | ||
60 | headers: | ||
61 | Accept: ['*/*'] | ||
62 | Accept-Encoding: ['gzip, deflate'] | ||
63 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
64 | Connection: [keep-alive] | ||
65 | Content-Length: ['14'] | ||
66 | Content-Type: [application/x-www-form-urlencoded] | ||
67 | User-Agent: [python-requests/2.9.1] | ||
68 | method: POST | ||
69 | uri: http://localhost:3000/api/v1/statuses | ||
70 | response: | ||
71 | body: {string: '{"id":"99882232417726746","created_at":"2018-04-18T20:05:15.583Z","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/99882232417726746","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882232417726746","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
72 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
73 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI | ||
74 | 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_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":21},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | ||
75 | headers: | ||
76 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
77 | Content-Type: [application/json; charset=utf-8] | ||
78 | ETag: [W/"8de57c43182bffbd85ed2bbfe239d03d"] | ||
79 | Transfer-Encoding: [chunked] | ||
80 | Vary: ['Accept-Encoding, Origin'] | ||
81 | X-Content-Type-Options: [nosniff] | ||
82 | X-Frame-Options: [SAMEORIGIN] | ||
83 | X-Request-Id: [03e75951-0591-4d65-b222-6bbfec41fa7d] | ||
84 | X-Runtime: ['0.279859'] | ||
85 | X-XSS-Protection: [1; mode=block] | ||
86 | content-length: ['1397'] | ||
87 | status: {code: 200, message: OK} | ||
88 | - request: | ||
89 | body: null | ||
90 | headers: | ||
91 | Accept: ['*/*'] | ||
92 | Accept-Encoding: ['gzip, deflate'] | ||
93 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
94 | Connection: [keep-alive] | ||
95 | Content-Length: ['0'] | ||
96 | User-Agent: [python-requests/2.9.1] | ||
97 | method: DELETE | ||
98 | uri: http://localhost:3000/api/v1/statuses/99882232417726746 | ||
99 | response: | ||
100 | body: {string: '{}'} | ||
101 | headers: | ||
102 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
103 | Content-Type: [application/json; charset=utf-8] | ||
104 | ETag: [W/"2859fb535f776272374bed83fa976212"] | ||
105 | Transfer-Encoding: [chunked] | ||
106 | Vary: ['Accept-Encoding, Origin'] | ||
107 | X-Content-Type-Options: [nosniff] | ||
108 | X-Frame-Options: [SAMEORIGIN] | ||
109 | X-Request-Id: [3f7273ae-0a4d-42ad-9633-816307b2deda] | ||
110 | X-Runtime: ['0.046179'] | ||
111 | X-XSS-Protection: [1; mode=block] | ||
112 | content-length: ['2'] | ||
113 | status: {code: 200, message: OK} | ||
58 | version: 1 | 114 | version: 1 |