devtools/testlib.py
changeset 5274 16461f675734
parent 5249 842a40cade9a
parent 5268 b4bb59824d72
child 5385 b6e250dd7a7d
equal deleted inserted replaced
5272:f7d2df59231a 5274:16461f675734
   132 
   132 
   133 # base class for cubicweb tests requiring a full cw environments ###############
   133 # base class for cubicweb tests requiring a full cw environments ###############
   134 
   134 
   135 class CubicWebTC(TestCase):
   135 class CubicWebTC(TestCase):
   136     """abstract class for test using an apptest environment
   136     """abstract class for test using an apptest environment
       
   137 
   137     attributes:
   138     attributes:
   138 
   139 
   139     * `vreg`, the vregistry
   140     * `vreg`, the vregistry
   140     * `schema`, self.vreg.schema
   141     * `schema`, self.vreg.schema
   141     * `config`, cubicweb configuration
   142     * `config`, cubicweb configuration
   143     * `session`, server side session associated to `cnx`
   144     * `session`, server side session associated to `cnx`
   144     * `app`, the cubicweb publisher (for web testing)
   145     * `app`, the cubicweb publisher (for web testing)
   145     * `repo`, the repository object
   146     * `repo`, the repository object
   146     * `admlogin`, login of the admin user
   147     * `admlogin`, login of the admin user
   147     * `admpassword`, password of the admin user
   148     * `admpassword`, password of the admin user
   148 
       
   149     """
   149     """
   150     appid = 'data'
   150     appid = 'data'
   151     configcls = devtools.ApptestConfiguration
   151     configcls = devtools.ApptestConfiguration
   152     reset_schema = reset_vreg = False # reset schema / vreg between tests
   152     reset_schema = reset_vreg = False # reset schema / vreg between tests
   153 
   153