Files
OpenBB/openbb_platform/extensions/tests/test_routers.py
Igor Radovanovic 5faa50c0d4 Fix bug. Add router test. (#5888)
* Fix bug. Add router test.

* Simplify
2023-12-14 17:09:48 +00:00

19 lines
636 B
Python

"""Test the routers."""
from extensions.tests.utils.router_testers import (
check_router_function_models,
check_router_model_functions_signature,
)
def test_router_function_models() -> None:
"""Test if the models in the router functions exist in the provider interface map."""
missing_models = check_router_function_models()
assert not missing_models, "\n".join(missing_models)
def test_router_model_functions_signature() -> None:
"""Test if the router functions have the correct signature."""
missing_args = check_router_model_functions_signature()
assert not missing_args, "\n".join(missing_args)