mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-01 23:12:21 +00:00
[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 <>
This commit is contained in:
@@ -3,13 +3,12 @@
|
||||
from unittest.mock import MagicMock, Mock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
from openbb_cli.controllers.base_platform_controller import (
|
||||
PlatformController,
|
||||
Session,
|
||||
)
|
||||
|
||||
# pylint: disable=protected-access, unused-variable, redefined-outer-name
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def platform_controller():
|
||||
@@ -35,9 +34,9 @@ def platform_controller():
|
||||
def test_platform_controller_initialization(platform_controller):
|
||||
"""Test the initialization of the platform controller."""
|
||||
expected_path = "/platform/test/"
|
||||
assert (
|
||||
expected_path == platform_controller.PATH
|
||||
), "Controller path was not set correctly"
|
||||
assert expected_path == platform_controller.PATH, (
|
||||
"Controller path was not set correctly"
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.integration
|
||||
@@ -51,9 +50,9 @@ def test_command_generation(platform_controller):
|
||||
name=command_name, translator=platform_controller.translators[command_name]
|
||||
)
|
||||
command_method_name = f"call_{command_name}"
|
||||
assert hasattr(
|
||||
platform_controller, command_method_name
|
||||
), "Command method was not created"
|
||||
assert hasattr(platform_controller, command_method_name), (
|
||||
"Command method was not created"
|
||||
)
|
||||
|
||||
|
||||
@patch(
|
||||
|
||||
Reference in New Issue
Block a user