[IMP] website test shorter code

bzr revid: al@openerp.com-20140209234531-0i2xgr94yjaqzen8
This commit is contained in:
Antony Lesuisse
2014-02-10 00:45:31 +01:00
parent a21b1c4f8c
commit bf2198e4c8
+2 -2
View File
@@ -8,11 +8,11 @@ fname, _ = os.path.splitext(__file__)
class TestUiAdmin(openerp.tests.HttpCase):
def test(self):
for i in glob.glob('%s_admin_*.js' % fname):
self.phantomjs(openerp.modules.module.get_module_resource('website','tests', i))
self.phantomjs(i)
class TestUiPublic(openerp.tests.HttpCase):
def test(self):
for i in glob.glob('%s_public_*.js' % fname):
self.phantomjs(openerp.modules.module.get_module_resource('website','tests', i))
self.phantomjs(i)