Coverage for mindsdb / integrations / libs / ml_handler_process / create_validation_process.py: 38%
6 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-21 00:36 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-21 00:36 +0000
1import importlib
3from mindsdb.interfaces.storage.model_fs import HandlerStorage
6def create_validation_process(target: str, args: dict, integration_id: int, module_path: str) -> None:
7 module = importlib.import_module(module_path)
9 if hasattr(module.Handler, 'create_validation'):
10 module.Handler.create_validation(
11 target,
12 args=args,
13 handler_storage=HandlerStorage(integration_id)
14 )