aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2019-10-12 20:51:29 +0200
committerLorenz Diener <[email protected]>2019-10-12 20:51:29 +0200
commit2e5095f301c62c73f6b839bbbffeda14ab8cd797 (patch)
tree4eceb70b7cbdd3ebd24ab724b1e61cf5f168deee /tests/test_instance.py
parente60a3f1892bb685fcbe6ebbc9ed10602c9549028 (diff)
downloadmastodon.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.py7
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()
37def test_health(api): 37def test_health(api):
38 assert api.instance_health() == True 38 assert api.instance_health() == True
39
40@pytest.mark.vcr()
41def test_nodeinfo(api):
42 nodeinfo = api.instance_nodeinfo()
43 assert nodeinfo
44 assert nodeinfo.version == '2.0'
45
Powered by cgit v1.2.3 (git 2.41.0)