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

88 líneas
3,4 KiB
YAML

interactions:
- request:
body: whole_word=1&irreversible=0&phrase=anime&context%5B%5D=notifications
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
Content-Length: ['68']
Content-Type: [application/x-www-form-urlencoded]
User-Agent: [python-requests/2.18.4]
method: POST
uri: http://localhost:3000/api/v1/filters
response:
body: {string: '{"id":"132","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'}
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: [cc317f82-ca04-459c-9fc3-e77d4eb5418b]
X-Runtime: ['0.025617']
X-XSS-Protection: [1; mode=block]
content-length: ['114']
status: {code: 200, message: OK}
- request:
body: phrase=japanimation
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
Content-Length: ['19']
Content-Type: [application/x-www-form-urlencoded]
User-Agent: [python-requests/2.18.4]
method: PUT
uri: http://localhost:3000/api/v1/filters/132
response:
body: {string: '{"id":"132","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'}
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: [3ada522d-a0c6-4a6d-bcb7-7fb9d62b547a]
X-Runtime: ['0.027720']
X-XSS-Protection: [1; mode=block]
content-length: ['121']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
User-Agent: [python-requests/2.18.4]
method: GET
uri: http://localhost:3000/api/v1/filters/132
response:
body: {string: '{"id":"132","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'}
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: [59f34c3f-c8c3-49ef-9d4b-7dae04f73911]
X-Runtime: ['0.018530']
X-XSS-Protection: [1; mode=block]
content-length: ['121']
status: {code: 200, message: OK}
version: 1