Adding a testing framework - pytest

This commit is contained in:
Artem Veremey
2021-02-26 21:53:33 -08:00
parent e45315ceb3
commit e6e842e5c9
4 changed files with 27 additions and 0 deletions

View File

View 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([])

View 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"])

View File

@@ -131,3 +131,4 @@ fbprophet
levenshtein
black
pylint
pytest