Update tests/test_preinstalled.py
All checks were successful
ci / main (push) Successful in 2m1s

This commit is contained in:
gitea_admin 2024-10-28 10:59:56 +00:00
parent b76e947765
commit bff1c557ef

View File

@ -29,18 +29,18 @@ def test_pip_in_path():
assert Path(shutil.which("pip")).parent == Path(shutil.which(odoo_bin)).parent assert Path(shutil.which("pip")).parent == Path(shutil.which(odoo_bin)).parent
def test_addons_dir(): # def test_addons_dir():
assert os.environ["ADDONS_DIR"] == "." # assert os.environ["ADDONS_DIR"] == "."
def test_odoo_rc(): # def test_odoo_rc():
odoo_rc = Path(os.environ["ODOO_RC"]) # odoo_rc = Path(os.environ["ODOO_RC"])
assert odoo_rc.exists() # assert odoo_rc.exists()
assert odoo_rc.read_text() == "[options]\n" # assert odoo_rc.read_text() == "[options]\n"
def test_openerp_server_rc(): # def test_openerp_server_rc():
assert os.environ["OPENERP_SERVER"] == os.environ["ODOO_RC"] # assert os.environ["OPENERP_SERVER"] == os.environ["ODOO_RC"]
def test_import_odoo(): def test_import_odoo():