diff options
author | Lorenz Diener <[email protected]> | 2017-11-30 16:02:52 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2017-11-30 16:02:52 +0100 |
commit | 7e3a4a17a28f52b186e6453a0d1f43614f110b4b (patch) | |
tree | 48aafcc35397205d52613cc305dc6baff1cbbda1 /tests/cassettes/test_log_in_password.yaml | |
parent | c6f1196ddc1899e64d60b102e1cfa1c1c1321e77 (diff) | |
parent | d87ada3d73de69ba371acaeca55751e2410c3786 (diff) | |
download | mastodon.py-7e3a4a17a28f52b186e6453a0d1f43614f110b4b.tar.gz |
Merge pull request #113 from codl/more-tests
More tests!
Diffstat (limited to 'tests/cassettes/test_log_in_password.yaml')
-rw-r--r-- | tests/cassettes/test_log_in_password.yaml | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/cassettes/test_log_in_password.yaml b/tests/cassettes/test_log_in_password.yaml index c44bed6..d220e32 100644 --- a/tests/cassettes/test_log_in_password.yaml +++ b/tests/cassettes/test_log_in_password.yaml | |||
@@ -1,27 +1,27 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 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 | 3 | body: !!python/unicode username=admin%40localhost%3A3000&password=mastodonadmin&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&client_id=__MASTODON_PY_TEST_CLIENT_ID&scope=read+write+follow&client_secret=__MASTODON_PY_TEST_CLIENT_SECRET&grant_type=password |
4 | headers: | 4 | headers: |
5 | Accept: ['*/*'] | 5 | Accept: ['*/*'] |
6 | Accept-Encoding: ['gzip, deflate'] | 6 | Accept-Encoding: ['gzip, deflate'] |
7 | Connection: [keep-alive] | 7 | Connection: [keep-alive] |
8 | Content-Length: ['221'] | 8 | Content-Length: ['235'] |
9 | Content-Type: [application/x-www-form-urlencoded] | 9 | Content-Type: [application/x-www-form-urlencoded] |
10 | User-Agent: [python-requests/2.18.4] | 10 | User-Agent: [python-requests/2.18.4] |
11 | method: POST | 11 | method: POST |
12 | uri: http://localhost:3000/oauth/token | 12 | uri: http://localhost:3000/oauth/token |
13 | response: | 13 | response: |
14 | body: {string: '{"access_token":"__MASTODON_PY_TEST_TOKEN","token_type":"bearer","scope":"read | 14 | body: {string: !!python/unicode '{"access_token":"__MASTODON_PY_TEST_ACCESS_TOKEN_2","token_type":"bearer","scope":"read |
15 | write follow","created_at":1511814180}'} | 15 | write follow","created_at":1511992220}'} |
16 | headers: | 16 | headers: |
17 | Cache-Control: [no-store] | 17 | cache-control: [no-store] |
18 | Content-Type: [application/json; charset=utf-8] | 18 | content-length: ['126'] |
19 | ETag: [W/"f6a22ef91276cdcde8f09c8186d2d41d"] | 19 | content-type: [application/json; charset=utf-8] |
20 | Pragma: [no-cache] | 20 | etag: [W/"7f19440d01a73bd9685be7280866fa5b"] |
21 | Transfer-Encoding: [chunked] | 21 | pragma: [no-cache] |
22 | Vary: ['Accept-Encoding, Origin'] | 22 | transfer-encoding: [chunked] |
23 | X-Request-Id: [85cb59f1-b92a-4ff8-8a49-c09bed55eb98] | 23 | vary: ['Accept-Encoding, Origin'] |
24 | X-Runtime: ['0.077197'] | 24 | x-request-id: [d33af1b6-ae04-495f-9a8c-720b570e98a9] |
25 | content-length: ['117'] | 25 | x-runtime: ['0.244819'] |
26 | status: {code: 200, message: OK} | 26 | status: {code: 200, message: OK} |
27 | version: 1 | 27 | version: 1 |