Skip to content

Commit 4b31b5b

Browse files
committed
Describe the unit test
1 parent ef364bf commit 4b31b5b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pymysqlreplication/tests/test_basic.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,13 @@ def test_minimal_image_update_row_event(self):
421421
self.assertEqual(event.rows[0]["after_values"]["data"], "World")
422422

423423
def test_default_charset_parsing(self):
424+
"""
425+
Here, we want the database to include the binary charset into
426+
the DEFAULT_CHARSET optional metadata block.
427+
Also, we are adding an int field and two text fields to force
428+
a difference in the index of the blob column in the table
429+
and in the list of columns that have charset.
430+
"""
424431
query = """CREATE TABLE test (
425432
id INT NOT NULL AUTO_INCREMENT,
426433
text1 VARCHAR(255) NOT NULL,

0 commit comments

Comments
 (0)