Skip to content

Commit

Permalink
11.0 numitech (#24)
Browse files Browse the repository at this point in the history
* usage of odoo-public
* move docker_files -> .docker_files
* revision of files that where ported to odoo-public
* introduce numitech
  • Loading branch information
foutoucour authored and majouda committed Sep 3, 2024
1 parent 27f20ea commit c7489f2
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 0 deletions.
8 changes: 8 additions & 0 deletions numitech/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
NumiTech
========
Module that install technological modules that we want for quality.

Contributors
------------
* Jordi Riera
* David Dufresne
4 changes: 4 additions & 0 deletions numitech/__init__.py
Original file line number Diff line number Diff line change
@@ -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).
21 changes: 21 additions & 0 deletions numitech/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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,
}
1 change: 1 addition & 0 deletions numitech/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import test_installed_modules
21 changes: 21 additions & 0 deletions numitech/tests/test_installed_modules.py
Original file line number Diff line number Diff line change
@@ -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')]))

0 comments on commit c7489f2

Please sign in to comment.