def test_ca_create_from_files(correctly_formatted_cas_files): """ Test CollectiveActions `read_from_files` function. """ cas = CollectiveActions.read_from_files(correctly_formatted_cas_files) _test_cas(cas)
def get_cas_from_files(): fc = FileClient() files = fc.get_all_files() return CollectiveActions.read_from_files(files).sort()
def get_cas_from_files(folder_path: str = ACTION_FOLDER): """ Get CAS from action files. """ files = get_all_files(folder_path) return CollectiveActions.read_from_files(files, folder=folder_path).sort()