Unverified Commit a6e3b179 authored by Nicolas Patry's avatar Nicolas Patry Committed by GitHub
Browse files

Re-enabling all fast pipeline tests. (#15924)

parent a7df656f
......@@ -64,7 +64,8 @@ def get_tiny_config_from_class(configuration_class):
camel_case_model_name = configuration_class.__name__.split("Config")[0]
try:
module = importlib.import_module(f".test_modeling_{model_type.replace('-', '_')}", package="tests")
model_slug = model_type.replace("-", "_")
module = importlib.import_module(f".test_modeling_{model_slug}", package=f"tests.{model_slug}")
model_tester_class = getattr(module, f"{camel_case_model_name}ModelTester", None)
except (ImportError, AttributeError):
logger.error(f"No model tester class for {configuration_class.__name__}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment