Mastodonplus.py/tests/cassettes/test_stream_user_local.yaml

142 líneas
8,2 KiB
YAML
Original Vista normal Històric

2018-05-06 02:00:18 +02:00
interactions:
2018-05-07 00:53:13 +02:00
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
Connection: [keep-alive]
User-Agent: [python-requests/2.9.1]
method: GET
uri: http://localhost:3000/api/v1/accounts/verify_credentials
response:
body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-05-06T22:36:57.850Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":10,"source":{"privacy":"public","sensitive":false,"note":""}}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
ETag: [W/"15c11dfc23cf2cda445184d5e8460fcf"]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
X-Request-Id: [f82c5ff8-4dba-43bc-980e-07c37116b8e0]
X-Runtime: ['0.044216']
X-XSS-Protection: [1; mode=block]
content-length: ['571']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
Connection: [keep-alive]
Content-Length: ['0']
User-Agent: [python-requests/2.9.1]
method: POST
uri: http://localhost:3000/api/v1/accounts/1/unfollow
response:
body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
ETag: [W/"c63a2050dda59236b6c2a15e05a92893"]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
X-Request-Id: [9fd55e86-9eed-4329-a340-bc7ffe21a669]
X-Runtime: ['0.059000']
X-XSS-Protection: [1; mode=block]
content-length: ['175']
status: {code: 200, message: OK}
2018-05-06 02:00:18 +02:00
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
User-Agent: [python-requests/2.9.1]
method: GET
uri: http://localhost:3000/api/v1/instance/
response:
2018-05-07 00:53:13 +02:00
body: {string: '{"uri":"localhost:3000","title":"Mastodon","description":"","email":"","version":"2.3.3","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":2,"status_count":13,"domain_count":0},"thumbnail":"http://localhost:3000/packs/preview.jpg","languages":["en"],"contact_account":null}'}
2018-05-06 02:00:18 +02:00
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-05-07 00:53:13 +02:00
ETag: [W/"421c4f340027980c909b39b22002b1f4"]
2018-05-06 02:00:18 +02:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
2018-05-07 00:53:13 +02:00
X-Request-Id: [ffbc4aa1-8af6-4b46-b366-05aa2d3c0d6c]
X-Runtime: ['0.056935']
2018-05-06 02:00:18 +02:00
X-XSS-Protection: [1; mode=block]
2018-05-07 00:53:13 +02:00
content-length: ['292']
2018-05-06 02:00:18 +02:00
status: {code: 200, message: OK}
- request:
body: status=it%27s+cool+guy
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
Content-Length: ['22']
Content-Type: [application/x-www-form-urlencoded]
User-Agent: [python-requests/2.9.1]
method: POST
uri: http://localhost:3000/api/v1/statuses
response:
2018-05-07 00:53:13 +02:00
body: {string: '{"id":"99984807248835180","created_at":"2018-05-06T22:51:23.283Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"fy","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99984807248835180","content":"\u003cp\u003eit\u0026apos;s
cool guy\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984807248835180","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
2018-05-06 02:00:18 +02:00
test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
2018-05-07 00:53:13 +02:00
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":4},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
2018-05-06 02:00:18 +02:00
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-05-07 00:53:13 +02:00
ETag: [W/"214f5dbab17261b078dbd3e22cf8dd0a"]
2018-05-06 02:00:18 +02:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
2018-05-07 00:53:13 +02:00
X-Request-Id: [721d894f-4f7b-428a-8da6-a8a010460196]
X-Runtime: ['0.209618']
2018-05-06 02:00:18 +02:00
X-XSS-Protection: [1; mode=block]
2018-05-07 00:53:13 +02:00
content-length: ['1418']
2018-05-06 02:00:18 +02:00
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
User-Agent: [python-requests/2.9.1]
method: GET
uri: http://localhost:4000/api/v1/streaming/user
response:
body: {string: 'event: update
2018-05-07 00:53:13 +02:00
data: {"id":"99984807248835180","created_at":"2018-05-06T22:51:23.283Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"fy","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99984807248835180","content":"<p>it&apos;s
cool guy</p>","url":"http://localhost:3000/@mastodonpy_test/99984807248835180","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
2018-05-06 02:00:18 +02:00
test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
2018-05-07 00:53:13 +02:00
Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"<p>I
walk funny</p>","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":4},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}
2018-05-06 02:00:18 +02:00
'}
headers:
Access-Control-Allow-Headers: ['Authorization, Accept, Cache-Control']
Access-Control-Allow-Methods: ['GET, OPTIONS']
Access-Control-Allow-Origin: ['*']
Connection: [keep-alive]
Content-Type: [text/event-stream]
2018-05-07 00:53:13 +02:00
Date: ['Sun, 06 May 2018 22:51:23 GMT']
2018-05-06 02:00:18 +02:00
Transfer-Encoding: [chunked]
X-Powered-By: [Express]
2018-05-07 00:53:13 +02:00
X-Request-Id: [84741f72-f229-42ff-832c-8f1c4f1425bb]
2018-05-06 02:00:18 +02:00
status: {code: 200, message: OK}
version: 1