Commit 0f64af16 authored by Vincent Pelletier's avatar Vincent Pelletier

Use strftime to format a date.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44637 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 546dd125
...@@ -176,7 +176,7 @@ class TestERP5BankingCounterDate(TestERP5BankingMixin): ...@@ -176,7 +176,7 @@ class TestERP5BankingCounterDate(TestERP5BankingMixin):
LOG('Testing... ', 0, message) LOG('Testing... ', 0, message)
counter_date_module = self.getPortal().counter_date_module counter_date_module = self.getPortal().counter_date_module
def openAndTest(site, date, reference): def openAndTest(site, date, reference):
id = 'counter_date_%s_%s' % (str(date).replace('/', '_'), site.getId()) id = 'counter_date_%s_%s' % (date.strftime('%Y%m%d')), site.getId())
self.openCounterDate(site=site, date=date, id=id) self.openCounterDate(site=site, date=date, id=id)
counter_date = getattr(self, id) counter_date = getattr(self, id)
self.assertEquals(counter_date.getReference(), reference) self.assertEquals(counter_date.getReference(), reference)
......
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