Exemple #1
0
 def test_config_repository_exists(self, restore_singletons: Any,
                                   path: str) -> None:
     Plugins.instance()  # initializes
     config_search_path = create_config_search_path(path)
     repo = ConfigRepository(config_search_path=config_search_path)
     assert repo.exists("dataset/imagenet.yaml")
     assert not repo.exists("not_found.yaml")
Exemple #2
0
 def test_config_repository_exists(self, path: str) -> None:
     config_search_path = create_config_search_path(path)
     repo = ConfigRepository(config_search_path=config_search_path)
     assert repo.exists("dataset/imagenet.yaml")
     assert not repo.exists("not_found.yaml")