Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Testing with MySQL8 & Update GitHub Actions #484

Prev Previous commit
Next Next commit
resolve conflict test case
  • Loading branch information
mjs1995 committed Sep 21, 2023
commit 85c10b6270d9d964ed42e85799856a8454f6f486
8 changes: 4 additions & 4 deletions pymysqlreplication/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,7 @@ def test_sync_drop_table_map_event_table_schema(self):

event = self.stream.fetchone()
self.assertIsInstance(event, TableMapEvent)
self.assertEqual(event.table_obj.data["columns"][0].name, "name")
self.assertEqual(event.table_obj.data["columns"][0].name, None)
self.assertEqual(len(column_schemas), 0)

def test_sync_column_drop_event_table_schema(self):
Expand Down Expand Up @@ -1734,9 +1734,9 @@ def test_sync_column_drop_event_table_schema(self):
self.assertEqual(len(event.table_obj.data["columns"]), 3)
self.assertEqual(column_schemas[0][0], "drop_column1")
self.assertEqual(column_schemas[1][0], "drop_column3")
self.assertEqual(event.table_obj.data["columns"][0].name, "drop_column1")
self.assertEqual(event.table_obj.data["columns"][1].name, "drop_column2")
self.assertEqual(event.table_obj.data["columns"][2].name, "drop_column3")
self.assertEqual(event.table_obj.data["columns"][0].name, None)
self.assertEqual(event.table_obj.data["columns"][1].name, None)
self.assertEqual(event.table_obj.data["columns"][2].name, None)

def tearDown(self):
self.execute("SET GLOBAL binlog_row_metadata='MINIMAL';")
Expand Down