Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRogelio Mita <rogeliomita@activitycentral.com>2013-10-01 21:11:56 (GMT)
committer Rogelio Mita <rogeliomita@activitycentral.com>2013-10-01 21:11:56 (GMT)
commitbd1f1b0911da2a50fe5838a38392a0dfdf5d8b66 (patch)
tree1e4197c3969bd8b127fcdd7ede87fdef02b3985b
parentcfa3341936804b3274e3947c3e9cfa2c2df29031 (diff)
Add setup with creation of tmp results dir for RemoveResultsTest
-rw-r--r--webapp/polls/tests/poll_tests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/webapp/polls/tests/poll_tests.py b/webapp/polls/tests/poll_tests.py
index 84a0fe0..704ad65 100644
--- a/webapp/polls/tests/poll_tests.py
+++ b/webapp/polls/tests/poll_tests.py
@@ -13,7 +13,7 @@ from pollster.models import Pollster
from django.conf import settings
from django.test import TestCase
-from utils.test import MongoTestCase
+from utils.test import MongoTestCase, create_results_dir
from polls.tests.poll_result_file_tests import make_temp_file
@@ -511,6 +511,9 @@ class CleanDataMustCheckImagesTypes(TestCase):
class RemoveResultsTest(MongoTestCase):
+ def setUp(self):
+ create_results_dir()
+
def test_it_should_respond_to_remove_results(self):
name = 'poll'
data = {'name': name}