[test] run unittest_syncschema with postgresql
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 23 Jun 2015 10:05:34 +0200
changeset 10442 b2d2099dfae8
parent 10441 1d0f4064a87e
child 10443 2d3834df64ab
[test] run unittest_syncschema with postgresql Lets us test more things, since we can actually do ALTER TABLE.
hooks/test/unittest_syncschema.py
--- a/hooks/test/unittest_syncschema.py	Fri May 15 18:11:08 2015 +0200
+++ b/hooks/test/unittest_syncschema.py	Tue Jun 23 10:05:34 2015 +0200
@@ -21,15 +21,23 @@
 
 from cubicweb import ValidationError, Binary
 from cubicweb.schema import META_RTYPES
+from cubicweb.devtools import startpgcluster, stoppgcluster, PostgresApptestConfiguration
 from cubicweb.devtools.testlib import CubicWebTC
 from cubicweb.server.sqlutils import SQL_PREFIX
 from cubicweb.devtools.repotest import schema_eids_idx
 
 
+def setUpModule():
+    startpgcluster(__file__)
+
+
 def tearDownModule(*args):
+    stoppgcluster(__file__)
     del SchemaModificationHooksTC.schema_eids
 
+
 class SchemaModificationHooksTC(CubicWebTC):
+    configcls = PostgresApptestConfiguration
 
     def setUp(self):
         super(SchemaModificationHooksTC, self).setUp()