Skip to content

Commit 8174636

Browse files
committed
Fixing tests
1 parent 508c5fd commit 8174636

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

bootstrap3/tests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ def test_layout_horizontal(self):
232232
form = TestForm()
233233
res = render_template(
234234
'{% bootstrap_form form layout="horizontal" %}', form=form)
235-
self.assertIn('col-md-2', res)
236-
self.assertIn('col-md-4', res)
235+
self.assertIn('col-md-3', res)
236+
self.assertIn('col-md-9', res)
237237
res = render_template(
238238
'{% bootstrap_form form layout="horizontal" ' +
239239
'horizontal_label_class="hlabel" ' +
@@ -247,8 +247,8 @@ def test_buttons_tag(self):
247247
form = TestForm()
248248
res = render_template(
249249
'{% buttons layout="horizontal" %}{% endbuttons %}', form=form)
250-
self.assertIn('col-md-2', res)
251-
self.assertIn('col-md-4', res)
250+
self.assertIn('col-md-3', res)
251+
self.assertIn('col-md-9', res)
252252

253253

254254
class FieldTest(TestCase):

docs/settings.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ The ``BOOTSTRAP3`` dict variable is contains these settings and defaults:
3636
'include_jquery': False,
3737
3838
# Label class to use in horizontal forms
39-
'horizontal_label_class': 'col-md-2',
39+
'horizontal_label_class': 'col-md-3',
4040
4141
# Field class to use in horizontal forms
42-
'horizontal_field_class': 'col-md-4',
42+
'horizontal_field_class': 'col-md-9',
4343
4444
# Set HTML required attribute on required fields
4545
'set_required': True,

0 commit comments

Comments
 (0)