def make_backend(self, detailed_infos_for_cascading_failures=False): backend = BackendConverter(source_backend_class=BKclass1, target_backend_class=BKclass2, target_backend_grid_path=None, detailed_infos_for_cascading_failures= detailed_infos_for_cascading_failures) return backend
def test_init(self): backend = BackendConverter(source_backend_class=BKclass1, target_backend_class=BKclass2, target_backend_grid_path=None) with warnings.catch_warnings(): warnings.filterwarnings("ignore") env = make(test=True, backend=backend)