diff options
Diffstat (limited to 'tests/cassettes/test_follow_request_reject.yaml')
-rw-r--r-- | tests/cassettes/test_follow_request_reject.yaml | 46 |
1 files changed, 37 insertions, 9 deletions
diff --git a/tests/cassettes/test_follow_request_reject.yaml b/tests/cassettes/test_follow_request_reject.yaml index 544b8cb..340fe07 100644 --- a/tests/cassettes/test_follow_request_reject.yaml +++ b/tests/cassettes/test_follow_request_reject.yaml | |||
@@ -1,6 +1,6 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: reblogs=1&id=1234567890123456 | 3 | body: reblogs=1&id=1234567890123457 |
4 | headers: | 4 | headers: |
5 | Accept: ['*/*'] | 5 | Accept: ['*/*'] |
6 | Accept-Encoding: ['gzip, deflate'] | 6 | Accept-Encoding: ['gzip, deflate'] |
@@ -10,9 +10,9 @@ interactions: | |||
10 | Content-Type: [application/x-www-form-urlencoded] | 10 | Content-Type: [application/x-www-form-urlencoded] |
11 | User-Agent: [python-requests/2.18.4] | 11 | User-Agent: [python-requests/2.18.4] |
12 | method: POST | 12 | method: POST |
13 | uri: http://localhost:3000/api/v1/accounts/1234567890123456/follow | 13 | uri: http://localhost:3000/api/v1/accounts/1234567890123457/follow |
14 | response: | 14 | response: |
15 | body: {string: '{"id":"1234567890123456","following":false,"showing_reblogs":true,"followed_by":true,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":true,"domain_blocking":false,"endorsed":false}'} | 15 | body: {string: '{"id":"1234567890123457","following":false,"showing_reblogs":true,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":true,"domain_blocking":false,"endorsed":false}'} |
16 | headers: | 16 | headers: |
17 | Cache-Control: ['no-cache, no-store'] | 17 | Cache-Control: ['no-cache, no-store'] |
18 | Content-Type: [application/json; charset=utf-8] | 18 | Content-Type: [application/json; charset=utf-8] |
@@ -23,17 +23,45 @@ interactions: | |||
23 | X-Download-Options: [noopen] | 23 | X-Download-Options: [noopen] |
24 | X-Frame-Options: [SAMEORIGIN] | 24 | X-Frame-Options: [SAMEORIGIN] |
25 | X-Permitted-Cross-Domain-Policies: [none] | 25 | X-Permitted-Cross-Domain-Policies: [none] |
26 | X-Request-Id: [59977bff-ff1e-492b-974a-3e9ec39a2488] | 26 | X-Request-Id: [ffd268f7-42f2-4ac2-be1c-4fdbf37201f5] |
27 | X-Runtime: ['0.055647'] | 27 | X-Runtime: ['0.047446'] |
28 | X-XSS-Protection: [1; mode=block] | 28 | X-XSS-Protection: [1; mode=block] |
29 | content-length: ['223'] | 29 | content-length: ['224'] |
30 | status: {code: 200, message: OK} | 30 | status: {code: 200, message: OK} |
31 | - request: | 31 | - request: |
32 | body: null | 32 | body: null |
33 | headers: | 33 | headers: |
34 | Accept: ['*/*'] | 34 | Accept: ['*/*'] |
35 | Accept-Encoding: ['gzip, deflate'] | 35 | Accept-Encoding: ['gzip, deflate'] |
36 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 36 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_3] |
37 | Connection: [keep-alive] | ||
38 | User-Agent: [python-requests/2.18.4] | ||
39 | method: GET | ||
40 | uri: http://localhost:3000/api/v1/follow_requests | ||
41 | response: | ||
42 | body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":3,"following_count":1,"statuses_count":16,"emojis":[],"fields":[]}]'} | ||
43 | headers: | ||
44 | Cache-Control: ['no-cache, no-store'] | ||
45 | Content-Type: [application/json; charset=utf-8] | ||
46 | Link: ['<http://localhost:3000/api/v1/follow_requests?since_id=15>; rel="prev"'] | ||
47 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
48 | Transfer-Encoding: [chunked] | ||
49 | Vary: ['Accept-Encoding, Origin'] | ||
50 | X-Content-Type-Options: [nosniff] | ||
51 | X-Download-Options: [noopen] | ||
52 | X-Frame-Options: [SAMEORIGIN] | ||
53 | X-Permitted-Cross-Domain-Policies: [none] | ||
54 | X-Request-Id: [7e5522d5-da66-4459-bda9-d035d175d9fb] | ||
55 | X-Runtime: ['0.048571'] | ||
56 | X-XSS-Protection: [1; mode=block] | ||
57 | content-length: ['526'] | ||
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_ACCESS_TOKEN_3] | ||
37 | Connection: [keep-alive] | 65 | Connection: [keep-alive] |
38 | Content-Length: ['0'] | 66 | Content-Length: ['0'] |
39 | User-Agent: [python-requests/2.18.4] | 67 | User-Agent: [python-requests/2.18.4] |
@@ -51,8 +79,8 @@ interactions: | |||
51 | X-Download-Options: [noopen] | 79 | X-Download-Options: [noopen] |
52 | X-Frame-Options: [SAMEORIGIN] | 80 | X-Frame-Options: [SAMEORIGIN] |
53 | X-Permitted-Cross-Domain-Policies: [none] | 81 | X-Permitted-Cross-Domain-Policies: [none] |
54 | X-Request-Id: [1ee3d0d0-b6d5-46cd-9e41-feca12bfbf95] | 82 | X-Request-Id: [e3763a66-ce27-454f-8530-dae785e6e569] |
55 | X-Runtime: ['0.033143'] | 83 | X-Runtime: ['0.031822'] |
56 | X-XSS-Protection: [1; mode=block] | 84 | X-XSS-Protection: [1; mode=block] |
57 | content-length: ['2'] | 85 | content-length: ['2'] |
58 | status: {code: 200, message: OK} | 86 | status: {code: 200, message: OK} |