diff options
author | Lorenz Diener <[email protected]> | 2019-10-12 20:51:29 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-10-12 20:51:29 +0200 |
commit | 2e5095f301c62c73f6b839bbbffeda14ab8cd797 (patch) | |
tree | 4eceb70b7cbdd3ebd24ab724b1e61cf5f168deee /tests/test_instance.py | |
parent | e60a3f1892bb685fcbe6ebbc9ed10602c9549028 (diff) | |
download | mastodon.py-2e5095f301c62c73f6b839bbbffeda14ab8cd797.tar.gz |
Add, document and test nodeinfo api (fixes #199)
Diffstat (limited to 'tests/test_instance.py')
-rw-r--r-- | tests/test_instance.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_instance.py b/tests/test_instance.py index a304585..343af18 100644 --- a/tests/test_instance.py +++ b/tests/test_instance.py | |||
@@ -36,3 +36,10 @@ def test_emoji(api): | |||
36 | @pytest.mark.vcr() | 36 | @pytest.mark.vcr() |
37 | def test_health(api): | 37 | def test_health(api): |
38 | assert api.instance_health() == True | 38 | assert api.instance_health() == True |
39 | |||
40 | @pytest.mark.vcr() | ||
41 | def test_nodeinfo(api): | ||
42 | nodeinfo = api.instance_nodeinfo() | ||
43 | assert nodeinfo | ||
44 | assert nodeinfo.version == '2.0' | ||
45 | |||