mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-02 15:32:04 +00:00
Cleanup
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
"""Test the integration tests."""
|
||||
from extensions.tests.utils.integration_tests_testers import (
|
||||
check_missing_integration_test_params,
|
||||
check_missing_integration_test_providers,
|
||||
get_integration_tests,
|
||||
get_module_functions,
|
||||
)
|
||||
|
||||
|
||||
def run_test(test_type: str, check_function) -> None:
|
||||
"""Run tests helper function."""
|
||||
integration_tests = get_integration_tests(test_type=test_type)
|
||||
functions = get_module_functions(integration_tests)
|
||||
missing_items = check_function(functions)
|
||||
|
||||
assert not missing_items, "\n".join(missing_items)
|
||||
|
||||
|
||||
def test_python_interface_integration_test_providers() -> None:
|
||||
"""Test if there are any missing providers for integration tests."""
|
||||
run_test("unit", check_missing_integration_test_providers)
|
||||
|
||||
|
||||
def test_python_interface_integration_test_params() -> None:
|
||||
"""Test if there are any missing params for integration tests."""
|
||||
run_test("unit", check_missing_integration_test_params)
|
||||
Reference in New Issue
Block a user