Fix typo on test class name changing it to AdditionalDataIncludedModel

This commit is contained in:
Ann Paul 2015-06-03 08:49:03 -07:00
parent 23927ea317
commit bade679b81
2 changed files with 4 additions and 4 deletions

View file

@ -82,7 +82,7 @@ class SimpleExcludeModel(models.Model):
history = AuditlogHistoryField()
class AdditionDataIncludedModel(models.Model):
class AdditionalDataIncludedModel(models.Model):
"""
A model where get_additional_data is defined which allows for logging extra
information about the model in JSON
@ -111,4 +111,4 @@ auditlog.register(AltPrimaryKeyModel)
auditlog.register(ProxyModel)
auditlog.register(SimpleIncludeModel, include_fields=['label', ])
auditlog.register(SimpleExcludeModel, exclude_fields=['label', ])
auditlog.register(AdditionDataIncludedModel)
auditlog.register(AdditionalDataIncludedModel)

View file

@ -7,7 +7,7 @@ from django.test import TestCase, RequestFactory
from auditlog.middleware import AuditlogMiddleware
from auditlog.models import LogEntry
from testapp.models import (SimpleModel, AltPrimaryKeyModel, ProxyModel,
SimpleIncludeModel, SimpleExcludeModel, AdditionDataIncludedModel,)
SimpleIncludeModel, SimpleExcludeModel, AdditionalDataIncludedModel,)
class SimpleModelTest(TestCase):
@ -191,7 +191,7 @@ class AdditionalDataModelTest(TestCase):
def test_model_with_additional_data(self):
related_model = SimpleModel.objects.create(text='Log my reference')
obj_with_additional_data = AdditionDataIncludedModel(
obj_with_additional_data = AdditionalDataIncludedModel(
label='Additional data to log entries', related=related_model)
obj_with_additional_data.save()
self.assertTrue(obj_with_additional_data.history.count() == 1,