Mastodonplus.py/tests/cassettes/test_status_empty.yaml
2019-10-12 23:03:14 +02:00

31 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: [2a7c684f-3f6c-4d68-ae98-82770c334322]
X-Runtime: ['0.046017']
X-XSS-Protection: [1; mode=block]
content-length: ['50']
status: {code: 422, message: Unprocessable Entity}
version: 1