diff options
author | micah <[email protected]> | 2022-11-25 21:45:52 +0000 |
---|---|---|
committer | micah <[email protected]> | 2022-11-25 21:45:52 +0000 |
commit | dd23f8b7c5e46989b2a73b21816c59bbbd34ef35 (patch) | |
tree | dd9c08cce97aec58daacd8f7b852d2e64886f951 /tests/test_trends.py | |
parent | 2c7b58568db735534912b2bc0990294e9d4a9c19 (diff) | |
parent | 99514e50d1e1ef6330397c2cada203dfa3891b3a (diff) | |
download | mastodon.py-dd23f8b7c5e46989b2a73b21816c59bbbd34ef35.tar.gz |
Merge remote-tracking branch 'origin/master' into catgoat/domain_blocks
Diffstat (limited to 'tests/test_trends.py')
-rw-r--r-- | tests/test_trends.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/test_trends.py b/tests/test_trends.py new file mode 100644 index 0000000..67599d2 --- /dev/null +++ b/tests/test_trends.py | |||
@@ -0,0 +1,21 @@ | |||
1 | import pytest | ||
2 | import time | ||
3 | import vcr | ||
4 | |||
5 | |||
6 | @pytest.mark.vcr() | ||
7 | def test_trending_tags(api): | ||
8 | tags = api.trending_tags() | ||
9 | assert isinstance(tags, list) | ||
10 | tags = api.trends() | ||
11 | assert isinstance(tags, list) | ||
12 | |||
13 | @pytest.mark.vcr() | ||
14 | def test_trending_statuses(api): | ||
15 | statuses = api.trending_statuses() | ||
16 | assert isinstance(statuses, list) | ||
17 | |||
18 | @pytest.mark.vcr() | ||
19 | def test_trending_links(api): | ||
20 | links = api.trending_links() | ||
21 | assert isinstance(links, list) | ||