# HG changeset patch # User Sylvain Thénault # Date 1284019686 -7200 # Node ID d8f0dce0b86df428d391406e554dfff2d612fbb4 # Parent 12fdccedab5a2b174d806cce9a85935c0013d21a [test] fixes to follow recent changes diff -r 12fdccedab5a -r d8f0dce0b86d server/test/unittest_multisources.py --- a/server/test/unittest_multisources.py Thu Sep 09 10:08:05 2010 +0200 +++ b/server/test/unittest_multisources.py Thu Sep 09 10:08:06 2010 +0200 @@ -151,7 +151,7 @@ self.assertEquals(len(rset), 5, zip(rset.rows, rset.description)) rset = cu.execute('Any X ORDERBY FTIRANK(X) WHERE X has_text "card"') self.assertEquals(len(rset), 5, zip(rset.rows, rset.description)) - Connection_close(cnx) + Connection_close(cnx.cnx) # cnx is a TestCaseConnectionProxy def test_synchronization(self): cu = cnx2.cursor() diff -r 12fdccedab5a -r d8f0dce0b86d test/unittest_cwctl.py --- a/test/unittest_cwctl.py Thu Sep 09 10:08:05 2010 +0200 +++ b/test/unittest_cwctl.py Thu Sep 09 10:08:06 2010 +0200 @@ -39,7 +39,7 @@ def test_list(self): from cubicweb.cwctl import ListCommand - ListCommand().run([]) + ListCommand(None).run([]) class CubicWebShellTC(CubicWebTC): diff -r 12fdccedab5a -r d8f0dce0b86d web/test/unittest_web.py --- a/web/test/unittest_web.py Thu Sep 09 10:08:05 2010 +0200 +++ b/web/test/unittest_web.py Thu Sep 09 10:08:06 2010 +0200 @@ -26,9 +26,9 @@ arurl = req.ajax_replace_url # NOTE: for the simplest use cases, we could use doctest self.assertEquals(arurl('foo', rql='Person P', vid='list'), - """javascript: $('#foo').loadxhtml("http://testing.fr/cubicweb/json?rql=Person%20P&fname=view&vid=list", null, 'get', 'replace'); noop()""") + """javascript: $('#foo').loadxhtml("http://testing.fr/cubicweb/json?rql=Person%20P&fname=view&vid=list",null,"get","replace"); noop()""") self.assertEquals(arurl('foo', rql='Person P', vid='oneline', name='bar', age=12), - """javascript: $('#foo').loadxhtml("http://testing.fr/cubicweb/json?name=bar&age=12&rql=Person%20P&fname=view&vid=oneline", null, 'get', 'replace'); noop()""") + """javascript: $('#foo').loadxhtml("http://testing.fr/cubicweb/json?name=bar&age=12&rql=Person%20P&fname=view&vid=oneline",null,"get","replace"); noop()""") if __name__ == '__main__':