Fix warning in tests because test class is prefixed with Test

This commit is contained in:
Swen Kooij 2019-10-19 14:11:41 +03:00
parent 0f3ab6af7a
commit 696050cf6b

View File

@ -8,11 +8,11 @@ from localized_fields.fields import LocalizedBleachField
from localized_fields.value import LocalizedValue
class TestModel:
class ModelTest:
"""Used to declare a bleach-able field on."""
def __init__(self, value):
"""Initializes a new instance of :see:TestModel.
"""Initializes a new instance of :see:ModelTest.
Arguments:
The value to initialize with.
@ -60,7 +60,7 @@ class LocalizedBleachFieldTestCase(TestCase):
"""Gets a test model and a artifically constructed
:see:LocalizedBleachField instance to test with."""
model = TestModel(value)
model = ModelTest(value)
field = LocalizedBleachField()
field.attname = "value"