Odoo_17.0_community/tests/test_no_addons.py
Tokiniaina 7577dc2324
Some checks failed
ci / main (push) Failing after 1m23s
test path from oca
2024-10-24 11:46:29 +03:00

10 lines
366 B
Python

import subprocess
from .common import install_test_addons
def test_no_addons():
"""Test must not fail where there are no installable addons."""
with install_test_addons(["uninstallable_addon"]) as addons_dir:
# no need to initialize test database because tests will not be attempted
subprocess.check_call(["oca_run_tests"], cwd=addons_dir)