[FIX] use db_name from tools.config to know where to auth

auth's currently disabled so it doesn't matter much really

bzr revid: xmo@openerp.com-20131105154131-35lqg2l6tdccgvp7
This commit is contained in:
Xavier Morel
2013-11-05 16:41:31 +01:00
parent 5ce1bfdddf
commit a9193cf2ec
+2 -2
View File
@@ -67,7 +67,7 @@ class CrawlSuite(unittest2.TestSuite):
# FIXME: host, port, db?
auth = self.opener.open(
'http://localhost:8069/login?' + urllib.urlencode(
{'db': 'website', 'login': user, 'key': password, }))
{'db': tools.config['db_name'], 'login': user, 'key': password, }))
assert auth.getcode() < 400, "Auth failure %d" % auth.getcode()
def _wrapped_run(self, result, debug=False):
@@ -106,6 +106,6 @@ class CrawlSuite(unittest2.TestSuite):
def load_tests(loader, base, _):
base.addTest(CrawlSuite())
# blog duplicate (&al?) are on links
#base.addTest(CrawlSuite('admin', 'admin'))
#base.addTest(CrawlSuite('admin', tools.config['admin_passwd']))
#base.addTest(CrawlSuite('demo', 'demo'))
return base