fix unit test build fail

This commit is contained in:
tzangms 2013-12-09 01:59:21 +08:00
parent 231a806420
commit 10f7bb5570
3 changed files with 2 additions and 13 deletions

View File

@ -14,4 +14,3 @@
{% for field in form.visible_fields %}
{% include 'bootstrapform/field.html' %}
{% endfor %}

View File

@ -43,9 +43,7 @@ class BootstrapTemplateTagTests(TestCase):
form = ExampleForm()
html = Template("{% load bootstrap %}{{ form|bootstrap }}").render(Context({'form': form}))
with open('/tmp/basic.html', 'w+') as f:
f.write(html)
html = html.strip('\n').strip(' ')
image = os.path.join('fixtures', 'basic.html')
with open(os.path.join(TEST_DIR, image)) as f:

View File

@ -1,10 +1,5 @@
<div class="form-group">
@ -204,7 +199,4 @@
</div>
</div>
</div>
</div>