From 8e2141aa132d2a9d375550b141a315a1aa7dd1e9 Mon Sep 17 00:00:00 2001 From: Jordi Riera <547282+foutoucour@users.noreply.github.com> Date: Thu, 22 Mar 2018 17:17:53 -0400 Subject: [PATCH] 11.0 numitech (#24) * usage of odoo-public * move docker_files -> .docker_files * revision of files that where ported to odoo-public * introduce numitech --- numitech/README.rst | 8 ++++++++ numitech/__init__.py | 4 ++++ numitech/__manifest__.py | 21 +++++++++++++++++++++ numitech/tests/__init__.py | 1 + numitech/tests/test_installed_modules.py | 21 +++++++++++++++++++++ 5 files changed, 55 insertions(+) create mode 100644 numitech/README.rst create mode 100644 numitech/__init__.py create mode 100644 numitech/__manifest__.py create mode 100644 numitech/tests/__init__.py create mode 100644 numitech/tests/test_installed_modules.py 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')]))