diff --git a/numitech/README.rst b/numitech/README.rst new file mode 100644 index 00000000..b6787c98 --- /dev/null +++ b/numitech/README.rst @@ -0,0 +1,8 @@ +NumiTech +======== +Module that install technological modules that we want for quality. + +Contributors +------------ +* Jordi Riera +* David Dufresne diff --git a/numitech/__init__.py b/numitech/__init__.py new file mode 100644 index 00000000..6f71e463 --- /dev/null +++ b/numitech/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# © 2018 Jordi Riera +# © 2018 David Dufresne +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). diff --git a/numitech/__manifest__.py b/numitech/__manifest__.py new file mode 100644 index 00000000..ba15c340 --- /dev/null +++ b/numitech/__manifest__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# © 2018 Jordi Riera +# © 2018 David Dufresne +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + +{ + 'name': 'numitech', + 'version': '1.0', + 'author': 'Numigi', + 'maintainer': 'Numigi', + 'license': 'LGPL-3', + 'category': 'Extra Tools', + 'summary': 'Quality tools we want in every instances.', + 'depends': [ + 'auto_backup', + 'sentry', + ], + 'data': [], + 'installable': True, + 'application': False, +} diff --git a/numitech/tests/__init__.py b/numitech/tests/__init__.py new file mode 100644 index 00000000..6da6a150 --- /dev/null +++ b/numitech/tests/__init__.py @@ -0,0 +1 @@ +from . import test_installed_modules diff --git a/numitech/tests/test_installed_modules.py b/numitech/tests/test_installed_modules.py new file mode 100644 index 00000000..a34d8056 --- /dev/null +++ b/numitech/tests/test_installed_modules.py @@ -0,0 +1,21 @@ + +from odoo.tests import TransactionCase + + +class TestModules(TransactionCase): + """ + Numitech mainly installs modules for our quality. + This test suite enforces that the wanted modules are installed. + """ + + def setUp(self): + super(TestModules, self).setUp() + self.modules = self.env['ir.module.module'] + + def test_sentry(self): + """ Sentry is installed.""" + self.assertTrue(self.modules.search([('name', '=', 'sentry')])) + + def test_auto_back(self): + """ Auto Backup is installed.""" + self.assertTrue(self.modules.search([('name', '=', 'auto_backup')]))