aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2019-04-28 21:15:47 +0200
committerLorenz Diener <[email protected]>2019-04-28 21:15:47 +0200
commitc82b0b19196d5d390419d71e2b45f11ec1c74a05 (patch)
treec0563458afd26ddf9c7ed705fdfbbba9ccdf87ac /tests/test_search.py
parentc815cdb2128da4b9a96de56f739c1f24bf01755b (diff)
downloadmastodon.py-c82b0b19196d5d390419d71e2b45f11ec1c74a05.tar.gz
Add more parameters to search API
Diffstat (limited to 'tests/test_search.py')
-rw-r--r--tests/test_search.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_search.py b/tests/test_search.py
index 7a39581..f05a023 100644
--- a/tests/test_search.py
+++ b/tests/test_search.py
@@ -2,5 +2,16 @@ import pytest
2 2
3@pytest.mark.vcr() 3@pytest.mark.vcr()
4def test_search(api): 4def test_search(api):
5 results = api.search_v1('mastodonpy_test')
6 assert isinstance(results, dict)
7
8 results = api.search_v2('mastodonpy_test')
9 assert isinstance(results, dict)
10
5 results = api.search('mastodonpy_test') 11 results = api.search('mastodonpy_test')
6 assert isinstance(results, dict) 12 assert isinstance(results, dict)
13
14 results = api.search('mastodonpy_test', result_type="statuses")
15 assert isinstance(results, dict)
16 assert len(results["hashtags"]) == 0
17 assert len(results["accounts"]) == 0
Powered by cgit v1.2.3 (git 2.41.0)