Skip to content

Commit

Permalink
Improving coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Álvarez committed Jul 28, 2017
1 parent a07f4db commit 511b94b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions popular_proposal/tests/wizard_tests.py
Expand Up @@ -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

Expand Down

0 comments on commit 511b94b

Please sign in to comment.