changeset adc0321e572b in modules/company:default
details: https://hg.tryton.org/modules/company?cmd=changeset&node=adc0321e572b
description:
Always use proteus config argument in testing tools
issue10548
review338421002
diffstat:
tests/tools.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r d1494ced7d73 -r adc0321e572b tests/tools.py
--- a/tests/tools.py Mon Jul 05 23:51:52 2021 +0200
+++ b/tests/tools.py Mon Jul 12 22:56:26 2021 +0200
@@ -13,7 +13,7 @@
Party = Model.get('party.party', config=config)
User = Model.get('res.user', config=config)
- company_config = Wizard('company.company.config')
+ company_config = Wizard('company.company.config', config=config)
company_config.execute('company')
company = company_config.form
if not party:
@@ -21,7 +21,7 @@
party.save()
company.party = party
if not currency:
- currency = get_currency()
+ currency = get_currency(config=config)
company.currency = currency
company_config.execute('add')