summaryrefslogtreecommitdiff
path: root/addons/web/controllers
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-11-23 12:49:23 +0100
committerXavier Morel <xmo@openerp.com>2012-11-23 12:49:23 +0100
commit6b2b2d889c94b0cbab5fbe14a4555f4c8dbe179c (patch)
tree6f8201364a87754347eb213bd284e2f8e9c75aa2 /addons/web/controllers
parent709f2506ff40d799aada58df74dd78522d965868 (diff)
[IMP] move nonliteral domains and contexts to JS test case
bzr revid: xmo@openerp.com-20121123114923-t4047w6jztria91x
Diffstat (limited to 'addons/web/controllers')
-rw-r--r--addons/web/controllers/testing.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/addons/web/controllers/testing.py b/addons/web/controllers/testing.py
index b8e3da8ce24..5c7fdf46e1d 100644
--- a/addons/web/controllers/testing.py
+++ b/addons/web/controllers/testing.py
@@ -82,18 +82,6 @@ TESTING = Template(u"""<!DOCTYPE html>
</html>
""")
-nonliteral_test_contexts = [
- "{'default_opportunity_id': active_id, 'default_duration': 1.0, 'lng': lang}",
-]
-nonliteral_test_domains = [
- "['|', '&', ('date', '!=', False), ('date', '<=', time.strftime('%Y-%m-%d')), ('is_overdue_quantity', '=', True)]",
- "[('company_id', '=', context.get('company_id',False))]",
- "[('year','=',time.strftime('%Y'))]",
- "[('state','=','draft'),('date_order','<',time.strftime('%Y-%m-%d %H:%M:%S'))]",
- "[('state','!=','cancel'),('opening_date','>',datetime.date.today().strftime('%Y-%m-%d'))]",
- "[('type','=','in'),('day','<=', time.strftime('%Y-%m-%d')),('day','>',(datetime.date.today()-datetime.timedelta(days=15)).strftime('%Y-%m-%d'))]",
-]
-
class TestRunnerController(http.Controller):
_cp_path = '/web/tests'
@@ -154,13 +142,6 @@ class TestRunnerController(http.Controller):
if module.get_module_resource(name, 'static')
if manifests[name]['js']]), db_info=json.dumps(db_info))
- @http.jsonrequest
- def load_context(self, req, index):
- return nonliterals.Context(req.session, nonliteral_test_contexts[index])
- @http.jsonrequest
- def load_domain(self, req, index):
- return nonliterals.Domain(req.session, nonliteral_test_domains[index])
-
def load_manifest(self, name):
manifest = module.load_information_from_description_file(name)
if manifest: