diff options
Diffstat (limited to 'tests/cassettes/test_stream_user_local.yaml')
-rw-r--r-- | tests/cassettes/test_stream_user_local.yaml | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/tests/cassettes/test_stream_user_local.yaml b/tests/cassettes/test_stream_user_local.yaml new file mode 100644 index 0000000..c67b3e0 --- /dev/null +++ b/tests/cassettes/test_stream_user_local.yaml | |||
@@ -0,0 +1,90 @@ | |||
1 | interactions: | ||
2 | - request: | ||
3 | body: null | ||
4 | headers: | ||
5 | Accept: ['*/*'] | ||
6 | Accept-Encoding: ['gzip, deflate'] | ||
7 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
8 | Connection: [keep-alive] | ||
9 | User-Agent: [python-requests/2.9.1] | ||
10 | method: GET | ||
11 | uri: http://localhost:3000/api/v1/instance/ | ||
12 | response: | ||
13 | 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":176,"domain_count":0},"thumbnail":"http://localhost:3000/packs/preview.jpg","languages":["en"],"contact_account":null}'} | ||
14 | headers: | ||
15 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
16 | Content-Type: [application/json; charset=utf-8] | ||
17 | ETag: [W/"e7438609654ceaf29ee8473be78c6782"] | ||
18 | Transfer-Encoding: [chunked] | ||
19 | Vary: ['Accept-Encoding, Origin'] | ||
20 | X-Content-Type-Options: [nosniff] | ||
21 | X-Frame-Options: [SAMEORIGIN] | ||
22 | X-Request-Id: [538a00d7-e3d9-40ab-b4a7-5ebe31b49edf] | ||
23 | X-Runtime: ['0.111461'] | ||
24 | X-XSS-Protection: [1; mode=block] | ||
25 | content-length: ['293'] | ||
26 | status: {code: 200, message: OK} | ||
27 | - request: | ||
28 | body: status=it%27s+cool+guy | ||
29 | headers: | ||
30 | Accept: ['*/*'] | ||
31 | Accept-Encoding: ['gzip, deflate'] | ||
32 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
33 | Connection: [keep-alive] | ||
34 | Content-Length: ['22'] | ||
35 | Content-Type: [application/x-www-form-urlencoded] | ||
36 | User-Agent: [python-requests/2.9.1] | ||
37 | method: POST | ||
38 | uri: http://localhost:3000/api/v1/statuses | ||
39 | response: | ||
40 | body: {string: '{"id":"99979654724997948","created_at":"2018-05-06T01:01:01.999Z","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/99979654724997948","content":"\u003cp\u003eit\u0026apos;s | ||
41 | cool guy\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979654724997948","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
42 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
43 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI | ||
44 | 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":129},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | ||
45 | headers: | ||
46 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
47 | Content-Type: [application/json; charset=utf-8] | ||
48 | ETag: [W/"ae8929212adac738456aad6638db6a8b"] | ||
49 | Transfer-Encoding: [chunked] | ||
50 | Vary: ['Accept-Encoding, Origin'] | ||
51 | X-Content-Type-Options: [nosniff] | ||
52 | X-Frame-Options: [SAMEORIGIN] | ||
53 | X-Request-Id: [77dcd227-6ee2-4358-a2de-6cc958590e0b] | ||
54 | X-Runtime: ['0.131181'] | ||
55 | X-XSS-Protection: [1; mode=block] | ||
56 | content-length: ['1420'] | ||
57 | status: {code: 200, message: OK} | ||
58 | - request: | ||
59 | body: null | ||
60 | headers: | ||
61 | Accept: ['*/*'] | ||
62 | Accept-Encoding: ['gzip, deflate'] | ||
63 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
64 | Connection: [keep-alive] | ||
65 | User-Agent: [python-requests/2.9.1] | ||
66 | method: GET | ||
67 | uri: http://localhost:4000/api/v1/streaming/user | ||
68 | response: | ||
69 | body: {string: 'event: update | ||
70 | |||
71 | data: {"id":"99979654724997948","created_at":"2018-05-06T01:01:01.999Z","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/99979654724997948","content":"<p>it's | ||
72 | cool guy</p>","url":"http://localhost:3000/@mastodonpy_test/99979654724997948","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
73 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
74 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"<p>I | ||
75 | 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":129},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]} | ||
76 | |||
77 | |||
78 | '} | ||
79 | headers: | ||
80 | Access-Control-Allow-Headers: ['Authorization, Accept, Cache-Control'] | ||
81 | Access-Control-Allow-Methods: ['GET, OPTIONS'] | ||
82 | Access-Control-Allow-Origin: ['*'] | ||
83 | Connection: [keep-alive] | ||
84 | Content-Type: [text/event-stream] | ||
85 | Date: ['Sun, 06 May 2018 01:01:02 GMT'] | ||
86 | Transfer-Encoding: [chunked] | ||
87 | X-Powered-By: [Express] | ||
88 | X-Request-Id: [05121de6-5df0-4cac-a32b-a5830a322c71] | ||
89 | status: {code: 200, message: OK} | ||
90 | version: 1 | ||