def reload_views(self): try: reload(sys.modules['helpdesk.decorators']) reload(sys.modules['helpdesk.views.staff']) reload_urlconf() except KeyError: pass
def setUp(self): from helpdesk import settings self.HELPDESK_KB_ENABLED = settings.HELPDESK_KB_ENABLED if self.HELPDESK_KB_ENABLED: settings.HELPDESK_KB_ENABLED = False reload_urlconf()
def tearDown(self): from helpdesk import settings if self.HELPDESK_KB_ENABLED: settings.HELPDESK_KB_ENABLED = True reload_urlconf()
def tearDown(self): if self.HELPDESK_KB_ENABLED: helpdesk_settings.HELPDESK_KB_ENABLED = True reload_urlconf()
def setUp(self): self.HELPDESK_KB_ENABLED = helpdesk_settings.HELPDESK_KB_ENABLED if self.HELPDESK_KB_ENABLED: helpdesk_settings.HELPDESK_KB_ENABLED = False reload_urlconf()