Exemplo n.º 1
0
def uninstall(context, app, dry_run=False):
    from frappe.installer import remove_app
    for site in context.sites:
        try:
            frappe.init(site=site)
            frappe.connect()
            remove_app(app, dry_run)
        finally:
            frappe.destroy()
def uninstall(context, app, dry_run=False):
	from frappe.installer import remove_app
	for site in context.sites:
		try:
			frappe.init(site=site)
			frappe.connect()
			remove_app(app, dry_run)
		finally:
			frappe.destroy()
Exemplo n.º 3
0
def uninstall(context, app, dry_run=False, yes=False):
	"Remove app and linked modules from site"
	from frappe.installer import remove_app
	for site in context.sites:
		try:
			frappe.init(site=site)
			frappe.connect()
			remove_app(app, dry_run, yes)
		finally:
			frappe.destroy()
Exemplo n.º 4
0
def uninstall(context, app, dry_run=False, yes=False):
    "Remove app and linked modules from site"
    from frappe.installer import remove_app
    for site in context.sites:
        try:
            frappe.init(site=site)
            frappe.connect()
            remove_app(app, dry_run, yes)
        finally:
            frappe.destroy()
Exemplo n.º 5
0
def uninstall(context, app, dry_run, yes, no_backup, force):
	"Remove app and linked modules from site"
	from frappe.installer import remove_app
	for site in context.sites:
		try:
			frappe.init(site=site)
			frappe.connect()
			remove_app(app_name=app, dry_run=dry_run, yes=yes, no_backup=no_backup, force=force)
		finally:
			frappe.destroy()
	if not context.sites:
		raise SiteNotSpecifiedError
Exemplo n.º 6
0
    def test_dry_run(self):
        """Check if dry run in not destructive."""

        # nothing to assert, if this fails rest of the test suite will crumble.
        remove_app("frappe", dry_run=True, yes=True, no_backup=True)