Skip to content

Commit

Permalink
add updoo + tests to confirm commands are available
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordi Riera authored and majouda committed Jul 29, 2024
1 parent 19e70ac commit 989ec84
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 0 deletions.
Empty file added __init__.py
Empty file.
8 changes: 8 additions & 0 deletions test_suites/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Main Module
===========
This module contains the dependencies to install all others modules

Contributors
------------
* Jordi Riera
* David Dufresne
4 changes: 4 additions & 0 deletions test_suites/__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).
19 changes: 19 additions & 0 deletions test_suites/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
# © 2018 Jordi Riera
# © 2018 David Dufresne
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
'name': 'tests',
'version': 'test',
'author': 'Numigi',
'maintainer': 'Numigi',
'license': 'LGPL-3',
'category': 'Other',
'summary': 'Tests to make sure the setup is as wanted.',
'depends': [
],
'data': [],
'installable': True,
'application': True,
}
Binary file added test_suites/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions test_suites/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-
# © 2018 Jordi Riera
# © 2018 David Dufresne
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

from . import test_linux_commands
30 changes: 30 additions & 0 deletions test_suites/tests/test_linux_commands.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"""Check that the linux command lines exists in the docker that will be pushed
"""
import subprocess

from odoo.tests import common, unittest


class CommandLines(common.TransactionCase):
"""Test suite for command lines."""

def test_updoo(self):
""" updoo is required."""
# no assert here, the subprocess will crash if the command doesn't exist.
subprocess.call(["updoo", "--version"])

def test_gitoo(self):
""" gitoo is required"""
# no assert here, the subprocess will crash if the command doesn't exist.
subprocess.call(["gitoo", "--version"])

def test_run_pytest_sh(self):
""" run_pytest.sh"""
# no assert here, the subprocess will crash if the command doesn't exist.
subprocess.call(["run_pytest.sh", "--version"])

@unittest.skip("Need to find a way to test run_test.sh.")
def test_run_test_sh(self):
""" run_pytest.sh"""
# no assert here, the subprocess will crash if the command doesn't exist.
subprocess.call(["run_test.sh", "--version"])

0 comments on commit 989ec84

Please sign in to comment.