[test] improve unittest_apycot draft
authorDavid Douard <david.douard@logilab.fr>
Thu, 13 Nov 2014 15:15:38 +0100
changeset 1757 224cd20b7284
parent 1756 09b448c89cf7
child 1758 b1b931406fb2
[test] improve unittest_apycot
test/unittest_apycot.py
--- a/test/unittest_apycot.py	Fri Nov 14 12:39:29 2014 +0100
+++ b/test/unittest_apycot.py	Thu Nov 13 15:15:38 2014 +0100
@@ -9,13 +9,6 @@
 
 from cubes.narval.logformat import log_to_html
 
-import os.path
-import narvalbot
-
-##override default ini file
-test_dir = os.path.dirname(__file__)
-narvalbot._CW_SOURCES_FILE = os.path.join(test_dir, 'data', 'narval-cw-sources.ini')
-
 CW_NAMESPACE_DIV = '<div xmlns:cubicweb="http://www.logilab.org/2008/cubicweb">%s</div>'
 
 class MockChecker(object):
@@ -28,7 +21,7 @@
     _repo_path = (u'project1',)
 
     def setUp(self):
-        super(ApycotBaseTC, self).setUp()
+        super(ApycotTC, self).setUp()
         with self.admin_access.client_cnx() as cnx:
             pe = cnx.find('ProjectEnvironment').one()
             tc = cnx.find('TestConfig', name='tc_project1').one()