Пример #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()
Пример #2
0
    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()