aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcodl <[email protected]>2017-11-30 00:56:35 +0100
committercodl <[email protected]>2017-11-30 00:56:35 +0100
commitf9a52029fc6d399c8fcd85a50060e0f5773da78e (patch)
treeb11bf113ab1bc6bd7ad57a5bed341b2243634a29 /tests/cassettes/test_account_search.yaml
parent7464315be7c4a2790c83d1528f8d372ce15f0290 (diff)
downloadmastodon.py-f9a52029fc6d399c8fcd85a50060e0f5773da78e.tar.gz
add tests for account methods
Diffstat (limited to 'tests/cassettes/test_account_search.yaml')
-rw-r--r--tests/cassettes/test_account_search.yaml28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/cassettes/test_account_search.yaml b/tests/cassettes/test_account_search.yaml
new file mode 100644
index 0000000..dc90126
--- /dev/null
+++ b/tests/cassettes/test_account_search.yaml
@@ -0,0 +1,28 @@
1interactions:
2- request:
3 body: null
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
8 Connection: [keep-alive]
9 User-Agent: [python-requests/2.18.4]
10 method: GET
11 uri: http://localhost:3000/api/v1/accounts/search?q=admin
12 response:
13 body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"codltest","locked":false,"created_at":"2017-07-01T17:09:15.621Z","note":"\u003cp\u003ehello
14 :)\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","avatar_static":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":50}]'}
15 headers:
16 Cache-Control: ['max-age=0, private, must-revalidate']
17 Content-Type: [application/json; charset=utf-8]
18 ETag: [W/"f257564844f554885596d31ac16d0607"]
19 Transfer-Encoding: [chunked]
20 Vary: ['Accept-Encoding, Origin']
21 X-Content-Type-Options: [nosniff]
22 X-Frame-Options: [SAMEORIGIN]
23 X-Request-Id: [efde9755-3e09-4e66-89d3-ad28026d0a0a]
24 X-Runtime: ['0.047304']
25 X-XSS-Protection: [1; mode=block]
26 content-length: ['605']
27 status: {code: 200, message: OK}
28version: 1
Powered by cgit v1.2.3 (git 2.41.0)