Adding tests and notebook/reports

This commit is contained in:
Artem Veremey
2021-03-02 21:38:49 -08:00
parent 472b4ad697
commit e214cf1d76
5 changed files with 44 additions and 1 deletions

3
.gitignore vendored
View File

@@ -7,4 +7,5 @@ __pycache__/
.ipynb_checkpoints
env/
venv/
notebooks/reports/
notebooks/reports/*
!notebooks/reports/.gitkeep

View File

@@ -0,0 +1,13 @@
""" due_diligence/finviz_api.py tests """
# noqa: F401
import unittest
# pylint: disable=unused-import
import pytest
from gamestonk_terminal.due_diligence.finviz_api import analyst
class TestDdFinvizApi(unittest.TestCase):
def test_analyst(self):
analyst([], "PLTR")

View File

@@ -0,0 +1,13 @@
""" fundamental_analysis/market_watch_api.py tests """
# noqa: F401
import unittest
# pylint: disable=unused-import
import pytest
from gamestonk_terminal.fundamental_analysis.market_watch_api import income
class TestFaMarketWatchApi(unittest.TestCase):
def test_income(self):
income([], "PLTR")

View File

@@ -0,0 +1,16 @@
""" sentiment/twitter_api.py """
# noqa: F401
import unittest
# pylint: disable=unused-import
import pytest
from gamestonk_terminal.sentiment.twitter_api import inference, sentiment
class TestSentimentTwitterApi(unittest.TestCase):
def test_inference(self):
inference([], "PLTR")
def test_sentiment(self):
sentiment([], "PLTR")

View File