aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcodl <[email protected]>2017-11-30 00:56:35 +0100
committercodl <[email protected]>2017-11-30 00:56:35 +0100
commitf9a52029fc6d399c8fcd85a50060e0f5773da78e (patch)
treeb11bf113ab1bc6bd7ad57a5bed341b2243634a29 /tests/cassettes/test_account_mute_unmute.yaml
parent7464315be7c4a2790c83d1528f8d372ce15f0290 (diff)
downloadmastodon.py-f9a52029fc6d399c8fcd85a50060e0f5773da78e.tar.gz
add tests for account methods
Diffstat (limited to 'tests/cassettes/test_account_mute_unmute.yaml')
-rw-r--r--tests/cassettes/test_account_mute_unmute.yaml54
1 files changed, 54 insertions, 0 deletions
diff --git a/tests/cassettes/test_account_mute_unmute.yaml b/tests/cassettes/test_account_mute_unmute.yaml
new file mode 100644
index 0000000..16e70f8
--- /dev/null
+++ b/tests/cassettes/test_account_mute_unmute.yaml
@@ -0,0 +1,54 @@
1interactions:
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 Content-Length: ['0']
10 User-Agent: [python-requests/2.18.4]
11 method: POST
12 uri: http://localhost:3000/api/v1/accounts/1/mute
13 response:
14 body: {string: '{"id":"1","following":false,"followed_by":false,"blocking":false,"muting":true,"requested":false,"domain_blocking":false}'}
15 headers:
16 Cache-Control: ['max-age=0, private, must-revalidate']
17 Content-Type: [application/json; charset=utf-8]
18 ETag: [W/"29202955a4020108196abe86f9cd0179"]
19 Transfer-Encoding: [chunked]
20 Vary: ['Accept-Encoding, Origin']
21 X-Content-Type-Options: [nosniff]
22 X-Frame-Options: [SAMEORIGIN]
23 X-Request-Id: [45f28867-e291-4323-85fb-3f7a6f787a84]
24 X-Runtime: ['0.056882']
25 X-XSS-Protection: [1; mode=block]
26 content-length: ['121']
27 status: {code: 200, message: OK}
28- request:
29 body: null
30 headers:
31 Accept: ['*/*']
32 Accept-Encoding: ['gzip, deflate']
33 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
34 Connection: [keep-alive]
35 Content-Length: ['0']
36 User-Agent: [python-requests/2.18.4]
37 method: POST
38 uri: http://localhost:3000/api/v1/accounts/1/unmute
39 response:
40 body: {string: '{"id":"1","following":false,"followed_by":false,"blocking":false,"muting":false,"requested":false,"domain_blocking":false}'}
41 headers:
42 Cache-Control: ['max-age=0, private, must-revalidate']
43 Content-Type: [application/json; charset=utf-8]
44 ETag: [W/"05e46d89ddd4fee200b318b7343c32b4"]
45 Transfer-Encoding: [chunked]
46 Vary: ['Accept-Encoding, Origin']
47 X-Content-Type-Options: [nosniff]
48 X-Frame-Options: [SAMEORIGIN]
49 X-Request-Id: [2e3c386a-0ec4-46d6-9473-e47d242f91ce]
50 X-Runtime: ['0.041201']
51 X-XSS-Protection: [1; mode=block]
52 content-length: ['122']
53 status: {code: 200, message: OK}
54version: 1
Powered by cgit v1.2.3 (git 2.41.0)