Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed some failing tests missed in 1556b1c

  • Loading branch information...
commit 2f8f2ad1d7762b2c46cdc707b4921685bcea3612 1 parent 1556b1c
Luke Plant authored May 09, 2013

Showing 1 changed file with 0 additions and 42 deletions. Show diff stats Hide diff stats

  1. 42  tests/modeladmin/tests.py
42  tests/modeladmin/tests.py
@@ -617,17 +617,6 @@ class ValidationTestModelAdmin(ModelAdmin):
617 617
         )
618 618
 
619 619
         class ValidationTestModelAdmin(ModelAdmin):
620  
-            fieldsets = (("General", {"fields": ("non_existent_field",)}),)
621  
-
622  
-        six.assertRaisesRegex(self,
623  
-            ImproperlyConfigured,
624  
-            "'ValidationTestModelAdmin.fieldsets\[0\]\[1\]\['fields'\]' refers to field 'non_existent_field' that is missing from the form.",
625  
-            validate,
626  
-            ValidationTestModelAdmin,
627  
-            ValidationTestModel,
628  
-        )
629  
-
630  
-        class ValidationTestModelAdmin(ModelAdmin):
631 620
             fieldsets = (("General", {"fields": ("name",)}),)
632 621
 
633 622
         validate(ValidationTestModelAdmin, ValidationTestModel)
@@ -685,22 +674,6 @@ class ValidationTestModelAdmin(ModelAdmin):
685 674
     def test_fieldsets_with_custom_form_validation(self):
686 675
 
687 676
         class BandAdmin(ModelAdmin):
688  
-
689  
-            fieldsets = (
690  
-                ('Band', {
691  
-                    'fields': ('non_existent_field',)
692  
-                }),
693  
-            )
694  
-
695  
-        six.assertRaisesRegex(self,
696  
-            ImproperlyConfigured,
697  
-            "'BandAdmin.fieldsets\[0\]\[1\]\['fields'\]' refers to field 'non_existent_field' that is missing from the form.",
698  
-            validate,
699  
-            BandAdmin,
700  
-            Band,
701  
-        )
702  
-
703  
-        class BandAdmin(ModelAdmin):
704 677
             fieldsets = (
705 678
                 ('Band', {
706 679
                     'fields': ('name',)
@@ -1371,21 +1344,6 @@ class ValidationTestModelAdmin(ModelAdmin):
1371 1344
             ValidationTestModel,
1372 1345
         )
1373 1346
 
1374  
-        class ValidationTestInline(TabularInline):
1375  
-            model = ValidationTestInlineModel
1376  
-            fields = ("non_existent_field",)
1377  
-
1378  
-        class ValidationTestModelAdmin(ModelAdmin):
1379  
-            inlines = [ValidationTestInline]
1380  
-
1381  
-        six.assertRaisesRegex(self,
1382  
-            ImproperlyConfigured,
1383  
-            "'ValidationTestInline.fields' refers to field 'non_existent_field' that is missing from the form.",
1384  
-            validate,
1385  
-            ValidationTestModelAdmin,
1386  
-            ValidationTestModel,
1387  
-        )
1388  
-
1389 1347
     def test_fk_name_validation(self):
1390 1348
 
1391 1349
         class ValidationTestInline(TabularInline):

0 notes on commit 2f8f2ad

Please sign in to comment.
Something went wrong with that request. Please try again.