mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-01 23:12:21 +00:00
* Addded test * Expanded tests * Improved tests * Improved tests * Reverting to old * Modern problems require modern solutions
32 lines
872 B
Python
32 lines
872 B
Python
""" crpytocurrency/due_diligence/dd_controller.py tests """
|
|
import unittest
|
|
|
|
import vcr
|
|
|
|
from gamestonk_terminal.cryptocurrency.due_diligence import dd_controller
|
|
from tests.helpers import check_print
|
|
|
|
|
|
class TestDDController(unittest.TestCase):
|
|
def setUp(self):
|
|
self.cont = dd_controller.DueDiligenceController(source="cp", symbol="BTC")
|
|
|
|
@check_print(assert_in="Due Diligence:")
|
|
def test_help(self):
|
|
self.cont.call_help(None)
|
|
|
|
@check_print(assert_in="Moving back to")
|
|
def test_q(self):
|
|
self.cont.call_q(None)
|
|
|
|
def test_quit(self):
|
|
self.assertTrue(self.cont.call_quit(None))
|
|
|
|
@vcr.use_cassette(
|
|
"tests/cassettes/test_cryptocurrency/test_dd_controller.yaml",
|
|
record_mode="new_episodes",
|
|
)
|
|
@check_print(assert_in="glassnode")
|
|
def test_active(self):
|
|
self.cont.call_active(None)
|