mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Name PostgreSQL correctly.
This commit is contained in:
@@ -3,7 +3,7 @@ import json
|
||||
from django.core import exceptions, serializers
|
||||
from django.forms import Form
|
||||
|
||||
from . import PostgresSQLTestCase
|
||||
from . import PostgreSQLTestCase
|
||||
from .models import HStoreModel
|
||||
|
||||
try:
|
||||
@@ -14,7 +14,7 @@ except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
class SimpleTests(PostgresSQLTestCase):
|
||||
class SimpleTests(PostgreSQLTestCase):
|
||||
apps = ['django.contrib.postgres']
|
||||
|
||||
def test_save_load_success(self):
|
||||
@@ -38,7 +38,7 @@ class SimpleTests(PostgresSQLTestCase):
|
||||
self.assertEqual(reloaded.field, value)
|
||||
|
||||
|
||||
class TestQuerying(PostgresSQLTestCase):
|
||||
class TestQuerying(PostgreSQLTestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.objs = [
|
||||
@@ -133,7 +133,7 @@ class TestQuerying(PostgresSQLTestCase):
|
||||
)
|
||||
|
||||
|
||||
class TestSerialization(PostgresSQLTestCase):
|
||||
class TestSerialization(PostgreSQLTestCase):
|
||||
test_data = '[{"fields": {"field": "{\\"a\\": \\"b\\"}"}, "model": "postgres_tests.hstoremodel", "pk": null}]'
|
||||
|
||||
def test_dumping(self):
|
||||
@@ -146,7 +146,7 @@ class TestSerialization(PostgresSQLTestCase):
|
||||
self.assertEqual(instance.field, {'a': 'b'})
|
||||
|
||||
|
||||
class TestValidation(PostgresSQLTestCase):
|
||||
class TestValidation(PostgreSQLTestCase):
|
||||
|
||||
def test_not_a_string(self):
|
||||
field = HStoreField()
|
||||
@@ -156,7 +156,7 @@ class TestValidation(PostgresSQLTestCase):
|
||||
self.assertEqual(cm.exception.message % cm.exception.params, 'The value of "a" is not a string.')
|
||||
|
||||
|
||||
class TestFormField(PostgresSQLTestCase):
|
||||
class TestFormField(PostgreSQLTestCase):
|
||||
|
||||
def test_valid(self):
|
||||
field = forms.HStoreField()
|
||||
@@ -192,7 +192,7 @@ class TestFormField(PostgresSQLTestCase):
|
||||
self.assertFalse(form_w_hstore.has_changed())
|
||||
|
||||
|
||||
class TestValidator(PostgresSQLTestCase):
|
||||
class TestValidator(PostgreSQLTestCase):
|
||||
|
||||
def test_simple_valid(self):
|
||||
validator = KeysValidator(keys=['a', 'b'])
|
||||
|
||||
Reference in New Issue
Block a user