From 04b3a1242efb0974f63a5a0da66de56aed6dfc8d Mon Sep 17 00:00:00 2001 From: hjoaquim Date: Thu, 25 Jan 2024 11:06:42 +0000 Subject: [PATCH] removing charting service on the tests for int tests --- .../extensions/tests/test_integration_tests_api.py | 5 +++-- .../extensions/tests/test_integration_tests_python.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/openbb_platform/extensions/tests/test_integration_tests_api.py b/openbb_platform/extensions/tests/test_integration_tests_api.py index 383ceaf9df0..27d85d3ed82 100644 --- a/openbb_platform/extensions/tests/test_integration_tests_api.py +++ b/openbb_platform/extensions/tests/test_integration_tests_api.py @@ -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 diff --git a/openbb_platform/extensions/tests/test_integration_tests_python.py b/openbb_platform/extensions/tests/test_integration_tests_python.py index 08ee8c0449e..6f9e63bb521 100644 --- a/openbb_platform/extensions/tests/test_integration_tests_python.py +++ b/openbb_platform/extensions/tests/test_integration_tests_python.py @@ -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