devtools/testlib.py
branchstable
changeset 5267 7bac6791bbc2
parent 5229 67dbd07a05f3
child 5268 b4bb59824d72
equal deleted inserted replaced
5266:84f285d96363 5267:7bac6791bbc2
   128 
   128 
   129 # base class for cubicweb tests requiring a full cw environments ###############
   129 # base class for cubicweb tests requiring a full cw environments ###############
   130 
   130 
   131 class CubicWebTC(TestCase):
   131 class CubicWebTC(TestCase):
   132     """abstract class for test using an apptest environment
   132     """abstract class for test using an apptest environment
       
   133 
   133     attributes:
   134     attributes:
   134 
   135 
   135     * `vreg`, the vregistry
   136     * `vreg`, the vregistry
   136     * `schema`, self.vreg.schema
   137     * `schema`, self.vreg.schema
   137     * `config`, cubicweb configuration
   138     * `config`, cubicweb configuration
   139     * `session`, server side session associated to `cnx`
   140     * `session`, server side session associated to `cnx`
   140     * `app`, the cubicweb publisher (for web testing)
   141     * `app`, the cubicweb publisher (for web testing)
   141     * `repo`, the repository object
   142     * `repo`, the repository object
   142     * `admlogin`, login of the admin user
   143     * `admlogin`, login of the admin user
   143     * `admpassword`, password of the admin user
   144     * `admpassword`, password of the admin user
   144 
       
   145     """
   145     """
   146     appid = 'data'
   146     appid = 'data'
   147     configcls = devtools.ApptestConfiguration
   147     configcls = devtools.ApptestConfiguration
   148     reset_schema = reset_vreg = False # reset schema / vreg between tests
   148     reset_schema = reset_vreg = False # reset schema / vreg between tests
   149 
   149