mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-26 19:22:23 +00:00
pylint + test
This commit is contained in:
@@ -19,7 +19,7 @@ from reportlab.graphics import renderPDF
|
||||
|
||||
from openbb_terminal.core.session.constants import BackendEnvironment
|
||||
|
||||
# pylint: disable=C0415
|
||||
# pylint: disable=C0411,C0412,C0415
|
||||
try:
|
||||
from pywry import PyWry
|
||||
except ImportError as e:
|
||||
|
||||
@@ -68,10 +68,10 @@ def no_suppress():
|
||||
@pytest.mark.vcr(record_mode="none")
|
||||
@pytest.mark.record_stdout
|
||||
@pytest.mark.parametrize(
|
||||
"debug, path",
|
||||
[(True, None), (False, ["scripts/test_alt_covid.openbb"])],
|
||||
"debug, dev, path",
|
||||
[(True, False, None), (False, False, ["scripts/test_alt_covid.openbb"])],
|
||||
)
|
||||
def test_menu(mocker, debug, path):
|
||||
def test_menu(mocker, debug, dev, path):
|
||||
mocker.patch(target="terminal_controller.terminal")
|
||||
mocker.patch(target="terminal_controller.suppress_stdout", side_effect=no_suppress)
|
||||
terminal_controller.main(debug, path)
|
||||
terminal_controller.main(debug, dev, path)
|
||||
|
||||
Reference in New Issue
Block a user