Mastodonplus.py/tests/cassettes/test_status_empty.yaml
2020-02-22 20:31:33 +01:00

32 líneas
1,1 KiB
YAML

interactions:
- request:
body: status=
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
Content-Length: ['7']
Content-Type: [application/x-www-form-urlencoded]
User-Agent: [python-requests/2.18.4]
method: POST
uri: http://localhost:3000/api/v1/statuses
response:
body: {string: '{"error":"Validation failed: Text can''t be blank"}'}
headers:
Cache-Control: ['no-cache, no-store']
Content-Type: [application/json; charset=utf-8]
Referrer-Policy: [strict-origin-when-cross-origin]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [1c82a1c4-f0fd-4d0d-90cb-b388f944f089]
X-Runtime: ['0.046340']
X-XSS-Protection: [1; mode=block]
content-length: ['50']
status: {code: 422, message: Unprocessable Entity}
version: 1