def list_profiles(self, profiles_path, show_project=True): profiles_list = list_profiles(profiles_path) append = self.settings.get('append') if isinstance(append, dict): for project, path in append.items(): if not path: return abspath = self.absuser(path) if (isinstance(abspath, six.string_types) and self.isdir(abspath)): profiles_list += list_profiles( abspath, project=project, show_project=show_project) return profiles_list
def test_profiles_utils(): assert not list_profiles('test_path') assert get_ipython_dir() == IPython.paths.get_ipython_dir()