This commit is contained in:
parent
f0cca23814
commit
491482f52f
@ -1,19 +0,0 @@
|
||||
import os
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
from .common import install_test_addons
|
||||
|
||||
|
||||
def test_addons_path():
|
||||
"""Test must not fail where there are no installable addons."""
|
||||
assert (
|
||||
Path(os.environ["ODOO_RC"]).read_text()
|
||||
== "[options]\n"
|
||||
)
|
||||
with install_test_addons(["addon_success"]):
|
||||
assert (
|
||||
Path(os.environ["ODOO_RC"]).read_text()
|
||||
== "[options]\naddons_path=/mnt/extra-addons,.\n"
|
||||
)
|
||||
subprocess.check_call(["python", "-c", "import odoo.cli"])
|
Loading…
x
Reference in New Issue
Block a user