Пример #1
0
 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()
Пример #3
0
    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()
Пример #5
0
 def tearDown(self):
     if self.HELPDESK_KB_ENABLED:
         helpdesk_settings.HELPDESK_KB_ENABLED = True
         reload_urlconf()
Пример #6
0
 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()
Пример #7
0
    def tearDown(self):
        from helpdesk import settings

        if self.HELPDESK_KB_ENABLED:
            settings.HELPDESK_KB_ENABLED = True
            reload_urlconf()