From c82b0b19196d5d390419d71e2b45f11ec1c74a05 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sun, 28 Apr 2019 21:15:47 +0200 Subject: Add more parameters to search API --- tests/test_search.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/test_search.py') 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 @pytest.mark.vcr() def test_search(api): + results = api.search_v1('mastodonpy_test') + assert isinstance(results, dict) + + results = api.search_v2('mastodonpy_test') + assert isinstance(results, dict) + results = api.search('mastodonpy_test') assert isinstance(results, dict) + + results = api.search('mastodonpy_test', result_type="statuses") + assert isinstance(results, dict) + assert len(results["hashtags"]) == 0 + assert len(results["accounts"]) == 0 -- cgit v1.2.3