def METHOD_NAME(self):
    if not self.enabled or self.registryLoaded:
        return
    from anyblok import (
        configuration_post_load,
        load_init_function_from_entry_points,
    )
    from anyblok.blok import BlokManager
    from anyblok.common import return_list
    from anyblok.config import Configuration, get_db_name
    from anyblok.registry import RegistryManager
    # Load the registry here not in configuration,
    # because the configurations are not loaded in order of score
    self.registryLoaded = True
    load_init_function_from_entry_points(unittest=True)
    Configuration.load_config_for_test()
    Configuration.parse_options(self.AnyBlokOptions)
    configuration_post_load()
    BlokManager.load()
    db_name = get_db_name()
    registry = RegistryManager.get(db_name)
    if not registry:
        return
    installed_bloks = registry.System.Blok.list_by_state("installed")
    selected_bloks = (
        return_list(Configuration.get("selected_bloks")) or installed_bloks
    )
    unwanted_bloks = return_list(Configuration.get("unwanted_bloks")) or []
    self.authorized_blok_paths = set(
        BlokManager.getPath(b)
        for b in BlokManager.list()
        if b in selected_bloks and b not in unwanted_bloks
    )
    test_dirs = self.authorized_blok_test_dirs = set()
    for startpath in self.authorized_blok_paths:
        for root, dirs, _ in walk(startpath):
            if "tests" in dirs:
                test_dirs.add(join(root, "tests"))
    registry.close()  # free the registry to force create it again