[test] run unittest_syncschema with postgresql
Lets us test more things, since we can actually do ALTER TABLE.
--- 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()