diff options
Diffstat (limited to 'tests/cassettes/test_list_create.yaml')
-rw-r--r-- | tests/cassettes/test_list_create.yaml | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/tests/cassettes/test_list_create.yaml b/tests/cassettes/test_list_create.yaml new file mode 100644 index 0000000..41c9d50 --- /dev/null +++ b/tests/cassettes/test_list_create.yaml | |||
@@ -0,0 +1,80 @@ | |||
1 | interactions: | ||
2 | - request: | ||
3 | body: title=ham+burglars | ||
4 | headers: | ||
5 | Accept: ['*/*'] | ||
6 | Accept-Encoding: ['gzip, deflate'] | ||
7 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
8 | Connection: [keep-alive] | ||
9 | Content-Length: ['18'] | ||
10 | Content-Type: [application/x-www-form-urlencoded] | ||
11 | User-Agent: [python-requests/2.9.1] | ||
12 | method: POST | ||
13 | uri: http://localhost:3000/api/v1/lists | ||
14 | response: | ||
15 | body: {string: '{"id":"21","title":"ham burglars"}'} | ||
16 | headers: | ||
17 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
18 | Content-Type: [application/json; charset=utf-8] | ||
19 | ETag: [W/"7a697af6c938508b5253601ebd4dd6e6"] | ||
20 | Transfer-Encoding: [chunked] | ||
21 | Vary: ['Accept-Encoding, Origin'] | ||
22 | X-Content-Type-Options: [nosniff] | ||
23 | X-Frame-Options: [SAMEORIGIN] | ||
24 | X-Request-Id: [ace7486c-8c0b-46ef-8dc2-69719035824f] | ||
25 | X-Runtime: ['0.030442'] | ||
26 | X-XSS-Protection: [1; mode=block] | ||
27 | content-length: ['34'] | ||
28 | status: {code: 200, message: OK} | ||
29 | - request: | ||
30 | body: null | ||
31 | headers: | ||
32 | Accept: ['*/*'] | ||
33 | Accept-Encoding: ['gzip, deflate'] | ||
34 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
35 | Connection: [keep-alive] | ||
36 | User-Agent: [python-requests/2.9.1] | ||
37 | method: GET | ||
38 | uri: http://localhost:3000/api/v1/lists | ||
39 | response: | ||
40 | body: {string: '[{"id":"1","title":"ham burglars"},{"id":"21","title":"ham burglars"}]'} | ||
41 | headers: | ||
42 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
43 | Content-Type: [application/json; charset=utf-8] | ||
44 | ETag: [W/"158cecd920100143aaaaca0e264e3eff"] | ||
45 | Transfer-Encoding: [chunked] | ||
46 | Vary: ['Accept-Encoding, Origin'] | ||
47 | X-Content-Type-Options: [nosniff] | ||
48 | X-Frame-Options: [SAMEORIGIN] | ||
49 | X-Request-Id: [cb76cdf7-a8a4-47ab-b22d-8d605bfcb2e5] | ||
50 | X-Runtime: ['0.019989'] | ||
51 | X-XSS-Protection: [1; mode=block] | ||
52 | content-length: ['70'] | ||
53 | status: {code: 200, message: OK} | ||
54 | - request: | ||
55 | body: null | ||
56 | headers: | ||
57 | Accept: ['*/*'] | ||
58 | Accept-Encoding: ['gzip, deflate'] | ||
59 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
60 | Connection: [keep-alive] | ||
61 | Content-Length: ['0'] | ||
62 | User-Agent: [python-requests/2.9.1] | ||
63 | method: DELETE | ||
64 | uri: http://localhost:3000/api/v1/lists/21 | ||
65 | response: | ||
66 | body: {string: '{}'} | ||
67 | headers: | ||
68 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
69 | Content-Type: [application/json; charset=utf-8] | ||
70 | ETag: [W/"517599317c4db2fd6c980b4f38eaa967"] | ||
71 | Transfer-Encoding: [chunked] | ||
72 | Vary: ['Accept-Encoding, Origin'] | ||
73 | X-Content-Type-Options: [nosniff] | ||
74 | X-Frame-Options: [SAMEORIGIN] | ||
75 | X-Request-Id: [82ba57ca-5026-403f-a024-8b33c87504a2] | ||
76 | X-Runtime: ['0.025599'] | ||
77 | X-XSS-Protection: [1; mode=block] | ||
78 | content-length: ['2'] | ||
79 | status: {code: 200, message: OK} | ||
80 | version: 1 | ||