def setUp(self): BaseRelationsTestCase.setUp(self) self.mock_request() self.configure() self.req.redirect = self.redirect self.redirect_url = None self.redirect_permanent = None
def setUp(self): BaseRelationsTestCase.setUp(self) # bhrelations point from destination to source for destination, source, type in self.edges: self.env.db_direct_transaction( """INSERT INTO bloodhound_relations (source, destination, type) VALUES ('%s', '%s', '%s')""" % (source, destination, type)) self.validator = Validator(self.env)
def setUp(self): BaseRelationsTestCase.setUp(self) # bhrelations point from destination to source for destination, source, type in self.edges: self.env.db_direct_transaction( """INSERT INTO bloodhound_relations (source, destination, type) VALUES ('%s', '%s', '%s')""" % (source, destination, type) ) self.validator = Validator(self.env)
def tearDown(self): shutil.rmtree(self.env.path) BaseRelationsTestCase.tearDown(self)
def setUp(self): BaseRelationsTestCase.setUp(self, enabled=['bhsearch.*']) self.global_env.path = tempfile.mkdtemp('bhrelations-tempenv') self.search_api = BloodhoundSearchApi(self.env) self.search_api.upgrade_environment(self.env.db_transaction)
def setUp(self): BaseRelationsTestCase.setUp(self) ticket_id = self._insert_ticket(self.env, "Foo") self.req.method = 'POST' self.req.args['id'] = ticket_id