From 511b94bb35a81ed8171d7fa401c7fc8855afb7b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20=C3=81lvarez?= Date: Fri, 28 Jul 2017 12:16:23 -0400 Subject: [PATCH] Improving coverage --- popular_proposal/tests/wizard_tests.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/popular_proposal/tests/wizard_tests.py b/popular_proposal/tests/wizard_tests.py index f279c668..95c71aa2 100644 --- a/popular_proposal/tests/wizard_tests.py +++ b/popular_proposal/tests/wizard_tests.py @@ -46,12 +46,8 @@ def get_example_data_for_post(self, **kwargs): test_response[cntr][field] = choice elif field_dict: help_text = example_fields.get(field_type, None) - if not help_text: - test_response[cntr][str(cntr) + '-' + field] = field - test_response[cntr][field] = field - else: - test_response[cntr][str(cntr) + '-' + field] = help_text - test_response[cntr][field] = help_text + test_response[cntr][str(cntr) + '-' + field] = help_text + test_response[cntr][field] = help_text else: test_response[cntr]['fields'] = field