Removed some failing tests missed in 1556b1c3b7
This commit is contained in:
parent
1556b1c3b7
commit
2f8f2ad1d7
|
@ -616,17 +616,6 @@ class ValidationTests(unittest.TestCase):
|
|||
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):
|
||||
fieldsets = (("General", {"fields": ("name",)}),)
|
||||
|
||||
|
@ -684,22 +673,6 @@ class ValidationTests(unittest.TestCase):
|
|||
|
||||
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):
|
||||
fieldsets = (
|
||||
('Band', {
|
||||
|
@ -1371,21 +1344,6 @@ class ValidationTests(unittest.TestCase):
|
|||
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):
|
||||
|
||||
class ValidationTestInline(TabularInline):
|
||||
|
|
Loading…
Reference in New Issue