mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-26 19:22:23 +00:00
Adding a testing framework - pytest
This commit is contained in:
0
gamestonk_terminal/tests/__init__.py
Executable file
0
gamestonk_terminal/tests/__init__.py
Executable file
13
gamestonk_terminal/tests/test_discovery_fidelity_api.py
Executable file
13
gamestonk_terminal/tests/test_discovery_fidelity_api.py
Executable file
@@ -0,0 +1,13 @@
|
||||
""" CLI tests """
|
||||
# noqa: F401
|
||||
import unittest
|
||||
|
||||
# pylint: disable=unused-import
|
||||
import pytest
|
||||
|
||||
from gamestonk_terminal.discovery.fidelity_api import orders
|
||||
|
||||
|
||||
class TestCLI(unittest.TestCase):
|
||||
def test_orders(self):
|
||||
orders([])
|
||||
13
gamestonk_terminal/tests/test_discovery_short_interest_api.py
Executable file
13
gamestonk_terminal/tests/test_discovery_short_interest_api.py
Executable file
@@ -0,0 +1,13 @@
|
||||
""" CLI tests """
|
||||
# noqa: F401
|
||||
import unittest
|
||||
|
||||
# pylint: disable=unused-import
|
||||
import pytest
|
||||
|
||||
from gamestonk_terminal.discovery.short_interest_api import high_short_interest
|
||||
|
||||
|
||||
class TestCLI(unittest.TestCase):
|
||||
def test_high_short_interest(self):
|
||||
high_short_interest(["-n", "10"])
|
||||
@@ -131,3 +131,4 @@ fbprophet
|
||||
levenshtein
|
||||
black
|
||||
pylint
|
||||
pytest
|
||||
|
||||
Reference in New Issue
Block a user