mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-16 22:20:24 +00:00
Try fix for some blog test
This commit is contained in:
parent
830bffcf11
commit
d9a6da6e52
1 changed files with 2 additions and 3 deletions
|
|
@ -102,7 +102,6 @@ class GetFloppyformWidgetTest(TestCase):
|
|||
floppyforms.widgets.HiddenInput)
|
||||
|
||||
widget = forms.widgets.HiddenInput()
|
||||
widget.is_hidden = False
|
||||
self.assertExpectWidget(
|
||||
widget,
|
||||
floppyforms.widgets.HiddenInput,
|
||||
|
|
@ -488,13 +487,13 @@ class FieldWidgetTest(TestCase):
|
|||
self.assertTrue(isinstance(widget, floppyforms.widgets.SlugInput))
|
||||
self.assertEqual(widget.input_type, 'text')
|
||||
|
||||
def test_ipaddress_field(self):
|
||||
def test_genericipaddress_field(self):
|
||||
class MyForm(forms.ModelForm):
|
||||
ipaddress = forms.GenericIPAddressField()
|
||||
|
||||
form_class = modelform_factory(model=Post, form=MyForm, exclude=[])
|
||||
widget = form_class().fields['ipaddress'].widget
|
||||
self.assertTrue(isinstance(widget, floppyforms.widgets.IPAddressInput))
|
||||
self.assertTrue(isinstance(widget, floppyforms.widgets.TextInput))
|
||||
self.assertEqual(widget.input_type, 'text')
|
||||
|
||||
def test_splitdatetime_field(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue