Commit add524b6 authored by Vincent Pelletier's avatar Vincent Pelletier

Don't overwrite site properties when present.

Still, don't fail depending on day of week.
parent d6a1af81
......@@ -815,14 +815,11 @@ class TestERP5BankingMixin(ERP5TypeTestCase):
# the default currency for the site
if not self.portal.hasProperty('reference_currency_id'):
self.portal.manage_addProperty('reference_currency_id', 'EUR', type='string')
else:
self.portal._updateProperty('reference_currency_id', "EUR")
# not working days
if not self.portal.hasProperty('not_working_days'):
self.portal.manage_addProperty('not_working_days', '', type='string')
else:
self.portal._updateProperty('not_working_days', "")
self.portal.not_working_days = ''
setattr(self.portal, 'functionnal_test_mode', 1)
# the person module
self.person_module = self.getPersonModule()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment