Mastodonplus.py/tests/cassettes/test_list_by_account.yaml

185 líneas
7,2 KiB
YAML
Original Vista normal Històric

2018-05-06 15:42:38 +02:00
interactions:
- request:
body: title=ham+burglars
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
Content-Length: ['18']
Content-Type: [application/x-www-form-urlencoded]
User-Agent: [python-requests/2.9.1]
method: POST
uri: http://localhost:3000/api/v1/lists
response:
2018-05-07 00:53:13 +02:00
body: {string: '{"id":"9","title":"ham burglars"}'}
2018-05-06 15:42:38 +02:00
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-05-07 00:53:13 +02:00
ETag: [W/"640f48d875075b3e649f85c290d31fd1"]
2018-05-06 15:42:38 +02:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
2018-05-07 00:53:13 +02:00
X-Request-Id: [1d9ac5dc-12bb-4912-a97f-1d6af93e9ff2]
X-Runtime: ['0.049308']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
2018-05-07 00:53:13 +02:00
content-length: ['33']
2018-05-06 15:42:38 +02:00
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
Connection: [keep-alive]
User-Agent: [python-requests/2.9.1]
method: GET
uri: http://localhost:3000/api/v1/accounts/verify_credentials
response:
2018-05-07 00:53:13 +02:00
body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-05-06T22:36:57.850Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"source":{"privacy":"public","sensitive":false,"note":""}}'}
2018-05-06 15:42:38 +02:00
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-05-07 00:53:13 +02:00
ETag: [W/"51219e03abcdd2d127bb724fe0a838d6"]
2018-05-06 15:42:38 +02:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
2018-05-07 00:53:13 +02:00
X-Request-Id: [3e80d124-aae6-435b-8a1b-e0a0cad63ccd]
X-Runtime: ['0.036737']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
2018-05-07 00:53:13 +02:00
content-length: ['570']
2018-05-06 15:42:38 +02:00
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
Content-Length: ['0']
User-Agent: [python-requests/2.9.1]
method: POST
uri: http://localhost:3000/api/v1/accounts/1/follow
response:
body: {string: '{"id":"1","following":true,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-05-07 00:53:13 +02:00
ETag: [W/"a68e62a364c40a8a5da2e2143dcfaecd"]
2018-05-06 15:42:38 +02:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
2018-05-07 00:53:13 +02:00
X-Request-Id: [7c8099fa-0867-4cce-8319-a83c9cd99bc6]
X-Runtime: ['0.134127']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['174']
status: {code: 200, message: OK}
- request:
body: account_ids%5B%5D=1
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.9.1]
method: POST
2018-05-07 00:53:13 +02:00
uri: http://localhost:3000/api/v1/lists/9/accounts
2018-05-06 15:42:38 +02:00
response:
body: {string: '{}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-05-07 00:53:13 +02:00
ETag: [W/"9f1be5e69062532601176acaaa81e8db"]
2018-05-06 15:42:38 +02:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
2018-05-07 00:53:13 +02:00
X-Request-Id: [6b6e6e37-0bbd-4532-99a3-dfa746739733]
X-Runtime: ['0.040029']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['2']
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.9.1]
method: GET
uri: http://localhost:3000/api/v1/accounts/1/lists
response:
2018-05-07 00:53:13 +02:00
body: {string: '[{"id":"9","title":"ham burglars"}]'}
2018-05-06 15:42:38 +02:00
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-05-07 00:53:13 +02:00
ETag: [W/"5f364b9443a59ad23cb424bc96d9f5e8"]
2018-05-06 15:42:38 +02:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
2018-05-07 00:53:13 +02:00
X-Request-Id: [5b3c9ed2-e3e1-4fb2-9d48-6f119f413354]
X-Runtime: ['0.018570']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
2018-05-07 00:53:13 +02:00
content-length: ['35']
2018-05-06 15:42:38 +02:00
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
Content-Length: ['0']
User-Agent: [python-requests/2.9.1]
method: POST
uri: http://localhost:3000/api/v1/accounts/1/unfollow
response:
body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-05-07 00:53:13 +02:00
ETag: [W/"fc1dc246eca7eb18d44186a403f34e4d"]
2018-05-06 15:42:38 +02:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
2018-05-07 00:53:13 +02:00
X-Request-Id: [81376983-689a-42f6-beeb-fdcfebaf8079]
X-Runtime: ['0.044272']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['175']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
Content-Length: ['0']
User-Agent: [python-requests/2.9.1]
method: DELETE
2018-05-07 00:53:13 +02:00
uri: http://localhost:3000/api/v1/lists/9
2018-05-06 15:42:38 +02:00
response:
body: {string: '{}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-05-07 00:53:13 +02:00
ETag: [W/"9f1be5e69062532601176acaaa81e8db"]
2018-05-06 15:42:38 +02:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
2018-05-07 00:53:13 +02:00
X-Request-Id: [d1348013-9f40-490a-bf57-b47811b9a5b5]
X-Runtime: ['0.031188']
2018-05-06 15:42:38 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['2']
status: {code: 200, message: OK}
version: 1