Re-enabling all fast pipeline tests. (#15924)
This commit is contained in:
parent
a7df656f03
commit
a6e3b17981
|
@ -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__}")
|
||||
|
|
Loading…
Reference in New Issue