Files
groupme-facts-bot/test_text_db.py
2020-04-30 22:25:20 -04:00

16 lines
459 B
Python

from text_db import TextDb
class TestTextDb:
def test_get_fact(self):
text_db_service = TextDb()
random_fact = text_db_service.get_fact()
assert random_fact is not None
assert random_fact != ""
def test_get_multiple_facts(self):
text_db_service = TextDb()
random_facts_list = text_db_service.get_multiple_facts()
assert random_facts_list is not None
assert len(random_facts_list) > 0