示例#1
0
    def setUp(self):

        try:
            from django.utils.dateparse import parse_duration
        except ImportError:
            # Duration fields were added in Django 1.8
            raise SkipTest

        self.duration = timedelta(hours=1, minutes=57, seconds=0)
        self.widget = widgets.DurationWidget()
    def setUp(self):
        if django.VERSION < (1, 8):
            raise SkipTest

        self.duration = timedelta(hours=1, minutes=57, seconds=0)
        self.widget = widgets.DurationWidget()
示例#3
0
 def setUp(self):
     self.duration = timedelta(hours=1, minutes=57, seconds=0)
     self.widget = widgets.DurationWidget()