summaryrefslogtreecommitdiff
path: root/tests/model_fields
diff options
context:
space:
mode:
authorza <za@python.or.id>2016-10-27 14:53:39 +0700
committerTim Graham <timograham@gmail.com>2016-11-10 21:30:21 -0500
commit321e94fa41b121f65c02119c02098df327bbd569 (patch)
treece5476c191d589aca4b124f841dfbccac8dd299f /tests/model_fields
parent4bb70cbcc60794f515c9bfefeca87b8272d33c0c (diff)
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
Diffstat (limited to 'tests/model_fields')
-rw-r--r--tests/model_fields/test_charfield.py2
-rw-r--r--tests/model_fields/test_imagefield.py12
-rw-r--r--tests/model_fields/test_textfield.py2
-rw-r--r--tests/model_fields/test_uuid.py2
4 files changed, 9 insertions, 9 deletions
diff --git a/tests/model_fields/test_charfield.py b/tests/model_fields/test_charfield.py
index 82c7848777..0bca108d22 100644
--- a/tests/model_fields/test_charfield.py
+++ b/tests/model_fields/test_charfield.py
@@ -26,7 +26,7 @@ class TestCharField(TestCase):
def test_lookup_integer_in_charfield(self):
self.assertEqual(Post.objects.filter(title=9).count(), 0)
- @skipIf(connection.vendor == 'mysql', 'See https://code.djangoproject.com/ticket/18392')
+ @skipIf(connection.vendor == 'mysql', 'Running on MySQL requires utf8mb4 encoding (#18392)')
def test_emoji(self):
p = Post.objects.create(title='Smile 😀', body='Whatever.')
p.refresh_from_db()
diff --git a/tests/model_fields/test_imagefield.py b/tests/model_fields/test_imagefield.py
index a70394795f..e178760d2f 100644
--- a/tests/model_fields/test_imagefield.py
+++ b/tests/model_fields/test_imagefield.py
@@ -179,8 +179,8 @@ class ImageFieldTests(ImageFieldTestMixin, TestCase):
def test_pickle(self):
"""
- Tests that ImageField can be pickled, unpickled, and that the
- image of the unpickled version is the same as the original.
+ ImageField can be pickled, unpickled, and that the image of
+ the unpickled version is the same as the original.
"""
import pickle
@@ -242,7 +242,7 @@ class ImageFieldTwoDimensionsTests(ImageFieldTestMixin, TestCase):
def test_default_value(self):
"""
- Tests that the default value for an ImageField is an instance of
+ The default value for an ImageField is an instance of
the field's attr_class (TestImageFieldFile in this case) with no
name (name set to None).
"""
@@ -252,7 +252,7 @@ class ImageFieldTwoDimensionsTests(ImageFieldTestMixin, TestCase):
def test_assignment_to_None(self):
"""
- Tests that assigning ImageField to None clears dimensions.
+ Assigning ImageField to None clears dimensions.
"""
p = self.PersonModel(name='Joe', mugshot=self.file1)
self.check_dimensions(p, 4, 8)
@@ -284,7 +284,7 @@ class ImageFieldTwoDimensionsTests(ImageFieldTestMixin, TestCase):
def test_dimensions(self):
"""
- Checks that dimensions are updated correctly in various situations.
+ Dimensions are updated correctly in various situations.
"""
p = self.PersonModel(name='Joe')
@@ -417,7 +417,7 @@ class TwoImageFieldTests(ImageFieldTestMixin, TestCase):
def test_dimensions(self):
"""
- Checks that dimensions are updated correctly in various situations.
+ Dimensions are updated correctly in various situations.
"""
p = self.PersonModel(name='Joe')
diff --git a/tests/model_fields/test_textfield.py b/tests/model_fields/test_textfield.py
index e1d751f1be..a3cd516cb4 100644
--- a/tests/model_fields/test_textfield.py
+++ b/tests/model_fields/test_textfield.py
@@ -29,7 +29,7 @@ class TextFieldTests(TestCase):
def test_lookup_integer_in_textfield(self):
self.assertEqual(Post.objects.filter(body=24).count(), 0)
- @skipIf(connection.vendor == 'mysql', 'See https://code.djangoproject.com/ticket/18392')
+ @skipIf(connection.vendor == 'mysql', 'Running on MySQL requires utf8mb4 encoding (#18392)')
def test_emoji(self):
p = Post.objects.create(title='Whatever', body='Smile 😀.')
p.refresh_from_db()
diff --git a/tests/model_fields/test_uuid.py b/tests/model_fields/test_uuid.py
index 1e032ce9b0..5c87e4b0af 100644
--- a/tests/model_fields/test_uuid.py
+++ b/tests/model_fields/test_uuid.py
@@ -128,7 +128,7 @@ class TestAsPrimaryKey(TestCase):
u1 = PrimaryKeyUUIDModel()
u2 = PrimaryKeyUUIDModel(id=None)
PrimaryKeyUUIDModel.objects.bulk_create([u1, u2])
- # Check that the two objects were correctly created.
+ # The two objects were correctly created.
u1_found = PrimaryKeyUUIDModel.objects.filter(id=u1.id).exists()
u2_found = PrimaryKeyUUIDModel.objects.exclude(id=u1.id).exists()
self.assertTrue(u1_found)