[FIX] base: adapt patch.dict for noble
closes odoo/odoo#160842 Related: odoo/enterprise#60219 Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
This commit is contained in:
@@ -56,7 +56,7 @@ class TestChromeBrowser(HttpCase):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
screencasts_dir = config['screencasts'] or config['screenshots']
|
||||
with patch.dict('odoo.tools.config.options', {'screencasts': screencasts_dir, 'screenshots': config['screenshots']}):
|
||||
with patch.dict(config.options, {'screencasts': screencasts_dir, 'screenshots': config['screenshots']}):
|
||||
self.browser = ChromeBrowser(self)
|
||||
self.addCleanup(self.browser.stop)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user