Commit 5dbb6a4a authored by okhin's avatar okhin

FIxing failing test on Django 1.10 templates

parent 8e4fe6c3
Pipeline #709 passed with stage
in 1 minute and 5 seconds
...@@ -60,7 +60,7 @@ class ArugmentaryAdminTest(TestCase): ...@@ -60,7 +60,7 @@ class ArugmentaryAdminTest(TestCase):
form = ma.get_form(request)() form = ma.get_form(request)()
self.assertHTMLEqual(str(form['campaign']), self.assertHTMLEqual(str(form['campaign']),
'<div class="related-widget-wrapper">' '<div class="related-widget-wrapper">'
'<select id="id_campaign" name="campaign">' '<select id="id_campaign" name="campaign" required>'
'<option value="" selected="selected">---------</option>' '<option value="" selected="selected">---------</option>'
'</select>' '</select>'
'</div>' '</div>'
...@@ -70,7 +70,7 @@ class ArugmentaryAdminTest(TestCase): ...@@ -70,7 +70,7 @@ class ArugmentaryAdminTest(TestCase):
form = ma.get_form(request)() form = ma.get_form(request)()
self.assertHTMLEqual(str(form['campaign']), self.assertHTMLEqual(str(form['campaign']),
'<div class="related-widget-wrapper">' '<div class="related-widget-wrapper">'
'<select id="id_campaign" name="campaign">' '<select id="id_campaign" name="campaign" required>'
'<option value="" selected="selected">---------</option>' '<option value="" selected="selected">---------</option>'
'<option value="%d">%s</option>' '<option value="%d">%s</option>'
'</select>' '</select>'
...@@ -167,7 +167,7 @@ class CampaignAdminTest(TestCase): ...@@ -167,7 +167,7 @@ class CampaignAdminTest(TestCase):
form = ma.get_form(request)() form = ma.get_form(request)()
self.assertHTMLEqual(str(form['organization']), self.assertHTMLEqual(str(form['organization']),
'<div class="related-widget-wrapper">' '<div class="related-widget-wrapper">'
'<select id="id_organization" name="organization">' '<select id="id_organization" name="organization" required>'
'<option value="" selected="selected">---------</option>' '<option value="" selected="selected">---------</option>'
'</select>' '</select>'
'</div>' '</div>'
...@@ -177,7 +177,7 @@ class CampaignAdminTest(TestCase): ...@@ -177,7 +177,7 @@ class CampaignAdminTest(TestCase):
form = ma.get_form(request)() form = ma.get_form(request)()
self.assertHTMLEqual(str(form['organization']), self.assertHTMLEqual(str(form['organization']),
'<div class="related-widget-wrapper">' '<div class="related-widget-wrapper">'
'<select id="id_organization" name="organization">' '<select id="id_organization" name="organization" required>'
'<option value="" selected="selected">---------</option>' '<option value="" selected="selected">---------</option>'
'<option value="%d">%s</option>' '<option value="%d">%s</option>'
'</select>' '</select>'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment