Files
OpenBB/cli/integration/test_integration_cli_controller.py
Danglewood 869cfed125 [Release] openbb-v5.0.0 (#7741)
* merge branch develop with main

* bump desktop version

* fix the merge

* sync Cargo.lock to desktop 2.0.0

* fix cli conftest.py

---------

Co-authored-by: deeleeramone <>
2026-09-29 10:58:44 -07:00

25 lines
761 B
Python

"""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"]
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}"
)