diff options
author | Lorenz Diener <[email protected]> | 2017-11-29 17:48:56 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2017-11-29 17:48:56 +0100 |
commit | 961425e2abc91d693004f2c0d073e387de64e58c (patch) | |
tree | 8b1512daf97ab63b54f4edebc83b35f524571c53 /tests/cassettes/test_log_in_password.yaml | |
parent | 5b811b719d379be06ed256da2ee806a051461795 (diff) | |
parent | e79987df2410ee32302abed9e486a72b2dfc9707 (diff) | |
download | mastodon.py-961425e2abc91d693004f2c0d073e387de64e58c.tar.gz |
Merge pull request #109 from codl/test-suite
Test suite
Diffstat (limited to 'tests/cassettes/test_log_in_password.yaml')
-rw-r--r-- | tests/cassettes/test_log_in_password.yaml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/cassettes/test_log_in_password.yaml b/tests/cassettes/test_log_in_password.yaml new file mode 100644 index 0000000..c44bed6 --- /dev/null +++ b/tests/cassettes/test_log_in_password.yaml | |||
@@ -0,0 +1,27 @@ | |||
1 | interactions: | ||
2 | - request: | ||
3 | body: redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&password=mastodonadmin&username=admin%40localhost%3A3000&grant_type=password&client_id=__MASTODON_PY_TEST_ID&client_secret=__MASTODON_PY_TEST_SECRET&scope=read+write+follow | ||
4 | headers: | ||
5 | Accept: ['*/*'] | ||
6 | Accept-Encoding: ['gzip, deflate'] | ||
7 | Connection: [keep-alive] | ||
8 | Content-Length: ['221'] | ||
9 | Content-Type: [application/x-www-form-urlencoded] | ||
10 | User-Agent: [python-requests/2.18.4] | ||
11 | method: POST | ||
12 | uri: http://localhost:3000/oauth/token | ||
13 | response: | ||
14 | body: {string: '{"access_token":"__MASTODON_PY_TEST_TOKEN","token_type":"bearer","scope":"read | ||
15 | write follow","created_at":1511814180}'} | ||
16 | headers: | ||
17 | Cache-Control: [no-store] | ||
18 | Content-Type: [application/json; charset=utf-8] | ||
19 | ETag: [W/"f6a22ef91276cdcde8f09c8186d2d41d"] | ||
20 | Pragma: [no-cache] | ||
21 | Transfer-Encoding: [chunked] | ||
22 | Vary: ['Accept-Encoding, Origin'] | ||
23 | X-Request-Id: [85cb59f1-b92a-4ff8-8a49-c09bed55eb98] | ||
24 | X-Runtime: ['0.077197'] | ||
25 | content-length: ['117'] | ||
26 | status: {code: 200, message: OK} | ||
27 | version: 1 | ||