removing charting service on the tests for int tests

This commit is contained in:
hjoaquim
2024-01-25 11:06:42 +00:00
parent 948d2ef299
commit 04b3a1242e
2 changed files with 6 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
"""Test the integration tests."""
from typing import Literal
from openbb_core.app.charting_service import ChartingService
from openbb_charting import Charting
from extensions.tests.utils.integration_tests_testers import (
check_missing_integration_test_params,
@@ -40,7 +40,8 @@ def test_api_interface_wrong_integration_test_params() -> None:
def test_charting_extension_function_coverage() -> None:
"""Test if all charting extension functions are covered by integration tests."""
functions = ChartingService.get_implemented_charting_functions()
functions = Charting.functions()
test_names = [f"test_chart_{func}" for func in functions]
integration_tests_modules = get_integration_tests(
test_type="api", filter_charting_ext=False

View File

@@ -1,7 +1,7 @@
"""Test the integration tests."""
from typing import Literal
from openbb_core.app.charting_service import ChartingService
from openbb_charting import Charting
from extensions.tests.utils.integration_tests_testers import (
check_missing_integration_test_params,
@@ -40,7 +40,8 @@ def test_python_interface_wrong_integration_test_params() -> None:
def test_charting_extension_function_coverage() -> None:
"""Test if all charting extension functions are covered by integration tests."""
functions = ChartingService.get_implemented_charting_functions()
functions = Charting.functions()
test_names = [f"test_chart_{func}" for func in functions]
integration_tests_modules = get_integration_tests(
test_type="python", filter_charting_ext=False