diff options
Diffstat (limited to 'webapp/polls/tests/poll_tests.py')
-rw-r--r-- | webapp/polls/tests/poll_tests.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/webapp/polls/tests/poll_tests.py b/webapp/polls/tests/poll_tests.py index 84a0fe0..832926d 100644 --- a/webapp/polls/tests/poll_tests.py +++ b/webapp/polls/tests/poll_tests.py @@ -13,12 +13,15 @@ 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 class PollTests(MongoTestCase): + def setUp(self): + create_results_dir() + def test_poll_init(self): pollster = Pollster.create(username="test", password="test") @@ -430,6 +433,8 @@ class PollFormTests(MongoTestCase): class PollResultFilesTest(MongoTestCase): def setUp(self): + create_results_dir() + name = 'nombre de encuesta' data = {'name': name} poll = Poll(data=data) @@ -462,6 +467,8 @@ class PollResultFilesTest(MongoTestCase): class AddResultFilesTest(MongoTestCase): def setUp(self): + create_results_dir() + name = 'nombre de encuesta' data = {'name': name} poll = Poll(data=data) @@ -511,6 +518,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} |