diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-11-23 12:49:23 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-11-23 12:49:23 +0100 |
| commit | 6b2b2d889c94b0cbab5fbe14a4555f4c8dbe179c (patch) | |
| tree | 6f8201364a87754347eb213bd284e2f8e9c75aa2 /addons/web/controllers/testing.py | |
| parent | 709f2506ff40d799aada58df74dd78522d965868 (diff) | |
[IMP] move nonliteral domains and contexts to JS test case
bzr revid: xmo@openerp.com-20121123114923-t4047w6jztria91x
Diffstat (limited to 'addons/web/controllers/testing.py')
| -rw-r--r-- | addons/web/controllers/testing.py | 19 |
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: |
