From 18c6b3b90ff8bd607df18af86d092ac1205ffbf7 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Tue, 5 Jun 2018 22:10:31 +0200 Subject: New casettes, small fixes --- tests/cassettes/test_id_hook_in_reply_to.yaml | 60 ++++++++++++++++----------- 1 file changed, 36 insertions(+), 24 deletions(-) (limited to 'tests/cassettes/test_id_hook_in_reply_to.yaml') diff --git a/tests/cassettes/test_id_hook_in_reply_to.yaml b/tests/cassettes/test_id_hook_in_reply_to.yaml index b08984e..49ce9d2 100644 --- a/tests/cassettes/test_id_hook_in_reply_to.yaml +++ b/tests/cassettes/test_id_hook_in_reply_to.yaml @@ -12,52 +12,58 @@ interactions: method: POST uri: http://localhost:3000/api/v1/statuses response: - body: {string: '{"id":"99984770571080110","created_at":"2018-05-06T22:42:03.626Z","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/99984770571080110","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984770571080110","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py + body: {string: '{"id":"100154005043647299","created_at":"2018-06-05T20:00:36.812Z","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/100154005043647299","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100154005043647299","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John - Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI - 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_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":2},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} + Lennon","locked":true,"bot":false,"created_at":"2018-06-05T21:58:43.069Z","note":"\u003cp\u003eI + 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":2,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"3381df07e2c2fd4496641032a7059df4"] + ETag: [W/"4b2ed835f8a6807bd881934298f025b8"] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [65ebb470-d9b4-44b7-8848-453da7931247] - X-Runtime: ['0.371388'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [3449f1d3-e040-4003-8b51-630fbc121611] + X-Runtime: ['0.664248'] X-XSS-Protection: [1; mode=block] - content-length: ['1400'] + content-length: ['1504'] status: {code: 200, message: OK} - request: - body: status=Reply%21&in_reply_to_id=99984770571080110 + body: status=Reply%21&in_reply_to_id=100154005043647299 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] Connection: [keep-alive] - Content-Length: ['48'] + Content-Length: ['49'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST uri: http://localhost:3000/api/v1/statuses response: - body: {string: '{"id":"99984770599740284","created_at":"2018-05-06T22:42:04.050Z","in_reply_to_id":"99984770571080110","in_reply_to_account_id":"1234567890123456","sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99984770599740284","content":"\u003cp\u003eReply!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984770599740284","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py + body: {string: '{"id":"100154005096704419","created_at":"2018-06-05T20:00:37.585Z","in_reply_to_id":"100154005043647299","in_reply_to_account_id":"1234567890123456","sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/100154005096704419","content":"\u003cp\u003eReply!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100154005096704419","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John - Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI - 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_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":3},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} + Lennon","locked":true,"bot":false,"created_at":"2018-06-05T21:58:43.069Z","note":"\u003cp\u003eI + 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":3,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"b75638d6371f7dff9244a5904f1fb696"] + ETag: [W/"064619df5c2309821511deed386adba7"] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [728dfa8b-0ffb-4c4f-a1b5-28560eba4de1] - X-Runtime: ['0.352035'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [0dcc255f-c628-4753-932a-837a67fb6c77] + X-Runtime: ['1.483628'] X-XSS-Protection: [1; mode=block] - content-length: ['1430'] + content-length: ['1535'] status: {code: 200, message: OK} - request: body: null @@ -69,19 +75,22 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.9.1] method: DELETE - uri: http://localhost:3000/api/v1/statuses/99984770599740284 + uri: http://localhost:3000/api/v1/statuses/100154005096704419 response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"0c1a6f73b62143b70de48849d6c61a43"] + ETag: [W/"3e9213ff658dfd16d6544d0e26f1361d"] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [0a0d1c75-4183-49dc-ac60-ab0c4c2e846a] - X-Runtime: ['0.283850'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [84215267-ed1c-43d5-b43f-b5b946614be3] + X-Runtime: ['0.350299'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -95,19 +104,22 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.9.1] method: DELETE - uri: http://localhost:3000/api/v1/statuses/99984770571080110 + uri: http://localhost:3000/api/v1/statuses/100154005043647299 response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"0c1a6f73b62143b70de48849d6c61a43"] + ETag: [W/"3e9213ff658dfd16d6544d0e26f1361d"] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [d0e7f2af-19bb-4a26-b530-8280b1ebef77] - X-Runtime: ['0.110012'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [8f9822bf-120b-4284-b2f2-624a04f85c90] + X-Runtime: ['0.227419'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3