diff options
author | Lorenz Diener <[email protected]> | 2019-04-28 00:14:30 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-04-28 00:14:30 +0200 |
commit | 429132e9566f33f7f076705b65636dc517060b59 (patch) | |
tree | 95f7876e978148dd95326e57a9f2fadeff617c3b /tests/test_create_app.py | |
parent | 67824478afe41aabb8802efd632fb653dd6e834a (diff) | |
download | mastodon.py-429132e9566f33f7f076705b65636dc517060b59.tar.gz |
Test and document app_verify_credentials
Diffstat (limited to 'tests/test_create_app.py')
-rw-r--r-- | tests/test_create_app.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_create_app.py b/tests/test_create_app.py index 8745b47..67318e9 100644 --- a/tests/test_create_app.py +++ b/tests/test_create_app.py | |||
@@ -40,3 +40,9 @@ def test_create_app_website(mocker): | |||
40 | test_create_app(mocker, website='http://example.net') | 40 | test_create_app(mocker, website='http://example.net') |
41 | kwargs = requests.post.call_args[1] | 41 | kwargs = requests.post.call_args[1] |
42 | assert kwargs['data']['website'] == 'http://example.net' | 42 | assert kwargs['data']['website'] == 'http://example.net' |
43 | |||
44 | @pytest.mark.vcr() | ||
45 | def test_app_verify_credentials(api): | ||
46 | app = api.app_verify_credentials() | ||
47 | assert app | ||
48 | assert app.name == 'Mastodon.py test suite' | ||