diff options
author | Lorenz Diener <[email protected]> | 2019-10-12 22:05:35 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-10-12 22:05:35 +0200 |
commit | 1f36deb11950a627b52a587fc3ec30c37f9bb456 (patch) | |
tree | 450aed6468f83de31492e90b0cefb42b2e07765a /tests/test_instance.py | |
parent | 63bf5afc61503ebd99a7e7bc36014b378db98d23 (diff) | |
download | mastodon.py-1f36deb11950a627b52a587fc3ec30c37f9bb456.tar.gz |
Add, test and document profile directory API (fixes #188)
Diffstat (limited to 'tests/test_instance.py')
-rw-r--r-- | tests/test_instance.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_instance.py b/tests/test_instance.py index e7dee1f..2762ecb 100644 --- a/tests/test_instance.py +++ b/tests/test_instance.py | |||
@@ -43,8 +43,15 @@ def test_nodeinfo(api): | |||
43 | assert nodeinfo | 43 | assert nodeinfo |
44 | assert nodeinfo.version == '2.0' | 44 | assert nodeinfo.version == '2.0' |
45 | 45 | ||
46 | |||
47 | @pytest.mark.vcr() | 46 | @pytest.mark.vcr() |
48 | def test_trends(api): | 47 | def test_trends(api): |
49 | assert isinstance(api.trends(), list) | 48 | assert isinstance(api.trends(), list) |
50 | 49 | ||
50 | @pytest.mark.vcr() | ||
51 | def test_directory(api): | ||
52 | directory = api.directory() | ||
53 | assert directory | ||
54 | assert isinstance(directory, list) | ||
55 | assert len(directory) > 0 | ||
56 | |||
57 | |||