Skip to content

Commit

Permalink
Update test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
beucismis committed Apr 14, 2024
1 parent cf6c320 commit b353664
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,26 @@ def test_get_author(self):
assert type(author.rank.karma) is int
assert author.url == "https://eksisozluk.com/biri/ssg"

def test_get_author_rank(self):
author_rank = limoon.get_author_rank("ssg")

assert type(author_rank) is limoon.Rank
assert type(author_rank.name) is str
assert type(author_rank.karma) is int
assert author_rank.karma > 1

def test_get_author_topic(self):
author_topic = limoon.get_author_topic("ssg")

assert type(author_topic) is limoon.Topic
assert author_topic.id == 31795
assert author_topic.title == "ssg"
assert author_topic.path == "ssg--31795"
assert len(list(author_topic.entrys)) > 1
assert type(list(author_topic.entrys)) is list
assert author_topic.page_count > 1
assert author_topic.url == "https://eksisozluk.com/ssg--31795"


class TestException:
def test_topic_not_found(self):
Expand Down

0 comments on commit b353664

Please sign in to comment.