[MIG] Migration to version 15.0
This commit is contained in:
parent
3c983fa408
commit
16a1fb3df2
|
|
@ -5,7 +5,7 @@
|
||||||
"name": "Server Environment Ir Config Parameter",
|
"name": "Server Environment Ir Config Parameter",
|
||||||
"summary": """
|
"summary": """
|
||||||
Override System Parameters from server environment file""",
|
Override System Parameters from server environment file""",
|
||||||
"version": "14.0.1.0.0",
|
"version": "15.0.1.0.0",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
|
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
|
||||||
"website": "https://github.com/OCA/server-env",
|
"website": "https://github.com/OCA/server-env",
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ class TestEnv(ServerEnvironmentCase):
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_get_param(self):
|
def test_get_param(self):
|
||||||
""" Get system parameter from config """
|
"""Get system parameter from config"""
|
||||||
with self.load_config(
|
with self.load_config(
|
||||||
public=self.env_config, serv_config_class=ir_config_parameter
|
public=self.env_config, serv_config_class=ir_config_parameter
|
||||||
):
|
):
|
||||||
|
|
@ -46,7 +46,7 @@ class TestEnv(ServerEnvironmentCase):
|
||||||
self.assertEqual(res.value, "config_value")
|
self.assertEqual(res.value, "config_value")
|
||||||
|
|
||||||
def test_set_param_1(self):
|
def test_set_param_1(self):
|
||||||
""" We can't set parameters that are in config file """
|
"""We can't set parameters that are in config file"""
|
||||||
with self.load_config(
|
with self.load_config(
|
||||||
public=self.env_config, serv_config_class=ir_config_parameter
|
public=self.env_config, serv_config_class=ir_config_parameter
|
||||||
):
|
):
|
||||||
|
|
@ -73,7 +73,7 @@ class TestEnv(ServerEnvironmentCase):
|
||||||
self.assertEqual(len(res), 1)
|
self.assertEqual(len(res), 1)
|
||||||
|
|
||||||
def test_set_param_2(self):
|
def test_set_param_2(self):
|
||||||
""" We can set parameters that are not in config file """
|
"""We can set parameters that are not in config file"""
|
||||||
with self.load_config(
|
with self.load_config(
|
||||||
public=self.env_config, serv_config_class=ir_config_parameter
|
public=self.env_config, serv_config_class=ir_config_parameter
|
||||||
):
|
):
|
||||||
|
|
@ -85,7 +85,7 @@ class TestEnv(ServerEnvironmentCase):
|
||||||
self.assertFalse(res)
|
self.assertFalse(res)
|
||||||
|
|
||||||
def test_empty(self):
|
def test_empty(self):
|
||||||
""" Empty config values cause error """
|
"""Empty config values cause error"""
|
||||||
with self.load_config(
|
with self.load_config(
|
||||||
public=self.env_config, serv_config_class=ir_config_parameter
|
public=self.env_config, serv_config_class=ir_config_parameter
|
||||||
):
|
):
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
../../../../server_environment_ir_config_parameter
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
import setuptools
|
||||||
|
|
||||||
|
setuptools.setup(
|
||||||
|
setup_requires=['setuptools-odoo'],
|
||||||
|
odoo_addon=True,
|
||||||
|
)
|
||||||
Loading…
Reference in New Issue