diff options
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) |