# HG changeset patch # User Sylvain Thénault # Date 1308807685 -7200 # Node ID fdace9d67d96ae4f489dee2b35e23bcc5279ac6f # Parent 935423529f454a0b4b61e7f6c228b791815fe0db test fixes diff -r 935423529f45 -r fdace9d67d96 test/unittest_dbapi.py --- a/test/unittest_dbapi.py Wed Jun 22 18:53:38 2011 +0200 +++ b/test/unittest_dbapi.py Thu Jun 23 07:41:25 2011 +0200 @@ -32,7 +32,8 @@ def test_public_repo_api(self): cnx = self.login('anon') self.assertEqual(cnx.get_schema(), self.repo.schema) - self.assertEqual(cnx.source_defs(), {'system': {'type': 'native', 'uri': 'system'}}) + self.assertEqual(cnx.source_defs(), {'system': {'type': 'native', 'uri': 'system', + 'use-cwuri-as-url': False}}) self.restore_connection() # proper way to close cnx self.assertRaises(ProgrammingError, cnx.get_schema) self.assertRaises(ProgrammingError, cnx.source_defs) diff -r 935423529f45 -r fdace9d67d96 test/unittest_entity.py --- a/test/unittest_entity.py Wed Jun 22 18:53:38 2011 +0200 +++ b/test/unittest_entity.py Thu Jun 23 07:41:25 2011 +0200 @@ -610,7 +610,9 @@ req = self.request() note = req.create_entity('Note', type=u'z') metainf = note.cw_metainformation() - self.assertEqual(metainf, {'source': {'type': 'native', 'uri': 'system'}, 'type': u'Note', 'extid': None}) + self.assertEqual(metainf, {'source': {'type': 'native', 'uri': 'system', + 'use-cwuri-as-url': False}, + 'type': u'Note', 'extid': None}) self.assertEqual(note.absolute_url(), 'http://testing.fr/cubicweb/note/%s' % note.eid) metainf['source'] = metainf['source'].copy() metainf['source']['base-url'] = 'http://cubicweb2.com/' diff -r 935423529f45 -r fdace9d67d96 web/test/unittest_views_xmlrss.py --- a/web/test/unittest_views_xmlrss.py Wed Jun 22 18:53:38 2011 +0200 +++ b/web/test/unittest_views_xmlrss.py Thu Jun 23 07:41:25 2011 +0200 @@ -14,8 +14,8 @@ - %(date)s - %(date)s + %(cdate)s + %(mdate)s @@ -27,7 +27,8 @@ -''' % {'date': SERIALIZERS['Datetime'](req.user.creation_date), +''' % {'cdate': SERIALIZERS['Datetime'](req.user.creation_date), + 'mdate': SERIALIZERS['Datetime'](req.user.modification_date), 'state_eid': req.user.in_state[0].eid, 'group_eid': req.user.in_group[0].eid})