Ticket #17488: fix.diff

File fix.diff, 707 bytes (added by Florian Apolloner, 13 years ago)
  • tests/regressiontests/generic_views/dates.py

    diff --git a/tests/regressiontests/generic_views/dates.py b/tests/regressiontests/generic_views/dates.py
    index 5e03dbe..0ca46b0 100644
    a b class WeekArchiveViewTests(TestCase):  
    257257        self.assertEqual(list(res.context['book_list']), [])
    258258
    259259    def test_week_view_allow_future(self):
    260         future = datetime.date(datetime.date.today().year + 1, 1, 1)
     260        future = datetime.date(datetime.date.today().year + 1, 1, 7)
    261261        b = Book.objects.create(name="The New New Testement", pages=600, pubdate=future)
    262262
    263263        res = self.client.get('/dates/books/%s/week/1/' % future.year)
Back to Top