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

This commit is contained in:
Nicolas Patry 2022-03-04 09:53:00 +01:00 committed by GitHub
parent a7df656f03
commit a6e3b17981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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__}")