diff options
| author | Antony Lesuisse <al@openerp.com> | 2014-04-28 17:28:57 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2014-04-28 17:28:57 +0200 |
| commit | d9eec7345b20bda8e8e996d09d03966ac630b065 (patch) | |
| tree | f7c0b8e88a7fc58411d87baa9aeb360c54d8b8bb /addons/web/tests/test_js.py | |
| parent | 065b3c2176b8a7df31eeca2d2a6c87b27dd4a4fb (diff) | |
convert js tests to HttpCase
bzr revid: al@openerp.com-20140428152857-h7z61vdw5crezv2u
Diffstat (limited to 'addons/web/tests/test_js.py')
| -rw-r--r-- | addons/web/tests/test_js.py | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/addons/web/tests/test_js.py b/addons/web/tests/test_js.py index 0bab1de96a5..496d7e283bc 100644 --- a/addons/web/tests/test_js.py +++ b/addons/web/tests/test_js.py @@ -1,24 +1,6 @@ -import urllib -import urlparse -from openerp import sql_db, tools -from qunitsuite.suite import QUnitSuite +import openerp -class WebSuite(QUnitSuite): - def __init__(self, module): - url = urlparse.urlunsplit([ - 'http', - 'localhost:{port}'.format(port=tools.config['xmlrpc_port']), - '/web/tests', - urllib.urlencode({ - 'mod': module, - 'source': tools.config['db_name'], - 'supadmin': tools.config['admin_passwd'], - 'password': 'admin', - }), - '' - ]) - super(WebSuite, self).__init__(url, 50000) +class WebSuite(openerp.tests.HttpCase): + def test_01_js(self): + self.phantom_js('/web/tests?mod=web',"","", login='admin') -def load_tests(loader, standard_tests, _): - standard_tests.addTest(WebSuite('web')) - return standard_tests |
