diff options
| author | Fabien Meghazi <fme@openerp.com> | 2014-03-26 16:14:11 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2014-03-26 16:14:11 +0100 |
| commit | 0195f0d8170e06ab2b83aca2209034bafda4702e (patch) | |
| tree | e61e76f8f83a784325d1a5c1a993216c962bad01 /addons/base_import_module/tests | |
| parent | 62a5632aec7c14a094164862f8bc2f47060a7943 (diff) | |
[ADD] Test module
Test suite is still todo
bzr revid: fme@openerp.com-20140326151411-moo1yuozvpgro1mh
Diffstat (limited to 'addons/base_import_module/tests')
| -rw-r--r-- | addons/base_import_module/tests/test_module/__openerp__.py | 37 | ||||
| -rw-r--r-- | addons/base_import_module/tests/test_module/static/src/img/c64.png | bin | 0 -> 24385 bytes | |||
| -rw-r--r-- | addons/base_import_module/tests/test_module/static/src/js/test.js | 1 | ||||
| -rw-r--r-- | addons/base_import_module/tests/test_module/test.xml | 33 |
4 files changed, 71 insertions, 0 deletions
diff --git a/addons/base_import_module/tests/test_module/__openerp__.py b/addons/base_import_module/tests/test_module/__openerp__.py new file mode 100644 index 00000000000..b0ecb362b3f --- /dev/null +++ b/addons/base_import_module/tests/test_module/__openerp__.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2013-Today OpenERP SA (<http://www.openerp.com>). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +############################################################################## + +{ + 'name': 'Test Module', + 'category': 'Website', + 'summary': 'Custom', + 'version': '1.0', + 'description': """ + Test + """, + 'author': 'OpenERP SA', + 'depends': ['website'], + 'data': [ + 'test.xml', + ], + 'installable': True, + 'application': True, +} diff --git a/addons/base_import_module/tests/test_module/static/src/img/c64.png b/addons/base_import_module/tests/test_module/static/src/img/c64.png Binary files differnew file mode 100644 index 00000000000..3e8183f934f --- /dev/null +++ b/addons/base_import_module/tests/test_module/static/src/img/c64.png diff --git a/addons/base_import_module/tests/test_module/static/src/js/test.js b/addons/base_import_module/tests/test_module/static/src/js/test.js new file mode 100644 index 00000000000..de803c83c34 --- /dev/null +++ b/addons/base_import_module/tests/test_module/static/src/js/test.js @@ -0,0 +1 @@ +console.log('test_module javascript'); diff --git a/addons/base_import_module/tests/test_module/test.xml b/addons/base_import_module/tests/test_module/test.xml new file mode 100644 index 00000000000..53c7d680fd0 --- /dev/null +++ b/addons/base_import_module/tests/test_module/test.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> +<data> + <!-- TODO: make test suite --> + <record id="base.main_company2" model="res.company"> + <field name="name">Module Import Success</field> + </record> + <record id="main_company2" model="res.company"> + <field name="name">Hagrid</field> + <field name="rml_header1">Your Company Tagline</field> + <field name="currency_id" ref="base.EUR"/> + </record> + + <template id="test" name="Test Page" page="True"> + <t t-call="website.layout"> + <h1> + This page comes from an imported module! + </h1> + <p> + And this static image too ! + <img src="/test_module/static/src/img/c64.png"/> + </p> + </t> + </template> + + <template id="website.contactus" name="Test Import" page="True"> + <t t-call="website.layout"> + <h1>This page has been overwritten by an uploaded module</h1> + </t> + </template> + +</data> +</openerp> |
