pylint + test

This commit is contained in:
James Maslek
2023-08-14 10:47:29 -04:00
parent 99a5459dc0
commit 889a986b07
2 changed files with 5 additions and 5 deletions

View File

@@ -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:

View File

@@ -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)