Ignore:
Timestamp:
17 Apr 2012, 23:35:24 (13 years ago)
Author:
uli
Message:
  • Use datetime for applicants containers and
  • Register new datetime widget as default for entering datetimes.

Fixed all tests to work with the new stuff.

As this is just a quick shot I put all changes into one commit
to ease any later rollback.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_batching.py

    r8008 r8200  
    2020import datetime
    2121import os
     22import pytz
    2223import shutil
    2324import tempfile
     
    157158            u'>>de<<\nDieser Text kann von anonymen Benutzern '
    158159            u'gelesen werden.')
    159         self.assertEqual(container.startdate, datetime.date(2012, 3, 1))
    160         self.assertEqual(container.enddate, datetime.date(2012, 4, 25))
     160        self.assertEqual(container.startdate,
     161                         datetime.datetime(2012, 3, 1, 0, 0, tzinfo=pytz.utc))
     162        self.assertEqual(container.enddate,
     163                         datetime.datetime(2012, 4, 25, 0, 0, tzinfo=pytz.utc))
    161164        shutil.rmtree(os.path.dirname(fin_file))
    162165
Note: See TracChangeset for help on using the changeset viewer.