devtools/_apptest.py
branchreldefsecurity
changeset 3877 7ca53fc72a0a
parent 2920 64322aa83a1d
equal deleted inserted replaced
3876:1169d3154be6 3877:7ca53fc72a0a
    90         self.app = CubicWebPublisher(config, vreg=vreg)
    90         self.app = CubicWebPublisher(config, vreg=vreg)
    91         self.verbose = verbose
    91         self.verbose = verbose
    92         schema = self.vreg.schema
    92         schema = self.vreg.schema
    93         # else we may run into problems since email address are ususally share in app tests
    93         # else we may run into problems since email address are ususally share in app tests
    94         # XXX should not be necessary anymore
    94         # XXX should not be necessary anymore
    95         schema.rschema('primary_email').set_rproperty('CWUser', 'EmailAddress', 'composite', False)
    95         schema.rschema('primary_email').rdef('CWUser', 'EmailAddress').composite = False
    96         self.deletable_entities = unprotected_entities(schema)
    96         self.deletable_entities = unprotected_entities(schema)
    97 
    97 
    98     def restore_database(self):
    98     def restore_database(self):
    99         """called by unittests' tearDown to restore the original database
    99         """called by unittests' tearDown to restore the original database
   100         """
   100         """