mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #32178 -- Allowed database backends to skip tests and mark expected failures.
Co-authored-by: Tim Graham <timograham@gmail.com>
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
from unittest import skipIf
|
||||
|
||||
from django import forms
|
||||
from django.db import connection, models
|
||||
from django.db import models
|
||||
from django.test import SimpleTestCase, TestCase
|
||||
|
||||
from .models import Post
|
||||
@@ -32,7 +30,6 @@ class TextFieldTests(TestCase):
|
||||
def test_lookup_integer_in_textfield(self):
|
||||
self.assertEqual(Post.objects.filter(body=24).count(), 0)
|
||||
|
||||
@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()
|
||||
|
||||
Reference in New Issue
Block a user