cubicweb/devtools/test/unittest_dbfill.py
changeset 11269 73ac69970047
parent 11057 0b59724cb3f2
child 12567 26744ad37953
child 12725 0481ece35cb2
equal deleted inserted replaced
11268:f6938ae0dea8 11269:73ac69970047
    54 
    54 
    55     def _available_Person_firstname(self, etype, attrname):
    55     def _available_Person_firstname(self, etype, attrname):
    56         return [f.strip() for f in io.open(osp.join(DATADIR, 'firstnames.txt'), encoding='latin1')]
    56         return [f.strip() for f in io.open(osp.join(DATADIR, 'firstnames.txt'), encoding='latin1')]
    57 
    57 
    58     def setUp(self):
    58     def setUp(self):
    59         config = ApptestConfiguration('data', apphome=DATADIR)
    59         config = ApptestConfiguration('data', __file__)
    60         config.bootstrap_cubes()
    60         config.bootstrap_cubes()
    61         schema = config.load_schema()
    61         schema = config.load_schema()
    62         e_schema = schema.eschema('Person')
    62         e_schema = schema.eschema('Person')
    63         self.person_valgen = ValueGenerator(e_schema, self._choice_func)
    63         self.person_valgen = ValueGenerator(e_schema, self._choice_func)
    64         e_schema = schema.eschema('Bug')
    64         e_schema = schema.eschema('Bug')