Exemplo n.º 1
0
    def setUp(self):
        """Custom setUp method.

        The 'limits' is manually loaded to ensure extra parameters
        provided by 'postfix_relay_domains' are properly received.
        """
        super(ResourceTestCase, self).setUp()
        #exts_pool.load_extension("modoboa_admin_limits")
        for tpl in LimitTemplates().templates:
            parameters.save_admin(
                "DEFLT_{0}".format(tpl[0].upper()), 2,
                app="modoboa_admin_limits"
            )
        populate_database()
Exemplo n.º 2
0
 def setUp(self):
     super(RelayDomainsTestCase, self).setUp()
     factories.populate_database()
     self.rdom = RelayDomainFactory(name='relaydomain.tld')
     RelayDomainAliasFactory(name='relaydomainalias.tld', target=self.rdom)
Exemplo n.º 3
0
 def setUp(self):
     super(EventsTestCase, self).setUp()
     factories.populate_database()
Exemplo n.º 4
0
 def setUp(self):
     super(FormTestCase, self).setUp()
     factories.populate_database()
     self.clt.logout()
     self.clt.login(username="******", password="******")
Exemplo n.º 5
0
 def setUp(self):
     super(UserCalendarTestCase, self).setUp()
     populate_database()
Exemplo n.º 6
0
 def setUp(self):
     super(AccessRuleTestCase, self).setUp()
     populate_database()
     self.rights_file_path = tempfile.mktemp()
     parameters.save_admin(
         "RIGHTS_FILE_PATH", self.rights_file_path, app="modoboa_radicale")
Exemplo n.º 7
0
 def setUp(self):
     super(PermissionsTestCase, self).setUp()
     populate_database()
Exemplo n.º 8
0
 def setUp(self):
     super(EventsTestCase, self).setUp()
     factories.populate_database()
Exemplo n.º 9
0
 def setUp(self):
     super(FormTestCase, self).setUp()
     factories.populate_database()
     self.clt.logout()
     self.clt.login(username="******", password="******")