UnisKB/scripts/check_model_loading.py

7 lines
462 B
Python
Raw Normal View History

"""Model loading regressions against SQLite in memory; never connects to shared services."""
from pathlib import Path
source = (Path(__file__).with_name('check_knowledge_ext.py')).read_text(encoding='utf-8')
source = source.replace("loadTestsFromName('knowledge.test_knowledge_ext')", "loadTestsFromNames(['models_provider.test_model_runtime', 'models_provider.test_model_loading_api', 'knowledge.test_knowledge_ext'])")
exec(compile(source, __file__, 'exec'))