Minor cleanup in the check_framework test package.
This commit is contained in:
parent
80b8d3bee0
commit
157f9cf240
|
@ -12,8 +12,3 @@ class SimpleModel(models.Model):
|
|||
class Book(models.Model):
|
||||
title = models.CharField(max_length=250)
|
||||
is_published = models.BooleanField(default=False)
|
||||
|
||||
|
||||
class BlogPost(models.Model):
|
||||
title = models.CharField(max_length=250)
|
||||
is_published = models.BooleanField(default=False)
|
||||
|
|
|
@ -125,8 +125,8 @@ class Django_1_6_0_CompatibilityChecks(TestCase):
|
|||
settings._wrapped._explicit_settings.remove('MANAGERS')
|
||||
settings._wrapped._explicit_settings.remove('ADMINS')
|
||||
|
||||
@override_settings(TEST_RUNNER='myapp.test.CustomRunner')
|
||||
def test_boolean_field_default_value(self):
|
||||
with self.settings(TEST_RUNNER='myapp.test.CustomRunnner'):
|
||||
# We patch the field's default value to trigger the warning
|
||||
boolean_field = Book._meta.get_field('is_published')
|
||||
old_default = boolean_field.default
|
||||
|
|
Loading…
Reference in New Issue