fix unit test build fail
This commit is contained in:
@@ -14,4 +14,3 @@
|
|||||||
{% for field in form.visible_fields %}
|
{% for field in form.visible_fields %}
|
||||||
{% include 'bootstrapform/field.html' %}
|
{% include 'bootstrapform/field.html' %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
@@ -43,9 +43,7 @@ class BootstrapTemplateTagTests(TestCase):
|
|||||||
form = ExampleForm()
|
form = ExampleForm()
|
||||||
|
|
||||||
html = Template("{% load bootstrap %}{{ form|bootstrap }}").render(Context({'form': form}))
|
html = Template("{% load bootstrap %}{{ form|bootstrap }}").render(Context({'form': form}))
|
||||||
|
html = html.strip('\n').strip(' ')
|
||||||
with open('/tmp/basic.html', 'w+') as f:
|
|
||||||
f.write(html)
|
|
||||||
|
|
||||||
image = os.path.join('fixtures', 'basic.html')
|
image = os.path.join('fixtures', 'basic.html')
|
||||||
with open(os.path.join(TEST_DIR, image)) as f:
|
with open(os.path.join(TEST_DIR, image)) as f:
|
||||||
|
8
tests/fixtures/basic.html
vendored
8
tests/fixtures/basic.html
vendored
@@ -1,10 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
||||||
|
|
||||||
@@ -205,6 +200,3 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user