Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed some failing tests missed in 1556b1c

  • Loading branch information...
commit 2f8f2ad1d7762b2c46cdc707b4921685bcea3612 1 parent 1556b1c
@spookylukey spookylukey authored
Showing with 0 additions and 42 deletions.
  1. +0 −42 tests/modeladmin/tests.py
View
42 tests/modeladmin/tests.py
@@ -617,17 +617,6 @@ class ValidationTestModelAdmin(ModelAdmin):
)
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",)}),)
validate(ValidationTestModelAdmin, ValidationTestModel)
@@ -685,22 +674,6 @@ class ValidationTestModelAdmin(ModelAdmin):
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', {
'fields': ('name',)
@@ -1371,21 +1344,6 @@ class ValidationTestModelAdmin(ModelAdmin):
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):
Please sign in to comment.
Something went wrong with that request. Please try again.