diff options
author | Lorenz Diener <[email protected]> | 2017-11-30 16:02:52 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2017-11-30 16:02:52 +0100 |
commit | 7e3a4a17a28f52b186e6453a0d1f43614f110b4b (patch) | |
tree | 48aafcc35397205d52613cc305dc6baff1cbbda1 /tests/cassettes/test_domain_block_unblock.yaml | |
parent | c6f1196ddc1899e64d60b102e1cfa1c1c1321e77 (diff) | |
parent | d87ada3d73de69ba371acaeca55751e2410c3786 (diff) | |
download | mastodon.py-7e3a4a17a28f52b186e6453a0d1f43614f110b4b.tar.gz |
Merge pull request #113 from codl/more-tests
More tests!
Diffstat (limited to 'tests/cassettes/test_domain_block_unblock.yaml')
-rw-r--r-- | tests/cassettes/test_domain_block_unblock.yaml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/tests/cassettes/test_domain_block_unblock.yaml b/tests/cassettes/test_domain_block_unblock.yaml new file mode 100644 index 0000000..e60b12b --- /dev/null +++ b/tests/cassettes/test_domain_block_unblock.yaml | |||
@@ -0,0 +1,56 @@ | |||
1 | interactions: | ||
2 | - request: | ||
3 | body: domain=example.com | ||
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.18.4] | ||
12 | method: POST | ||
13 | uri: http://localhost:3000/api/v1/domain_blocks | ||
14 | response: | ||
15 | body: {string: '{}'} | ||
16 | headers: | ||
17 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
18 | Content-Type: [application/json; charset=utf-8] | ||
19 | ETag: [W/"fe7f6d5b13e22f37fb57de6e31e0ef11"] | ||
20 | Transfer-Encoding: [chunked] | ||
21 | Vary: ['Accept-Encoding, Origin'] | ||
22 | X-Content-Type-Options: [nosniff] | ||
23 | X-Frame-Options: [SAMEORIGIN] | ||
24 | X-Request-Id: [cb5c8333-c6bd-41c3-bdfd-d6c974ea7d2b] | ||
25 | X-Runtime: ['0.059619'] | ||
26 | X-XSS-Protection: [1; mode=block] | ||
27 | content-length: ['2'] | ||
28 | status: {code: 200, message: OK} | ||
29 | - request: | ||
30 | body: domain=example.com | ||
31 | headers: | ||
32 | Accept: ['*/*'] | ||
33 | Accept-Encoding: ['gzip, deflate'] | ||
34 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
35 | Connection: [keep-alive] | ||
36 | Content-Length: ['18'] | ||
37 | Content-Type: [application/x-www-form-urlencoded] | ||
38 | User-Agent: [python-requests/2.18.4] | ||
39 | method: DELETE | ||
40 | uri: http://localhost:3000/api/v1/domain_blocks | ||
41 | response: | ||
42 | body: {string: '{}'} | ||
43 | headers: | ||
44 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
45 | Content-Type: [application/json; charset=utf-8] | ||
46 | ETag: [W/"fe7f6d5b13e22f37fb57de6e31e0ef11"] | ||
47 | Transfer-Encoding: [chunked] | ||
48 | Vary: ['Accept-Encoding, Origin'] | ||
49 | X-Content-Type-Options: [nosniff] | ||
50 | X-Frame-Options: [SAMEORIGIN] | ||
51 | X-Request-Id: [56395cbf-814c-4e57-97fd-2c44592211aa] | ||
52 | X-Runtime: ['0.019281'] | ||
53 | X-XSS-Protection: [1; mode=block] | ||
54 | content-length: ['2'] | ||
55 | status: {code: 200, message: OK} | ||
56 | version: 1 | ||