The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ
gitter-badge
Gergely Polonkai 7 years ago
parent 5093ab1e6d
commit 22ff41d6d1
  1. 6
      words/tests.py

@ -5,7 +5,7 @@ from django.core.exceptions import ValidationError
from django.utils import timezone
from django.utils.dateparse import parse_duration
from django.utils.translation import activate
from django.test import TestCase
from django.test import TestCase, override_settings
from .models import Word, WordTranslation, Draw, Work
@ -83,7 +83,7 @@ class DrawTest(TestCase):
accepted=None)
self.assertEquals(self.word, self.user.draw_word())
draw.accepted = True
draw.timestamp -= datetime.timespan(days=2)
draw.timestamp -= timedelta(days=2)
draw.save()
Work.objects.create(draw=draw)
@ -95,7 +95,7 @@ class DrawTest(TestCase):
self.assertIsNone(draw.accepted)
draw.accepted = True
draw.timestamp -= 2 * duration
draw.timestamp -= timedelta(days=2)
draw.save()
Work.objects.create(draw=draw)

Loading…
Cancel
Save