[test] ConnectionHandler is now HTTPConnectionHandler
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 16 Jan 2013 20:27:33 +0100
changeset 1423 1be356f57039
parent 1422 1a1f0cf913bf
child 1424 5473ce74c489
[test] ConnectionHandler is now HTTPConnectionHandler
test/unittest_apycot.py
--- a/test/unittest_apycot.py	Fri Feb 22 12:25:44 2013 +0100
+++ b/test/unittest_apycot.py	Wed Jan 16 20:27:33 2013 +0100
@@ -3,7 +3,7 @@
 from utils import ApycotBaseTC
 
 from apycotlib.writer import TestDataWriter
-from narvalbot import ConnectionHandler
+from narvalbot import HTTPConnectionHandler
 
 from cubes.narval.logformat import log_to_html
 
@@ -23,11 +23,8 @@
         te = self.lgc.start(self.lgce)
         self.commit()
         with self.login('narval', password='narval0') as cu:
-            cnxh = ConnectionHandler(self.config.appid, cnxinfo={})
-            cnxh.cnx = cu.connection
-            cnxh._cu = cu
-            cnxh.cw = cu.req
-            writer = TestDataWriter(cnxh, te.eid)
+            cnxh = HTTPConnectionHandler('toto')
+            writer = TestDataWriter(cnxh, te.cwuri)
             writer.start()
             cwriter = writer.make_check_writer()
             cwriter.start(MockChecker(u'pylint', {}))