aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_account_follow_unfollow.yaml')
-rw-r--r--tests/cassettes/test_account_follow_unfollow.yaml163
1 files changed, 117 insertions, 46 deletions
diff --git a/tests/cassettes/test_account_follow_unfollow.yaml b/tests/cassettes/test_account_follow_unfollow.yaml
index 6714867..4564f68 100644
--- a/tests/cassettes/test_account_follow_unfollow.yaml
+++ b/tests/cassettes/test_account_follow_unfollow.yaml
@@ -1,59 +1,130 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: reblogs=1&id=1 3 body: id=1234567890123457&reblogs=1
4 headers: 4 headers:
5 Accept: ['*/*'] 5 Accept:
6 Accept-Encoding: ['gzip, deflate'] 6 - '*/*'
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 7 Accept-Encoding:
8 Connection: [keep-alive] 8 - gzip, deflate
9 Content-Length: ['14'] 9 Authorization:
10 Content-Type: [application/x-www-form-urlencoded] 10 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
11 User-Agent: [python-requests/2.18.4] 11 Connection:
12 - keep-alive
13 Content-Length:
14 - '29'
15 Content-Type:
16 - application/x-www-form-urlencoded
17 User-Agent:
18 - tests/v311
12 method: POST 19 method: POST
13 uri: http://localhost:3000/api/v1/accounts/1/follow 20 uri: http://localhost:3000/api/v1/accounts/1234567890123457/follow
14 response: 21 response:
15 body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'} 22 body:
23 string: '{"id":"1234567890123457","following":true,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}'
16 headers: 24 headers:
17 Cache-Control: ['no-cache, no-store'] 25 Cache-Control:
18 Content-Type: [application/json; charset=utf-8] 26 - no-store
19 Referrer-Policy: [strict-origin-when-cross-origin] 27 Content-Security-Policy:
20 Transfer-Encoding: [chunked] 28 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
21 Vary: ['Accept-Encoding, Origin'] 29 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
22 X-Content-Type-Options: [nosniff] 30 style-src ''self'' http://localhost:3000 ''nonce-S201PEcCD1lfwJctUZA9LQ=='';
23 X-Download-Options: [noopen] 31 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
24 X-Frame-Options: [SAMEORIGIN] 32 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
25 X-Permitted-Cross-Domain-Policies: [none] 33 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
26 X-Request-Id: [87edd322-d583-4d0b-ab9c-721f2bda24eb] 34 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
27 X-Runtime: ['0.160193'] 35 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
28 X-XSS-Protection: [1; mode=block] 36 worker-src ''self'' blob: http://localhost:3000'
29 content-length: ['209'] 37 Content-Type:
30 status: {code: 200, message: OK} 38 - application/json; charset=utf-8
39 ETag:
40 - W/"7b35423f935b37a7249f9bee1e0f4eb5"
41 Referrer-Policy:
42 - strict-origin-when-cross-origin
43 Transfer-Encoding:
44 - chunked
45 Vary:
46 - Accept, Origin
47 X-Content-Type-Options:
48 - nosniff
49 X-Download-Options:
50 - noopen
51 X-Frame-Options:
52 - SAMEORIGIN
53 X-Permitted-Cross-Domain-Policies:
54 - none
55 X-RateLimit-Limit:
56 - '400'
57 X-RateLimit-Remaining:
58 - '398'
59 X-RateLimit-Reset:
60 - '2022-11-08T00:00:00.610222Z'
61 X-Request-Id:
62 - bc8aee88-fe79-4633-93b0-0afb2c5ed64d
63 X-Runtime:
64 - '0.048402'
65 X-XSS-Protection:
66 - 1; mode=block
67 status:
68 code: 200
69 message: OK
31- request: 70- request:
32 body: null 71 body: null
33 headers: 72 headers:
34 Accept: ['*/*'] 73 Accept:
35 Accept-Encoding: ['gzip, deflate'] 74 - '*/*'
36 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 75 Accept-Encoding:
37 Connection: [keep-alive] 76 - gzip, deflate
38 Content-Length: ['0'] 77 Authorization:
39 User-Agent: [python-requests/2.18.4] 78 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
79 Connection:
80 - keep-alive
81 Content-Length:
82 - '0'
83 User-Agent:
84 - tests/v311
40 method: POST 85 method: POST
41 uri: http://localhost:3000/api/v1/accounts/1/unfollow 86 uri: http://localhost:3000/api/v1/accounts/1234567890123457/unfollow
42 response: 87 response:
43 body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'} 88 body:
89 string: '{"id":"1234567890123457","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}'
44 headers: 90 headers:
45 Cache-Control: ['no-cache, no-store'] 91 Cache-Control:
46 Content-Type: [application/json; charset=utf-8] 92 - no-store
47 Referrer-Policy: [strict-origin-when-cross-origin] 93 Content-Security-Policy:
48 Transfer-Encoding: [chunked] 94 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
49 Vary: ['Accept-Encoding, Origin'] 95 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
50 X-Content-Type-Options: [nosniff] 96 style-src ''self'' http://localhost:3000 ''nonce-v1EOH3UJtmzE96d0J4nNOQ=='';
51 X-Download-Options: [noopen] 97 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
52 X-Frame-Options: [SAMEORIGIN] 98 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
53 X-Permitted-Cross-Domain-Policies: [none] 99 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
54 X-Request-Id: [99c4beef-84c9-4316-8606-5d722cc2e58f] 100 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
55 X-Runtime: ['0.171694'] 101 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
56 X-XSS-Protection: [1; mode=block] 102 worker-src ''self'' blob: http://localhost:3000'
57 content-length: ['211'] 103 Content-Type:
58 status: {code: 200, message: OK} 104 - application/json; charset=utf-8
105 ETag:
106 - W/"25b4d9d745f6bc92c8314562f7461bc8"
107 Referrer-Policy:
108 - strict-origin-when-cross-origin
109 Transfer-Encoding:
110 - chunked
111 Vary:
112 - Accept, Origin
113 X-Content-Type-Options:
114 - nosniff
115 X-Download-Options:
116 - noopen
117 X-Frame-Options:
118 - SAMEORIGIN
119 X-Permitted-Cross-Domain-Policies:
120 - none
121 X-Request-Id:
122 - 6d69866a-0634-41b6-b5a1-5d3c3844d1d5
123 X-Runtime:
124 - '0.029893'
125 X-XSS-Protection:
126 - 1; mode=block
127 status:
128 code: 200
129 message: OK
59version: 1 130version: 1
Powered by cgit v1.2.3 (git 2.41.0)