Change the test telechat dates so that the first active telechat doesn't change to lie in the past if the tests are run across midnight.

- Legacy-Id: 13889
This commit is contained in:
Henrik Levkowetz 2017-07-15 10:01:35 +00:00
parent 66703c2352
commit 15f8b4504e

View file

@ -49,7 +49,7 @@ def make_immutable_base_data():
all tests in a run."""
# telechat dates
t = datetime.date.today()
t = datetime.date.today() + datetime.timedelta(days=1)
old = TelechatDate.objects.create(date=t - datetime.timedelta(days=14)).date # pyflakes:ignore
date1 = TelechatDate.objects.create(date=t).date # pyflakes:ignore
date2 = TelechatDate.objects.create(date=t + datetime.timedelta(days=14)).date # pyflakes:ignore