1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #24652 -- Used SimpleTestCase where appropriate.

This commit is contained in:
Simon Charette
2015-04-17 17:38:20 -04:00
parent e2b77acedd
commit be67400b47
93 changed files with 362 additions and 340 deletions

View File

@@ -4,7 +4,7 @@ import json
from django import forms
from django.core import exceptions, serializers
from django.db import models
from django.test import TestCase
from django.test import SimpleTestCase, TestCase
from .models import DurationModel, NullDurationModel
@@ -46,7 +46,7 @@ class TestQuerying(TestCase):
)
class TestSerialization(TestCase):
class TestSerialization(SimpleTestCase):
test_data = '[{"fields": {"field": "1 01:00:00"}, "model": "model_fields.durationmodel", "pk": null}]'
def test_dumping(self):
@@ -59,7 +59,7 @@ class TestSerialization(TestCase):
self.assertEqual(instance.field, datetime.timedelta(days=1, hours=1))
class TestValidation(TestCase):
class TestValidation(SimpleTestCase):
def test_invalid_string(self):
field = models.DurationField()
@@ -73,7 +73,7 @@ class TestValidation(TestCase):
)
class TestFormField(TestCase):
class TestFormField(SimpleTestCase):
# Tests for forms.DurationField are in the forms_tests app.
def test_formfield(self):