def test_enable(self): conf = Conf('primtux') lines = startup.split('\n') lines = [line + '\n' for line in lines] r = conf.load(lines[:-1]) soft = conf.get_soft('/usr/local/bin/primtux/handymenu-mini') conf.enable(soft) assert str(conf) == after_enable
def test_remove(self): conf = Conf('primtux') lines = startup.split('\n') lines = [line + '\n' for line in lines] r = conf.load(lines[:-1]) has_removed = conf.remove(conf.get_soft('/usr/local/bin/primtux/handymenu-maxi')) assert has_removed == True assert str(conf) == startup_delete
def test_add(self): conf = Conf('primtux') lines = startup.split('\n') lines = [line + '\n' for line in lines] conf.load(lines[:-1]) soft = Soft('firefox', 'firefox', '', '') conf.add(soft) assert str(conf) == startup_add
def test_disable(self): conf = Conf('primtux') lines = startup.split('\n') lines = [line + '\n' for line in lines] r = conf.load(lines[:-1]) soft = conf.get_soft('rox -p 1') conf.disable(soft) soft = conf.get_soft('lxpanel') conf.disable(soft) assert str(conf) == after_disable
GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. http://github.com/FMCorz/mdk """ import sys import argparse from lib import workplace, tools, jira from lib.tools import debug from lib.config import Conf Wp = workplace.Workplace() C = Conf() # Arguments parser = argparse.ArgumentParser(description="Push a branch to a remote.") parser.add_argument('-b', '--branch', metavar='branch', help='the branch to push. Default is current branch.') parser.add_argument('-r', '--remote', metavar='remote', help='remote to push to. Default is your remote.') parser.add_argument( '-f', '--force', action='store_true',
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. http://github.com/FMCorz/mdk """ import sys import os import argparse from lib import workplace from lib.tools import debug from lib.config import Conf Wp = workplace.Workplace() C = Conf() # Arguments parser = argparse.ArgumentParser( description='Perform several checks on your current installation') # parser.add_argument('-f', '--fix', dest='fix', action='store_true', help='Fix the problems where possible') parser.add_argument('-i', '--integration', action='store_true', help='runs the script on the integration instances', dest='integration') parser.add_argument('-s', '--stable', action='store_true', help='runs the script on the stable instances', dest='stable')
def test_load(self): conf = Conf('primtux') lines = startup.split('\n') lines = [line + '\n' for line in lines] conf.load(lines[:-1]) assert str(conf) == startup
l.show() h.pack_start(drag_vbox, True, True, False) vbox.pack_start(h, True, True, False) conf.open() conf.save() for soft in conf.softs: self._add_soft(conf, soft, vbox) # activate header vbox.pack_end(hbox_header, False, False, False) swin = Gtk.ScrolledWindow() swin.add_with_viewport(vbox) self.add(swin) self.set_default_size(800, 600) self.show_all() if __name__ == "__main__": user = None if len(sys.argv) > 1: user = sys.argv[1] gtk_style() win = FluxBoxLauncherWindow(Conf(user)) win.connect("destroy", Gtk.main_quit) win.show_all() Gtk.main() exit(0)