Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits:
154a094e by Cédric Krier at 2023-01-11T01:27:25+01:00
Use minimal date as default date for testing currency rate
Closes #9977
- - - - -
1 changed file:
- modules/currency/tests/test_module.py
Changes:
=====================================
modules/currency/tests/test_module.py
=====================================
@@ -23,6 +23,6 @@
}])[0]
-def add_currency_rate(currency, rate, date=None):
+def add_currency_rate(currency, rate, date=datetime.date.min):
pool = Pool()
Rate = pool.get('currency.currency.rate')
@@ -27,7 +27,5 @@
pool = Pool()
Rate = pool.get('currency.currency.rate')
- if date is None:
- date = Rate.default_date()
return Rate.create([{
'currency': currency.id,
'rate': rate,
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/154a094ee51663619335a41c2585309285587bb6
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/154a094ee51663619335a41c2585309285587bb6
You're receiving this email because of your account on foss.heptapod.net.