Update tests/test_preinstalled.py
Some checks failed
ci / main (push) Failing after 1m37s

This commit is contained in:
gitea_admin 2024-10-28 10:32:06 +00:00
parent 0ab8d1e2d2
commit 0762c8af86

View File

@ -55,22 +55,3 @@ def _target_python_version():
)
major, minor = version.split(".")[:2]
return int(major), int(minor)
@pytest.mark.skipif(
_target_python_version() < (3, 7), reason="Whool requires python3.7 or higher"
)
def test_import_odoo_after_addon_install():
with make_addons_dir(["addon_success"]) as addons_dir:
addon_dir = addons_dir / "addon_success"
subprocess.check_call(["git", "init"], cwd=addon_dir)
subprocess.check_call(["git", "add", "."], cwd=addon_dir)
subprocess.check_call(["git", "config", "user.email", "..."], cwd=addon_dir)
subprocess.check_call(
["git", "config", "user.name", "me@example.com"], cwd=addon_dir
)
subprocess.check_call(["git", "commit", "-m", "..."], cwd=addon_dir)
subprocess.check_call(
["python", "-m", "pip", "install", addons_dir / "addon_success"]
)
subprocess.check_call(["python", "-c", "import odoo.cli"])