The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ

Move override_settings from function to class level

master
Gergely Polonkai 7 years ago
parent 3073cb6a93
commit 3da4b39860
  1. 3
      words/tests.py

@ -59,6 +59,7 @@ class WordTest(TestCase):
def test_translation_str(self):
self.assertEquals('color', self.translation1.__str__())
@override_settings(DRAW_TIME='1 00:00:00')
class DrawTest(TestCase):
def setUp(self):
self.user = User.objects.create_user(username='test', password='test')
@ -76,7 +77,6 @@ class DrawTest(TestCase):
draw.save()
self.assertEquals(self.word, self.user.current_word())
@override_settings(DRAW_TIME='1 00:00:00')
def test_draw_word(self):
# User has no words yet
self.assertEquals(self.word, self.user.draw_word())
@ -168,7 +168,6 @@ class DrawTest(TestCase):
self.assertEquals(self.word, self.user.draw_word())
@override_settings(DRAW_TIME='1 00:00:00')
def test_draw_successful(self):
# If there is no work, but we are within the time range
draw = Draw.objects.create(

Loading…
Cancel
Save