This commit is contained in:
parent
0ab8d1e2d2
commit
0762c8af86
@ -55,22 +55,3 @@ def _target_python_version():
|
|||||||
)
|
)
|
||||||
major, minor = version.split(".")[:2]
|
major, minor = version.split(".")[:2]
|
||||||
return int(major), int(minor)
|
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"])
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user