devtools/__init__.py
changeset 9864 f60a80592224
parent 9790 0872ac2a1db0
child 9886 1b26289217a3
equal deleted inserted replaced
9863:3fbad401eb61 9864:f60a80592224
   275       class MyTests(CubicWebTC):
   275       class MyTests(CubicWebTC):
   276           _config = RealDatabaseConfiguration('myapp',
   276           _config = RealDatabaseConfiguration('myapp',
   277                                               sourcefile='/path/to/sources')
   277                                               sourcefile='/path/to/sources')
   278 
   278 
   279           def test_something(self):
   279           def test_something(self):
   280               rset = self.execute('Any X WHERE X is CWUser')
   280               with self.admin_access.web_request() as req:
   281               self.view('foaf', rset)
   281                   rset = req.execute('Any X WHERE X is CWUser')
       
   282                   self.view('foaf', rset, req=req)
   282 
   283 
   283     """
   284     """
   284     skip_db_create_and_restore = True
   285     skip_db_create_and_restore = True
   285     read_instance_schema = True # read schema from database
   286     read_instance_schema = True # read schema from database
   286 
   287