diff options
author | micah <[email protected]> | 2022-11-25 16:39:10 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2022-11-25 16:39:10 -0500 |
commit | 99514e50d1e1ef6330397c2cada203dfa3891b3a (patch) | |
tree | cbac11da3a71a24bbb739d9aa8fda65bc7968dd4 /tests/test_trends.py | |
parent | 5d7ca19c30dc6579bf29610fe815b822889978e6 (diff) | |
parent | 10b2a9984237aaae6a512d441001e635060d6af7 (diff) | |
download | mastodon.py-99514e50d1e1ef6330397c2cada203dfa3891b3a.tar.gz |
Merge pull request #1 from halcy/master
pull in upstream
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) | ||