mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-09 10:51:57 +00:00
[BugFix] - Fix pylint possibly-used-before-assignment (#6484)
* fix: comply w/ possibly used before assignment * remove disabe from .pylintrc * remove reset test * remove reset test * fix: update missing keys message
This commit is contained in:
@@ -14,7 +14,6 @@ from openbb_cli.controllers.utils import (
|
||||
print_goodbye,
|
||||
print_guest_block_msg,
|
||||
remove_file,
|
||||
reset,
|
||||
welcome_message,
|
||||
)
|
||||
|
||||
@@ -64,15 +63,6 @@ def test_print_goodbye(mock_session):
|
||||
mock_session.return_value.console.print.assert_called()
|
||||
|
||||
|
||||
def test_reset(mock_session):
|
||||
"""Test resetting the CLI."""
|
||||
with patch("openbb_cli.controllers.utils.remove_file"), patch(
|
||||
"sys.modules", new_callable=dict
|
||||
):
|
||||
reset()
|
||||
mock_session.return_value.console.print.assert_called()
|
||||
|
||||
|
||||
def test_parse_and_split_input():
|
||||
"""Test parsing and splitting user input."""
|
||||
user_input = "ls -f /home/user/docs/document.xlsx"
|
||||
|
||||
Reference in New Issue
Block a user