[3.2.x] Refs #32595 -- Added MySQL's SchemaEditor.quote_value() tests for values with Unicode chars.

Backport of 3c75f1f3ca from main
This commit is contained in:
Mariusz Felisiak 2021-03-27 12:01:49 +01:00
parent 1f48d38c69
commit 682eba534f
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ class SchemaEditorTests(TestCase):
editor = connection.schema_editor()
tested_values = [
('string', "'string'"),
('¿Tú hablas inglés?', "'¿Tú hablas inglés?'"),
(42, '42'),
(1.754, '1.754e0' if MySQLdb.version_info >= (1, 3, 14) else '1.754'),
(False, b'0' if MySQLdb.version_info >= (1, 4, 0) else '0'),