mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Switched TestCase to SimpleTestCase where possible in Django's tests.
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
from . import ValidationTestCase
|
||||
from django.test import SimpleTestCase
|
||||
|
||||
from . import ValidationAssertions
|
||||
from .models import ModelToValidate
|
||||
|
||||
|
||||
class TestModelsWithValidators(ValidationTestCase):
|
||||
class TestModelsWithValidators(ValidationAssertions, SimpleTestCase):
|
||||
def test_custom_validator_passes_for_correct_value(self):
|
||||
mtv = ModelToValidate(number=10, name='Some Name', f_with_custom_validator=42,
|
||||
f_with_iterable_of_validators=42)
|
||||
|
||||
Reference in New Issue
Block a user