aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcodl <[email protected]>2017-11-27 22:52:19 +0100
committercodl <[email protected]>2017-11-27 22:52:19 +0100
commitc73fd26729e8266374bc89f50cae5c429bf6122e (patch)
tree698a340e691aa236ba1eed94971594762bdd2e56 /tests/cassettes/test_status_mute_unmute.yaml
parent26eb1004bba411345b8f8bb1beb72b6a9efbb954 (diff)
downloadmastodon.py-c73fd26729e8266374bc89f50cae5c429bf6122e.tar.gz
add tests for writing statuses
Diffstat (limited to 'tests/cassettes/test_status_mute_unmute.yaml')
-rw-r--r--tests/cassettes/test_status_mute_unmute.yaml113
1 files changed, 113 insertions, 0 deletions
diff --git a/tests/cassettes/test_status_mute_unmute.yaml b/tests/cassettes/test_status_mute_unmute.yaml
new file mode 100644
index 0000000..53dc79b
--- /dev/null
+++ b/tests/cassettes/test_status_mute_unmute.yaml
@@ -0,0 +1,113 @@
1interactions:
2- request:
3 body: visibility=&status=Toot%21
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_TOKEN]
8 Connection: [keep-alive]
9 Content-Length: ['26']
10 Content-Type: [application/x-www-form-urlencoded]
11 User-Agent: [python-requests/2.18.4]
12 method: POST
13 uri: http://localhost:3000/api/v1/statuses
14 response:
15 body: {string: '{"id":"99078602528624487","created_at":"2017-11-27T21:51:36.599Z","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/99078602528624487","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@admin/99078602528624487","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
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":39},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
18 headers:
19 Cache-Control: ['max-age=0, private, must-revalidate']
20 Content-Type: [application/json; charset=utf-8]
21 ETag: [W/"587ac5b3c9e247979cb93a70c1321328"]
22 Transfer-Encoding: [chunked]
23 Vary: ['Accept-Encoding, Origin']
24 X-Content-Type-Options: [nosniff]
25 X-Frame-Options: [SAMEORIGIN]
26 X-Request-Id: [129e95ff-57fa-4b79-9d95-8f40d2f74d06]
27 X-Runtime: ['0.058771']
28 X-XSS-Protection: [1; mode=block]
29 content-length: ['1216']
30 status: {code: 200, message: OK}
31- request:
32 body: null
33 headers:
34 Accept: ['*/*']
35 Accept-Encoding: ['gzip, deflate']
36 Authorization: [Bearer __MASTODON_PY_TEST_TOKEN]
37 Connection: [keep-alive]
38 Content-Length: ['0']
39 User-Agent: [python-requests/2.18.4]
40 method: POST
41 uri: http://localhost:3000/api/v1/statuses/99078602528624487/mute
42 response:
43 body: {string: '{"id":"99078602528624487","created_at":"2017-11-27T21:51:36.599Z","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/99078602528624487","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@admin/99078602528624487","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":true,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
44 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
45 :)\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":39},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
46 headers:
47 Cache-Control: ['max-age=0, private, must-revalidate']
48 Content-Type: [application/json; charset=utf-8]
49 ETag: [W/"cba613b7907e3005179e695cefdb271c"]
50 Transfer-Encoding: [chunked]
51 Vary: ['Accept-Encoding, Origin']
52 X-Content-Type-Options: [nosniff]
53 X-Frame-Options: [SAMEORIGIN]
54 X-Request-Id: [fe40452a-4726-4925-9f6f-b1ebb9236760]
55 X-Runtime: ['0.069400']
56 X-XSS-Protection: [1; mode=block]
57 content-length: ['1215']
58 status: {code: 200, message: OK}
59- request:
60 body: null
61 headers:
62 Accept: ['*/*']
63 Accept-Encoding: ['gzip, deflate']
64 Authorization: [Bearer __MASTODON_PY_TEST_TOKEN]
65 Connection: [keep-alive]
66 Content-Length: ['0']
67 User-Agent: [python-requests/2.18.4]
68 method: POST
69 uri: http://localhost:3000/api/v1/statuses/99078602528624487/unmute
70 response:
71 body: {string: '{"id":"99078602528624487","created_at":"2017-11-27T21:51:36.599Z","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/99078602528624487","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@admin/99078602528624487","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":"1","username":"admin","acct":"admin","display_name":"codltest","locked":false,"created_at":"2017-07-01T17:09:15.621Z","note":"\u003cp\u003ehello
73 :)\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":39},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
74 headers:
75 Cache-Control: ['max-age=0, private, must-revalidate']
76 Content-Type: [application/json; charset=utf-8]
77 ETag: [W/"587ac5b3c9e247979cb93a70c1321328"]
78 Transfer-Encoding: [chunked]
79 Vary: ['Accept-Encoding, Origin']
80 X-Content-Type-Options: [nosniff]
81 X-Frame-Options: [SAMEORIGIN]
82 X-Request-Id: [7c082341-b3f2-432a-848e-44e4a343bb75]
83 X-Runtime: ['0.071155']
84 X-XSS-Protection: [1; mode=block]
85 content-length: ['1216']
86 status: {code: 200, message: OK}
87- request:
88 body: null
89 headers:
90 Accept: ['*/*']
91 Accept-Encoding: ['gzip, deflate']
92 Authorization: [Bearer __MASTODON_PY_TEST_TOKEN]
93 Connection: [keep-alive]
94 Content-Length: ['0']
95 User-Agent: [python-requests/2.18.4]
96 method: DELETE
97 uri: http://localhost:3000/api/v1/statuses/99078602528624487
98 response:
99 body: {string: '{}'}
100 headers:
101 Cache-Control: ['max-age=0, private, must-revalidate']
102 Content-Type: [application/json; charset=utf-8]
103 ETag: [W/"e7d76440082320bd78d556c907de0f9b"]
104 Transfer-Encoding: [chunked]
105 Vary: ['Accept-Encoding, Origin']
106 X-Content-Type-Options: [nosniff]
107 X-Frame-Options: [SAMEORIGIN]
108 X-Request-Id: [29ac5b89-ac6f-41de-b554-9bbdd44d804d]
109 X-Runtime: ['0.018463']
110 X-XSS-Protection: [1; mode=block]
111 content-length: ['2']
112 status: {code: 200, message: OK}
113version: 1
Powered by cgit v1.2.3 (git 2.41.0)