Skip to content

Commit

Permalink
fixup! reset params
Browse files Browse the repository at this point in the history
  • Loading branch information
lmignon committed May 12, 2020
1 parent 88e3c0c commit 20900aa
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion tests/test_copydb.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,28 @@ def ir_config_param_test_values(odoodb):
for key in _get_reset_config_params_key():
env.cr.execute(
"""
UPDATE ir_config_parameter set value ='test value' where key=%s
UPDATE
ir_config_parameter
SET
value='test value'
WHERE
key=%s
RETURNING id
""",
(key,),
)
if not env.cr.fetchall():
# Config parameter doesn't exist: create (ex enterprise params)
env.cr.execute(
"""
INSERT INTO
ir_config_parameter
(key, value)
VALUES
(%s, 'test value')
""",
(key,),
)


def tests_copydb(odoodb, ir_config_param_test_values):
Expand Down

0 comments on commit 20900aa

Please sign in to comment.