diff options
author | codl <[email protected]> | 2017-11-29 22:03:51 +0100 |
---|---|---|
committer | codl <[email protected]> | 2017-11-29 22:07:27 +0100 |
commit | 4d99e9316ea02ded025eee99fb963290218e52d2 (patch) | |
tree | 9d6e4766cbafa6e6a7af61d967d98c06322ae321 /tests/cassettes | |
parent | 0f753e621a0804dfc8a08e1f5f90972be75c4ff5 (diff) | |
download | mastodon.py-4d99e9316ea02ded025eee99fb963290218e52d2.tar.gz |
add failing test case for #111
Diffstat (limited to 'tests/cassettes')
-rw-r--r-- | tests/cassettes/test_status_empty.yaml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/cassettes/test_status_empty.yaml b/tests/cassettes/test_status_empty.yaml new file mode 100644 index 0000000..52be5c4 --- /dev/null +++ b/tests/cassettes/test_status_empty.yaml | |||
@@ -0,0 +1,29 @@ | |||
1 | interactions: | ||
2 | - request: | ||
3 | body: !!python/unicode status=&visibility= | ||
4 | headers: | ||
5 | Accept: ['*/*'] | ||
6 | Accept-Encoding: ['gzip, deflate'] | ||
7 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
8 | Connection: [keep-alive] | ||
9 | Content-Length: ['19'] | ||
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/statuses | ||
14 | response: | ||
15 | body: {string: "{\"error\":\"\u30D0\u30EA\u30C7\u30FC\u30B7\u30E7\u30F3\u306B\u5931\u6557\u3057\u307E\u3057\u305F: | ||
16 | Text\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\"}"} | ||
17 | headers: | ||
18 | cache-control: [no-cache] | ||
19 | content-length: ['87'] | ||
20 | content-type: [application/json; charset=utf-8] | ||
21 | transfer-encoding: [chunked] | ||
22 | vary: ['Accept-Encoding, Origin'] | ||
23 | x-content-type-options: [nosniff] | ||
24 | x-frame-options: [SAMEORIGIN] | ||
25 | x-request-id: [b28457db-8446-42ac-b5a8-241d0a7434b4] | ||
26 | x-runtime: ['0.109104'] | ||
27 | x-xss-protection: [1; mode=block] | ||
28 | status: {code: 422, message: Unprocessable Entity} | ||
29 | version: 1 | ||