diff options
author | Lorenz Diener <[email protected]> | 2019-10-12 20:13:38 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-10-12 20:13:38 +0200 |
commit | f421b1e4984e1811153032cb56e8fd191a0e6307 (patch) | |
tree | fa33433139c06563426246bee1bc38be1ae12ef6 /tests/test_search.py | |
parent | 0b952aef124af09b6ea1267aac48bea6fc12f710 (diff) | |
download | mastodon.py-f421b1e4984e1811153032cb56e8fd191a0e6307.tar.gz |
Add new parameter for search
Diffstat (limited to 'tests/test_search.py')
-rw-r--r-- | tests/test_search.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_search.py b/tests/test_search.py index a8ab33a..19d2ad4 100644 --- a/tests/test_search.py +++ b/tests/test_search.py | |||
@@ -15,6 +15,9 @@ def test_search(api): | |||
15 | assert len(results["accounts"]) == 0 | 15 | assert len(results["accounts"]) == 0 |
16 | 16 | ||
17 | def test_search_pre_2_9_2(api): | 17 | def test_search_pre_2_9_2(api): |
18 | api.mastodon_major = 2 | ||
19 | api.mastodon_minor = 9 | ||
20 | api.mastodon_patch = 1 | ||
18 | with vcr.use_cassette('test_search.yaml', cassette_library_dir='tests/cassettes_pre_2_9_2', record_mode='none'): | 21 | with vcr.use_cassette('test_search.yaml', cassette_library_dir='tests/cassettes_pre_2_9_2', record_mode='none'): |
19 | results = api.search_v1('mastodonpy_test') | 22 | results = api.search_v1('mastodonpy_test') |
20 | assert isinstance(results, dict) | 23 | assert isinstance(results, dict) |