Add rest of project files

This commit is contained in:
2020-04-29 12:38:41 -04:00
parent 3b01915ec6
commit 052490c0fc
20 changed files with 158 additions and 0 deletions

15
tests/test_text_db.py Normal file
View File

@@ -0,0 +1,15 @@
from model.text_db import TextDb
class TestTestDb:
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