# HG changeset patch # User Julien Cristau # Date 1435046734 -7200 # Node ID b2d2099dfae8e2ffb1869f19bfbba03deca9c863 # Parent 1d0f4064a87eadce7eb4263b436e80dd761adcd0 [test] run unittest_syncschema with postgresql Lets us test more things, since we can actually do ALTER TABLE. diff -r 1d0f4064a87e -r b2d2099dfae8 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()