Removed some failing tests missed in 1556b1c3b7

This commit is contained in:
Luke Plant 2013-05-09 01:45:34 +01:00
parent 1556b1c3b7
commit 2f8f2ad1d7
1 changed files with 0 additions and 42 deletions

View File

@ -616,17 +616,6 @@ class ValidationTests(unittest.TestCase):
ValidationTestModel, ValidationTestModel,
) )
class ValidationTestModelAdmin(ModelAdmin):
fieldsets = (("General", {"fields": ("non_existent_field",)}),)
six.assertRaisesRegex(self,
ImproperlyConfigured,
"'ValidationTestModelAdmin.fieldsets\[0\]\[1\]\['fields'\]' refers to field 'non_existent_field' that is missing from the form.",
validate,
ValidationTestModelAdmin,
ValidationTestModel,
)
class ValidationTestModelAdmin(ModelAdmin): class ValidationTestModelAdmin(ModelAdmin):
fieldsets = (("General", {"fields": ("name",)}),) fieldsets = (("General", {"fields": ("name",)}),)
@ -684,22 +673,6 @@ class ValidationTests(unittest.TestCase):
def test_fieldsets_with_custom_form_validation(self): def test_fieldsets_with_custom_form_validation(self):
class BandAdmin(ModelAdmin):
fieldsets = (
('Band', {
'fields': ('non_existent_field',)
}),
)
six.assertRaisesRegex(self,
ImproperlyConfigured,
"'BandAdmin.fieldsets\[0\]\[1\]\['fields'\]' refers to field 'non_existent_field' that is missing from the form.",
validate,
BandAdmin,
Band,
)
class BandAdmin(ModelAdmin): class BandAdmin(ModelAdmin):
fieldsets = ( fieldsets = (
('Band', { ('Band', {
@ -1371,21 +1344,6 @@ class ValidationTests(unittest.TestCase):
ValidationTestModel, ValidationTestModel,
) )
class ValidationTestInline(TabularInline):
model = ValidationTestInlineModel
fields = ("non_existent_field",)
class ValidationTestModelAdmin(ModelAdmin):
inlines = [ValidationTestInline]
six.assertRaisesRegex(self,
ImproperlyConfigured,
"'ValidationTestInline.fields' refers to field 'non_existent_field' that is missing from the form.",
validate,
ValidationTestModelAdmin,
ValidationTestModel,
)
def test_fk_name_validation(self): def test_fk_name_validation(self):
class ValidationTestInline(TabularInline): class ValidationTestInline(TabularInline):