"""Base module for test handlers."""from__future__importannotationsimportosfromtypingimportTYPE_CHECKING,AnyifTYPE_CHECKING:from...config.components.runway.baseimportConfigProperty
[docs]classTestHandler:"""Base class for test handlers."""
[docs]@classmethoddefhandle(cls,name:str,args:ConfigProperty|dict[str,Any])->None:"""Redefine in subclass."""raiseNotImplementedError
[docs]@staticmethoddefget_dirs(provided_path:str)->list[str]:"""Return list of directories."""repo_dirs=next(os.walk(provided_path))[1]if".git"inrepo_dirs:repo_dirs.remove(".git")# not relevant for any repo operationsreturnrepo_dirs