From 3da4b398608d09239a71f3acd9744b2a53e51e16 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 27 Nov 2015 15:49:13 +0100 Subject: [PATCH] Move override_settings from function to class level --- words/tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/words/tests.py b/words/tests.py index 1adc8f4..9e68307 100644 --- a/words/tests.py +++ b/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(