Permalink
Browse files

fix unit test build fail

  • Loading branch information...
1 parent 231a806 commit 10f7bb557022558c3295c9e0867a2311b976113a @tzangms committed Dec 8, 2013
Showing with 2 additions and 13 deletions.
  1. +0 −1 bootstrapform/templates/bootstrapform/form.html
  2. +1 −3 tests/__init__.py
  3. +1 −9 tests/fixtures/basic.html
@@ -14,4 +14,3 @@
{% for field in form.visible_fields %}
{% include 'bootstrapform/field.html' %}
{% endfor %}
-
View
@@ -43,9 +43,7 @@ def test_bootstrap_tag(self):
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:
@@ -1,10 +1,5 @@
-
-
-
-
-
<div class="form-group">
@@ -204,7 +199,4 @@
</div>
</div>
-</div>
-
-
-
+</div>

0 comments on commit 10f7bb5

Please sign in to comment.