diff options
author | Code Raguet <ignacio.code@gmail.com> | 2013-09-26 16:09:37 (GMT) |
---|---|---|
committer | Code Raguet <ignacio.code@gmail.com> | 2013-09-26 16:09:37 (GMT) |
commit | a5ffd91bf5d17ee5b3bbfc271c96d9b8aa8886ea (patch) | |
tree | 4d833dc14839d2d180d03efef3fd1be7b7e7ebef /webapp/polls/tests/result_tests.py | |
parent | 04523d828911893ad8299bfd3ef661063c3afb8d (diff) | |
parent | dcda2d37e96c38f435aa30839cbf8806a4c26900 (diff) |
Merge branch 'DEV'v4.21
Diffstat (limited to 'webapp/polls/tests/result_tests.py')
-rw-r--r-- | webapp/polls/tests/result_tests.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/webapp/polls/tests/result_tests.py b/webapp/polls/tests/result_tests.py index 57ae49a..0936cf0 100644 --- a/webapp/polls/tests/result_tests.py +++ b/webapp/polls/tests/result_tests.py @@ -96,8 +96,7 @@ class PollResultTests(MongoTestCase): poll_data = { "name": "test", - "pollsters": [pollster], - "status": Poll.CLOSED + "pollsters": [pollster] } structure_data = { @@ -325,10 +324,7 @@ class CsvNoRepitePesoParaOpcionesConElMismoTextDescriptivo(MongoTestCase): """ def setUp(self): - poll_data = { - "name": "test", - "status": Poll.CLOSED - } + poll_data = {"name": "test"} question_name = "repite nombre pregunta" structure_data = { @@ -397,10 +393,14 @@ class CsvNoRepitePesoParaOpcionesConElMismoTextDescriptivo(MongoTestCase): poll = Poll(data=poll_data) poll_id = poll.save() - self.poll = Poll.get(poll_id) - structure = Structure(data=structure_data, poll=self.poll) + poll = Poll.get(poll_id) + structure = Structure(data=structure_data, poll=poll) structure.save() + poll.status = Poll.CLOSED + poll_id = poll.save() + self.poll = Poll.get(poll_id) + def test_get_csv_header_with_order(self): poll = self.poll |