mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-30 05:52:23 +00:00
Adding tests and notebook/reports
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -7,4 +7,5 @@ __pycache__/
|
||||
.ipynb_checkpoints
|
||||
env/
|
||||
venv/
|
||||
notebooks/reports/
|
||||
notebooks/reports/*
|
||||
!notebooks/reports/.gitkeep
|
||||
|
||||
13
gamestonk_terminal/tests/test_dd_finviz_api.py
Normal file
13
gamestonk_terminal/tests/test_dd_finviz_api.py
Normal 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")
|
||||
13
gamestonk_terminal/tests/test_fa_market_watch_api.py
Normal file
13
gamestonk_terminal/tests/test_fa_market_watch_api.py
Normal 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")
|
||||
16
gamestonk_terminal/tests/test_sentiment_twitter_api.py
Normal file
16
gamestonk_terminal/tests/test_sentiment_twitter_api.py
Normal 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")
|
||||
0
notebooks/reports/.gitkeep
Normal file
0
notebooks/reports/.gitkeep
Normal file
Reference in New Issue
Block a user