diff options
Diffstat (limited to 'tests/cassettes/test_follow_request_authorize.yaml')
-rw-r--r-- | tests/cassettes/test_follow_request_authorize.yaml | 56 |
1 files changed, 42 insertions, 14 deletions
diff --git a/tests/cassettes/test_follow_request_authorize.yaml b/tests/cassettes/test_follow_request_authorize.yaml index 0251f20..af80fe5 100644 --- a/tests/cassettes/test_follow_request_authorize.yaml +++ b/tests/cassettes/test_follow_request_authorize.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: [3c7c2336-4d16-44ad-aa44-57703a7f1120] | 26 | X-Request-Id: [b09b8258-e503-42a3-aa4e-900770f56a0b] |
27 | X-Runtime: ['0.111889'] | 27 | X-Runtime: ['0.057911'] |
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=14>; 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: [e760a93c-da2b-4357-8944-153d5f20b84c] | ||
55 | X-Runtime: ['0.046723'] | ||
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: [8a412763-0a24-4fd4-a744-491411068af6] | 82 | X-Request-Id: [6b5c7f8f-1153-4d3e-a1e2-3d5a723efd17] |
55 | X-Runtime: ['0.101909'] | 83 | X-Runtime: ['0.100847'] |
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} |
@@ -66,9 +94,9 @@ interactions: | |||
66 | Content-Length: ['0'] | 94 | Content-Length: ['0'] |
67 | User-Agent: [python-requests/2.18.4] | 95 | User-Agent: [python-requests/2.18.4] |
68 | method: POST | 96 | method: POST |
69 | uri: http://localhost:3000/api/v1/accounts/1234567890123456/unfollow | 97 | uri: http://localhost:3000/api/v1/accounts/1234567890123457/unfollow |
70 | response: | 98 | response: |
71 | body: {string: '{"id":"1234567890123456","following":false,"showing_reblogs":false,"followed_by":true,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'} | 99 | body: {string: '{"id":"1234567890123457","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}'} |
72 | headers: | 100 | headers: |
73 | Cache-Control: ['no-cache, no-store'] | 101 | Cache-Control: ['no-cache, no-store'] |
74 | Content-Type: [application/json; charset=utf-8] | 102 | Content-Type: [application/json; charset=utf-8] |
@@ -79,9 +107,9 @@ interactions: | |||
79 | X-Download-Options: [noopen] | 107 | X-Download-Options: [noopen] |
80 | X-Frame-Options: [SAMEORIGIN] | 108 | X-Frame-Options: [SAMEORIGIN] |
81 | X-Permitted-Cross-Domain-Policies: [none] | 109 | X-Permitted-Cross-Domain-Policies: [none] |
82 | X-Request-Id: [4212d697-29e6-4265-b39c-d9f6b9a3815d] | 110 | X-Request-Id: [63236a87-0714-4715-9714-f6197e82f7ce] |
83 | X-Runtime: ['0.070500'] | 111 | X-Runtime: ['0.046859'] |
84 | X-XSS-Protection: [1; mode=block] | 112 | X-XSS-Protection: [1; mode=block] |
85 | content-length: ['225'] | 113 | content-length: ['226'] |
86 | status: {code: 200, message: OK} | 114 | status: {code: 200, message: OK} |
87 | version: 1 | 115 | version: 1 |