File size: 819 Bytes
b93364a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
"""Test the CLI controller integration."""
from openbb_cli.controllers.cli_controller import (
CLIController,
)
def test_parse_input_valid_commands():
"""Test parse_input method."""
controller = CLIController()
input_string = "exe --file test.openbb"
expected_output = [
"exe --file test.openbb"
] # Adjust based on actual expected behavior
assert controller.parse_input(input_string) == expected_output
def test_parse_input_invalid_commands():
"""Test parse_input method."""
controller = CLIController()
input_string = "nonexistentcommand args"
expected_output = ["nonexistentcommand args"]
actual_output = controller.parse_input(input_string)
assert (
actual_output == expected_output
), f"Expected {expected_output}, got {actual_output}"
|