equal
deleted
inserted
replaced
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 |