def test_add_ignore(self, dir_mngr: DirMngr, tmp_git_folder: str): assert dir_mngr.add(tmp_git_folder) == [tmp_git_folder] assert dir_mngr.ignore(tmp_git_folder) assert dir_mngr.add(tmp_git_folder) == [] assert tmp_git_folder not in dir_mngr.list_dirs()
def test_add_clear(self, dir_mngr: DirMngr, tmp_git_folder: str): assert dir_mngr.add(tmp_git_folder) == [tmp_git_folder] assert dir_mngr.clear_added_dir(tmp_git_folder) assert dir_mngr.list_dirs() == [] assert not dir_mngr.clear_added_dir("/tmp/random/") assert tmp_git_folder not in dir_mngr.dirs