aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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)